mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Addressed peer feedback, avoid double check when HAVE_CURVE25519 not set
This commit is contained in:
@ -16533,9 +16533,8 @@ const char* wolfSSL_get_curve_name(WOLFSSL* ssl)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (cName == NULL) {
|
||||
#ifdef HAVE_CURVE25519
|
||||
if (ssl->ecdhCurveOID == ECC_X25519_OID) {
|
||||
if (ssl->ecdhCurveOID == ECC_X25519_OID && cName == NULL) {
|
||||
cName = "X25519";
|
||||
}
|
||||
#endif
|
||||
@ -16546,7 +16545,6 @@ const char* wolfSSL_get_curve_name(WOLFSSL* ssl)
|
||||
NULL));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
return cName;
|
||||
}
|
||||
|
Reference in New Issue
Block a user