From 9d963486f66a864aa67e668742b6aa6a6e72fb1f Mon Sep 17 00:00:00 2001 From: David Timber Date: Wed, 7 Jul 2021 21:21:17 +1000 Subject: Refactor: impl prne_mbedtls_verify_alp() --- src/bne.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/bne.c') diff --git a/src/bne.c b/src/bne.c index dcb1825..d858a69 100644 --- a/src/bne.c +++ b/src/bne.c @@ -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 ... * -- cgit