mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-05-04 23:54:14 +02:00
Added code to automatically populate supported ECC curve information, unless already provided by user via wolfSSL_CTX_UseSupportedCurve or wolfSSL_UseSupportedCurve.
This commit is contained in:
@@ -1401,6 +1401,8 @@ int wolfSSL_UseSupportedCurve(WOLFSSL* ssl, word16 name)
|
||||
return BAD_FUNC_ARG;
|
||||
}
|
||||
|
||||
ssl->options.userCurves = 1;
|
||||
|
||||
return TLSX_UseSupportedCurve(&ssl->extensions, name, ssl->heap);
|
||||
}
|
||||
|
||||
@@ -1431,6 +1433,8 @@ int wolfSSL_CTX_UseSupportedCurve(WOLFSSL_CTX* ctx, word16 name)
|
||||
return BAD_FUNC_ARG;
|
||||
}
|
||||
|
||||
ctx->userCurves = 1;
|
||||
|
||||
return TLSX_UseSupportedCurve(&ctx->extensions, name, ctx->heap);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user