Skip to content

Commit

Permalink
pki_crypto: Avoid segfault with OpenSSL 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakuje committed Nov 7, 2017
1 parent 5f2a45d commit dcdba1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pki_crypto.c
Expand Up @@ -454,6 +454,10 @@ 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
key->dsa = DSA_new();
if (!key->dsa) {
return SSH_ERROR;
}
rc = DSA_generate_parameters_ex(key->dsa,
parameter,
NULL, /* seed */
Expand Down

0 comments on commit dcdba1a

Please sign in to comment.