From a3ad635db49ef06d34409231d4e116dd6615552f Mon Sep 17 00:00:00 2001 From: Peter Stuge Date: Thu, 26 Apr 2012 14:54:11 +0200 Subject: [PATCH] Only define _libssh2_dsa_*() functions when building with DSA support --- src/crypto.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/crypto.h b/src/crypto.h index 5dc59315..fb576b6c 100644 --- a/src/crypto.h +++ b/src/crypto.h @@ -75,6 +75,7 @@ int _libssh2_rsa_sha1_sign(LIBSSH2_SESSION * session, unsigned char **signature, size_t *signature_len); +#if LIBSSH2_DSA int _libssh2_dsa_new(libssh2_dsa_ctx ** dsa, const unsigned char *pdata, unsigned long plen, @@ -95,6 +96,7 @@ int _libssh2_dsa_sha1_verify(libssh2_dsa_ctx * dsactx, int _libssh2_dsa_sha1_sign(libssh2_dsa_ctx * dsactx, const unsigned char *hash, unsigned long hash_len, unsigned char *sig); +#endif int _libssh2_cipher_init(_libssh2_cipher_ctx * h, _libssh2_cipher_type(algo),