DPP: Work around missing EVP_PKEY_CTX_set_ec_param_enc()
This allows compilation with older OpenSSL 1.0.1. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
3ca4be1eaa
commit
918a2ac40f
1 changed files with 2 additions and 0 deletions
|
@ -1054,7 +1054,9 @@ static EVP_PKEY * dpp_gen_keypair(const struct dpp_curve_params *curve)
|
|||
if (!pctx ||
|
||||
EVP_PKEY_paramgen_init(pctx) != 1 ||
|
||||
EVP_PKEY_CTX_set_ec_paramgen_curve_nid(pctx, nid) != 1 ||
|
||||
#ifdef EVP_PKEY_CTX_set_ec_param_enc
|
||||
EVP_PKEY_CTX_set_ec_param_enc(pctx, OPENSSL_EC_NAMED_CURVE) != 1 ||
|
||||
#endif
|
||||
EVP_PKEY_paramgen(pctx, ¶ms) != 1) {
|
||||
wpa_printf(MSG_ERROR,
|
||||
"DPP: Failed to generate EVP_PKEY parameters");
|
||||
|
|
Loading…
Reference in a new issue