Browse Source

Fixing key generation (now working on write out)

master
David Lanzendörfer 2 months ago
parent
commit
3d545e766d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/openssl_crypto.c

+ 2
- 0
src/openssl_crypto.c View File

@ -820,6 +820,7 @@ pgp_rsa_generate_keypair(pgp_key_t *keydata,
*/
unsigned
pgp_dsa_generate_keypair(pgp_key_t *keydata,
const int numbits,
const char *hashalg,
const char *cipher,
const uint8_t *passphrase,
@ -838,6 +839,7 @@ pgp_dsa_generate_keypair(pgp_key_t *keydata,
/* generate the key pair */
dsa = DSA_new();
DSA_generate_parameters_ex(dsa, numbits, NULL, 0, NULL, NULL, NULL);
res = DSA_generate_key(dsa);
if (!res){


Loading…
Cancel
Save