-/* $OpenBSD: ssl_tlsext.c,v 1.89 2021/03/29 16:46:09 jsing Exp $ */
+/* $OpenBSD: ssl_tlsext.c,v 1.90 2021/04/22 18:27:53 tb Exp $ */
/*
* Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
CBS_len(&extension_data),
s->internal->tlsext_debug_arg);
+ /* Unknown extensions are ignored. */
+ if ((tlsext = tls_extension_find(type, &idx)) == NULL)
+ continue;
+
if (tls_version >= TLS1_3_VERSION && is_server &&
msg_type == SSL_TLSEXT_MSG_CH) {
if (!tlsext_clienthello_hash_extension(s, type,
goto err;
}
- /* Unknown extensions are ignored. */
- if ((tlsext = tls_extension_find(type, &idx)) == NULL)
- continue;
-
/* RFC 8446 Section 4.2 */
if (tls_version >= TLS1_3_VERSION &&
!(tlsext->messages & msg_type)) {