diff --git a/src/openssl.c b/src/openssl.c index 7f6af387..634f8679 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -562,7 +562,6 @@ _libssh2_dsa_sha1_verify(libssh2_dsa_ctx * dsactx, if(!_libssh2_sha1(m, m_len, hash)) /* _libssh2_sha1() succeeded */ ret = DSA_do_verify(hash, SHA_DIGEST_LENGTH, dsasig, dsactx); - #endif DSA_SIG_free(dsasig); diff --git a/src/openssl.h b/src/openssl.h index f80a6b43..de44e421 100644 --- a/src/openssl.h +++ b/src/openssl.h @@ -382,7 +382,6 @@ extern void _libssh2_openssl_crypto_exit(void); #define _libssh2_rsa_free(rsactx) EVP_PKEY_free(rsactx) #else #define libssh2_rsa_ctx RSA - #define _libssh2_rsa_free(rsactx) RSA_free(rsactx) #endif @@ -395,7 +394,6 @@ extern void _libssh2_openssl_crypto_exit(void); #define _libssh2_dsa_free(rsactx) EVP_PKEY_free(rsactx) #else #define libssh2_dsa_ctx DSA - #define _libssh2_dsa_free(dsactx) DSA_free(dsactx) #endif