HomePhabricator

init: Clarify the need to call ssh_{init, finalize}()

Authored by ansasaki on Apr 3 2020, 5:51 PM.

Description

init: Clarify the need to call ssh_{init, finalize}()

When libssh is statically linked, it is necessary to explicitly call
ssh_init() before calling any other provided API. It is also necessary
to call ssh_finalize() before exiting to free allocated resources.

Fixes T222

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit e3e52394c11e7b9bafa3086e7be937388540daeb)