diff options
author | Jean-Philippe Garcia Ballester <giga@le-pec.org> | 2006-07-09 10:36:44 +0000 |
---|---|---|
committer | Jean-Philippe Garcia Ballester <giga@le-pec.org> | 2006-07-09 10:36:44 +0000 |
commit | b2d0d13a2d6709c740453ee3ff32bc37160cc331 (patch) | |
tree | 8749b08068a402d2d92469be576572b2c159c918 /doc/libssh-0.2-api-1.txt | |
parent | 9bb0be2dbb995097859f304111e61c6bbc910746 (diff) | |
download | libssh-b2d0d13a2d6709c740453ee3ff32bc37160cc331.tar.gz libssh-b2d0d13a2d6709c740453ee3ff32bc37160cc331.tar.xz libssh-b2d0d13a2d6709c740453ee3ff32bc37160cc331.zip |
Add ssh_finalize to handle finalization of libssh and underlying cryptographic
library.
Add corresponding paragraph in API draft.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@75 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'doc/libssh-0.2-api-1.txt')
-rw-r--r-- | doc/libssh-0.2-api-1.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/libssh-0.2-api-1.txt b/doc/libssh-0.2-api-1.txt index ff35b392..22d08e58 100644 --- a/doc/libssh-0.2-api-1.txt +++ b/doc/libssh-0.2-api-1.txt @@ -48,6 +48,19 @@ things that each kind of object must do. B. Description of objects and functions +Initialization and finalization +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Initialization is for now called automatically, so you don't have to take care +of that. +As for finalization, we need to finalize the underlying cryptographic library +(either OpenSSL or libgcrypt). Be sure that you call ssh_finalize when this +library won't be used anymore, even by other libraries (i.e. if you use libssh +and another library that uses OpenSSL, call ssh_finalize when any function of +both these libraries won't be called). +If you trust your operating system to clean up the mess after a process +terminates, you can skip this call. + Options structure ~~~~~~~~~~~~~~~~~ @@ -351,6 +364,8 @@ channel functions will run. C. Change log of this document +3. Add paragraph about initalization and finalization. + 2. ssh_options_set_username finaly is kept into the options, because it can be set by ssh_options_getopt() |