Skip to content

Commit

Permalink
Account for AWS-LC older OPENSSL_VERSION number
Browse files Browse the repository at this point in the history
  • Loading branch information
WillChilds-Klein committed Jul 31, 2024
1 parent 627286e commit 40eef23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4390,7 +4390,7 @@ _ssl__SSLContext_set_ecdh_curve(PySSLContext *self, PyObject *name)
"unknown elliptic curve name %R", name);
return NULL;
}
#if OPENSSL_VERSION_MAJOR < 3
#if OPENSSL_VERSION_MAJOR < 3 && !defined(OPENSSL_IS_AWSLC)
EC_KEY *key = EC_KEY_new_by_curve_name(nid);
if (key == NULL) {
_setSSLError(get_state_ctx(self), NULL, 0, __FILE__, __LINE__);
Expand Down

0 comments on commit 40eef23

Please sign in to comment.