aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--INSTALL4
-rw-r--r--src/pki_crypto.c8
2 files changed, 2 insertions, 10 deletions
diff --git a/INSTALL b/INSTALL
index 0f0cebfb..c2eae34b 100644
--- a/INSTALL
+++ b/INSTALL
@@ -7,8 +7,8 @@
In order to build libssh, you need to install several components:
- A C compiler
-- [CMake](https://www.cmake.org) >= 2.6.0.
-- [openssl](https://www.openssl.org) >= 0.9.8
+- [CMake](https://www.cmake.org) >= 3.3.0
+- [openssl](https://www.openssl.org) >= 1.0.1
or
- [gcrypt](https://www.gnu.org/directory/Security/libgcrypt.html) >= 1.4
- [libz](https://www.zlib.net) >= 1.2
diff --git a/src/pki_crypto.c b/src/pki_crypto.c
index 3c3e0a40..57534d2e 100644
--- a/src/pki_crypto.c
+++ b/src/pki_crypto.c
@@ -543,7 +543,6 @@ 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 > 0x00908000L
key->dsa = DSA_new();
if (key->dsa == NULL) {
return SSH_ERROR;
@@ -560,13 +559,6 @@ int pki_key_generate_dss(ssh_key key, int parameter){
key->dsa = NULL;
return SSH_ERROR;
}
-#else
- key->dsa = DSA_generate_parameters(parameter, NULL, 0, NULL, NULL,
- NULL, NULL);
- if(key->dsa == NULL){
- return SSH_ERROR;
- }
-#endif
rc = DSA_generate_key(key->dsa);
if (rc != 1){
DSA_free(key->dsa);