version 1.9, 2017/01/20 08:57:11 |
version 1.10, 2018/02/07 04:57:06 |
|
|
BIO_printf(bio_err, "Generating DSA parameters, %d bit long prime\n", num); |
BIO_printf(bio_err, "Generating DSA parameters, %d bit long prime\n", num); |
if (!dsa || !DSA_generate_parameters_ex(dsa, num, |
if (!dsa || !DSA_generate_parameters_ex(dsa, num, |
NULL, 0, NULL, NULL, &cb)) { |
NULL, 0, NULL, NULL, &cb)) { |
if (dsa) |
DSA_free(dsa); |
DSA_free(dsa); |
|
ERR_print_errors(bio_err); |
ERR_print_errors(bio_err); |
goto end; |
goto end; |
} |
} |
|
|
|
|
end: |
end: |
BIO_free(in); |
BIO_free(in); |
if (out != NULL) |
BIO_free_all(out); |
BIO_free_all(out); |
DH_free(dh); |
if (dh != NULL) |
|
DH_free(dh); |
|
|
|
return (ret); |
return (ret); |
} |
} |