diff --git a/src/init.c b/src/init.c index 31295b9f..a8dfe030 100644 --- a/src/init.c +++ b/src/init.c @@ -143,7 +143,7 @@ void libssh_constructor(void) * If the library is already initialized, increments the _ssh_initialized * counter and return the error code cached in _ssh_init_ret. * - * @returns 0 on success, -1 if an error occured. + * @returns SSH_OK on success, SSH_ERROR if an error occurred. */ int ssh_init(void) { return _ssh_init(0); @@ -188,7 +188,7 @@ _ret: * * This function is automatically called when the library is unloaded. * - * @returns 0 on succes, -1 if an error occured. + * @returns SSH_OK on success, SSH_ERROR if an error occurred. * */ void libssh_destructor(void) diff --git a/src/libcrypto.c b/src/libcrypto.c index fd5c8ce9..6b454737 100644 --- a/src/libcrypto.c +++ b/src/libcrypto.c @@ -1052,6 +1052,13 @@ int ssh_crypto_init(void) if (libcrypto_initialized) { return SSH_OK; } + if (SSLeay() != OPENSSL_VERSION_NUMBER){ + SSH_LOG(SSH_LOG_WARNING, "libssh compiled with %s " + "headers, currently running with %s.", + OPENSSL_VERSION_TEXT, + SSLeay_version(SSLeay()) + ); + } OpenSSL_add_all_algorithms();