aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/uipc_ktls.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/uipc_ktls.c')
-rw-r--r--sys/kern/uipc_ktls.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/uipc_ktls.c b/sys/kern/uipc_ktls.c
index bc21e6fe2493..12bb02876083 100644
--- a/sys/kern/uipc_ktls.c
+++ b/sys/kern/uipc_ktls.c
@@ -560,6 +560,10 @@ ktls_create_session(struct socket *so, struct tls_enable *en,
}
if (en->auth_key_len == 0)
return (EINVAL);
+ if (en->tls_vminor != TLS_MINOR_VER_ZERO &&
+ en->tls_vminor != TLS_MINOR_VER_ONE &&
+ en->tls_vminor != TLS_MINOR_VER_TWO)
+ return (EINVAL);
break;
case CRYPTO_CHACHA20_POLY1305:
if (en->auth_algorithm != 0 || en->auth_key_len != 0)