1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-08-07 08:02:56 +03:00

Shorten constant a bit. More documentation.

This commit is contained in:
Simon Josefsson
2010-03-19 09:17:42 +01:00
parent d00283927f
commit 55ede3b41b
2 changed files with 10 additions and 5 deletions

View File

@@ -370,14 +370,18 @@ typedef struct _LIBSSH2_POLLFD {
#define LIBSSH2_ERROR_AGENT_PROTOCOL -42
/* Global API */
#define LIBSSH2_INIT_NO_CRYPTO_INIT 0x0001
#define LIBSSH2_INIT_NO_CRYPTO 0x0001
/*
* libssh2_init()
*
* Initialize the libssh2 functions. flags can be:
* Initialize the libssh2 functions. This typically initialize the
* crypto library. It uses a global state, and is not thread safe --
* you must make sure this function is not called concurrently.
*
* Flags can be:
* 0: Normal initialize
* LIBSSH2_INIT_NO_CRYPTO_INIT: Do not initialize the crypto library (ie.
* LIBSSH2_INIT_NO_CRYPTO: Do not initialize the crypto library (ie.
* OPENSSL_add_cipher_algoritms() for OpenSSL
*
* Returns 0 if succeeded, or a negative value for error.