version 1.9, 2018/02/07 04:57:06 |
version 1.10, 2018/02/07 05:47:55 |
|
|
} |
} |
|
|
if (dsaparams == NULL) { |
if (dsaparams == NULL) { |
bad: |
bad: |
BIO_printf(bio_err, "usage: gendsa [args] dsaparam-file\n"); |
BIO_printf(bio_err, "usage: gendsa [args] dsaparam-file\n"); |
BIO_printf(bio_err, " -out file - output the key to 'file'\n"); |
BIO_printf(bio_err, " -out file - output the key to 'file'\n"); |
#ifndef OPENSSL_NO_DES |
#ifndef OPENSSL_NO_DES |
|
|
if (!PEM_write_bio_DSAPrivateKey(out, dsa, enc, NULL, 0, NULL, passout)) |
if (!PEM_write_bio_DSAPrivateKey(out, dsa, enc, NULL, 0, NULL, passout)) |
goto end; |
goto end; |
ret = 0; |
ret = 0; |
end: |
end: |
if (ret != 0) |
if (ret != 0) |
ERR_print_errors(bio_err); |
ERR_print_errors(bio_err); |
BIO_free(in); |
BIO_free(in); |