commit 860a81a3bb4199dccea1e2470801b61bd2a24e48
parent ca7bb5368b5bd849ba7cfaac530d563e39a47674
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date: Fri, 7 Aug 2026 09:52:11 +0200
mhd_tls_internal: fixed typo in variable name
Diffstat:
2 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/src/mhd2/mhd_tls_internal.c b/src/mhd2/mhd_tls_internal.c
@@ -56,30 +56,30 @@
MHD_INTERNAL
MHD_FN_PAR_IN_SIZE_ (2, 1) enum mhd_TlsAlpnProt
-mhd_tls_alpn_decode_n (size_t alnp_id_size,
- const unsigned char *alnp_id)
+mhd_tls_alpn_decode_n (size_t alpn_id_size,
+ const unsigned char *alpn_id)
{
- mhd_assert ((NULL != alnp_id) || (0u == alnp_id_size));
+ mhd_assert ((NULL != alpn_id) || (0u == alpn_id_size));
- if (NULL == alnp_id)
+ if (NULL == alpn_id)
return mhd_TLS_ALPN_PROT_NOT_SELECTED;
#ifdef MHD_SUPPORT_HTTP2
- if ((alnp_id_size == mhd_ALPN_H2_LEN)
- && (0 == memcmp (alnp_id,
+ if ((alpn_id_size == mhd_ALPN_H2_LEN)
+ && (0 == memcmp (alpn_id,
mhd_ALPN_H2,
mhd_ALPN_H2_LEN)))
return mhd_TLS_ALPN_PROT_HTTP2;
#endif /* MHD_SUPPORT_HTTP2 */
- if ((alnp_id_size == mhd_ALPN_H1_1_LEN)
- && (0 == memcmp (alnp_id,
+ if ((alpn_id_size == mhd_ALPN_H1_1_LEN)
+ && (0 == memcmp (alpn_id,
mhd_ALPN_H1_1,
mhd_ALPN_H1_1_LEN)))
return mhd_TLS_ALPN_PROT_HTTP1_1;
- if ((alnp_id_size == mhd_ALPN_H1_0_LEN)
- && (0 == memcmp (alnp_id,
+ if ((alpn_id_size == mhd_ALPN_H1_0_LEN)
+ && (0 == memcmp (alpn_id,
mhd_ALPN_H1_0,
mhd_ALPN_H1_0_LEN)))
return mhd_TLS_ALPN_PROT_HTTP1_0;
diff --git a/src/mhd2/mhd_tls_internal.h b/src/mhd2/mhd_tls_internal.h
@@ -99,17 +99,17 @@
/**
* Decode provided ALPN identifier
- * @param alnp_id_size the size in bytes of the @a alpn_str
- * @param alnp_id the ALPN identifier, does not need to be zero-terminated,
+ * @param alpn_id_size the size in bytes of the @a alpn_id
+ * @param alpn_id the ALPN identifier, does not need to be zero-terminated,
* could be NULL
* @return the decoded protocol,
- * #mhd_TLS_ALPN_PROT_NOT_SELECTED if @a alnp_str is NULL,
- * #mhd_TLS_ALPN_PROT_ERROR if @a alnp_str does not match any known
+ * #mhd_TLS_ALPN_PROT_NOT_SELECTED if @a alpn_id is NULL,
+ * #mhd_TLS_ALPN_PROT_ERROR if @a alpn_id does not match any known
* string identifier,
*/
MHD_INTERNAL enum mhd_TlsAlpnProt
-mhd_tls_alpn_decode_n (size_t alnp_id_size,
- const unsigned char *alnp_id)
+mhd_tls_alpn_decode_n (size_t alpn_id_size,
+ const unsigned char *alpn_id)
MHD_FN_PAR_IN_SIZE_ (2, 1);