diff options
author | David Timber <mieabby@gmail.com> | 2021-07-07 21:21:17 +1000 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2021-07-07 21:21:17 +1000 |
commit | 9d963486f66a864aa67e668742b6aa6a6e72fb1f (patch) | |
tree | eb03b72db5ec7ef14ad4f04b2dc6cc18c340442c /src/bne.c | |
parent | 9cc889d0ac25f4e9783a87f3f6cb0bcfa79c5c88 (diff) |
Refactor: impl prne_mbedtls_verify_alp()
Diffstat (limited to 'src/bne.c')
-rw-r--r-- | src/bne.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1061,6 +1061,9 @@ static bool bne_sh_setup ( parser.ctx = s_ctx; parser.line_f = bne_sh_availcmd_parse_f; + /* FIXME + * DO NOT assume that /dev is available + */ ret = bne_sh_runcmd_line( s_ctx, &parser, @@ -1821,10 +1824,10 @@ static bool bne_do_vec_htbt (prne_bne_t *ctx) { goto END; } - ret = - prne_nstreq( - mbedtls_ssl_get_alpn_protocol(&ssl), - PRNE_HTBT_TLS_ALP); + ret = prne_mbedtls_verify_alp( + ctx->param.htbt_ssl_conf, + &ssl, + PRNE_HTBT_TLS_ALP); if (ret) { /* here goes ... * |