aboutsummaryrefslogtreecommitdiff
path: root/src/pki_crypto.c
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2018-11-07 18:07:30 -0800
committerAndreas Schneider <asn@cryptomilk.org>2018-11-08 09:32:28 +0100
commit61cac32288fb09333ea6643dfa4512a7fec1154a (patch)
treed18d6fe9963d8bc557e904a7a4c4b546732cf328 /src/pki_crypto.c
parentaa899f8ec06e21980403526fdb979071ecd9a65e (diff)
downloadlibssh-61cac32288fb09333ea6643dfa4512a7fec1154a.tar.gz
libssh-61cac32288fb09333ea6643dfa4512a7fec1154a.tar.xz
libssh-61cac32288fb09333ea6643dfa4512a7fec1154a.zip
crypto: Fix compilation for OpenSSL without deprecated APIs
Added missing bn.h include. Made engine.h include conditional, otherwise it would fail. DSA_generate_parameters was deprecated long before 1.1.0. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/pki_crypto.c')
-rw-r--r--src/pki_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pki_crypto.c b/src/pki_crypto.c
index 3775d123..ccd22a13 100644
--- a/src/pki_crypto.c
+++ b/src/pki_crypto.c
@@ -516,7 +516,7 @@ int pki_key_generate_rsa(ssh_key key, int parameter){
int pki_key_generate_dss(ssh_key key, int parameter){
int rc;
-#if OPENSSL_VERSION_NUMBER > 0x10100000L
+#if OPENSSL_VERSION_NUMBER > 0x00908000L
key->dsa = DSA_new();
if (key->dsa == NULL) {
return SSH_ERROR;