wolfssl
wolfssl copied to clipboard
Add const in the list of wolfSSL_CTX_set1_groups_list() and wolfSSL_set1_groups_list()
Description
wolfSSL_CTX_set1_groups_list() and wolfSSL_set1_groups_list() were not using const for the list parameter like wolfSSL_CTX_set1_sigalgs_list() and wolfSSL_set1_sigalgs_list() do.
Testing
Passing a const char* shall work now like it works for SSL_CTX_set1_sigalgs_list()
const char *tls_sig_algs = "RSA-PSS+SHA512:RSA-PSS+SHA384:RSA+SHA512:RSA+SHA384:ECDSA+SHA512:ECDSA+SHA384";
if ((wolfssl_ret = SSL_CTX_set1_sigalgs_list(vpn_ctx->ssl_ctx, tls_sig_algs)) != SSL_SUCCESS)
{
...
}
const char *tls_groups = "P-521:P-384:P-256";
if ((wolfssl_ret = wolfSSL_CTX_set1_groups_list(vpn_ctx->ssl_ctx, tls_groups)) != SSL_SUCCESS)
{
...
}
Can one of the admins verify this patch?
ok to test
retest this please