forked from wolfSSL/wolfssl
We were ignoring the last character of the group name.
This commit is contained in:
@ -49189,7 +49189,7 @@ int wolfSSL_CTX_set1_curves_list(WOLFSSL_CTX* ctx, const char* names)
|
|||||||
if (names[idx] != ':' && names[idx] != '\0')
|
if (names[idx] != ':' && names[idx] != '\0')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
len = idx - 1 - start;
|
len = idx - start;
|
||||||
if (len > MAX_CURVE_NAME_SZ - 1)
|
if (len > MAX_CURVE_NAME_SZ - 1)
|
||||||
return WOLFSSL_FAILURE;
|
return WOLFSSL_FAILURE;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user