Skip to content

Commit dff54af

Browse files
author
Andras Fekete
committed
Fix for openssl denying connections
1 parent d402547 commit dff54af

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/wp_ecc_kmgmt.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,14 @@ static int wp_ecc_get_params(wp_Ecc* ecc, OSSL_PARAM params[])
801801
}
802802
}
803803

804+
if (ok) {
805+
/* Always assume not decoded from explicit params for now */
806+
p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_EC_DECODED_FROM_EXPLICIT_PARAMS);
807+
if ((p != NULL) && !OSSL_PARAM_set_int(p, 0)) {
808+
ok = 0;
809+
}
810+
}
811+
804812
WOLFPROV_LEAVE(WP_LOG_PK, __FILE__ ":" WOLFPROV_STRINGIZE(__LINE__), ok);
805813
return ok;
806814
}

0 commit comments

Comments
 (0)