Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/18424)
(cherry picked from commit
e85bef981c037a6ebc0ca39f61c11bd79ed89fb3)
BIO_printf(bio_err, "Error, failed to check DH parameters\n");
goto end;
}
- if (!EVP_PKEY_param_check(ctx)) {
+ if (EVP_PKEY_param_check(ctx) <= 0) {
BIO_printf(bio_err, "Error, invalid parameters generated\n");
goto end;
}
goto end;
}
pctx = EVP_PKEY_CTX_new_from_pkey(NULL, params_key, NULL);
- if (pctx == NULL || !EVP_PKEY_param_check(pctx)) {
+ if (pctx == NULL || EVP_PKEY_param_check(pctx) <= 0) {
BIO_printf(bio_err, "failed\n");
goto end;
}