Skip to content

Commit

Permalink
Merge pull request #2730 from vasilevalex/wolf_printsuites
Browse files Browse the repository at this point in the history
tls_wolfssl: show supported cipher suites on module init
  • Loading branch information
rvlad-patrascu committed Jan 13, 2022
2 parents c5d884e + 4e67cce commit bead0cd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/tls_wolfssl/wolfssl.c
Expand Up @@ -119,6 +119,15 @@ static void _wolfssl_init_ssl_methods(void)
ssl_versions[TLS_USE_TLSv1_3-1] = TLS1_3_VERSION;
}

static void _wolfssl_show_ciphers(void)
{
char ciphers[4096];
int ret = wolfSSL_get_ciphers(ciphers, (int)sizeof(ciphers));
if(ret == SSL_SUCCESS){
LM_INFO("Ciphers: %s\n", ciphers);
}
}

static void *oss_malloc(size_t size)
{
return shm_malloc(size);
Expand Down Expand Up @@ -174,6 +183,8 @@ static int mod_init(void)

_wolfssl_init_ssl_methods();

_wolfssl_show_ciphers();

return 0;
}

Expand Down

0 comments on commit bead0cd

Please sign in to comment.