-/* $OpenBSD: ssl_lib.c,v 1.245 2021/02/08 17:20:47 jsing Exp $ */
+/* $OpenBSD: ssl_lib.c,v 1.246 2021/02/20 08:30:52 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
ssl_version_string(int ver)
{
switch (ver) {
- case DTLS1_VERSION:
- return (SSL_TXT_DTLS1);
case TLS1_VERSION:
return (SSL_TXT_TLSV1);
case TLS1_1_VERSION:
return (SSL_TXT_TLSV1_2);
case TLS1_3_VERSION:
return (SSL_TXT_TLSV1_3);
+ case DTLS1_VERSION:
+ return (SSL_TXT_DTLS1);
+ case DTLS1_2_VERSION:
+ return (SSL_TXT_DTLS1_2);
default:
return ("unknown");
}
-/* $OpenBSD: ssl_sess.c,v 1.101 2020/10/11 02:22:27 jsing Exp $ */
+/* $OpenBSD: ssl_sess.c,v 1.102 2021/02/20 08:30:52 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
case TLS1_1_VERSION:
case TLS1_2_VERSION:
case DTLS1_VERSION:
+ case DTLS1_2_VERSION:
ss->ssl_version = s->version;
ss->session_id_length = SSL3_SSL_SESSION_ID_LENGTH;
break;
-/* $OpenBSD: ssl_versions.c,v 1.9 2021/02/07 15:04:10 jsing Exp $ */
+/* $OpenBSD: ssl_versions.c,v 1.10 2021/02/20 08:30:52 jsing Exp $ */
/*
* Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org>
*
ssl_legacy_stack_version(SSL *s, uint16_t version)
{
if (SSL_is_dtls(s))
- return version == DTLS1_VERSION;
+ return version == DTLS1_VERSION || version == DTLS1_2_VERSION;
return version == TLS1_VERSION || version == TLS1_1_VERSION ||
version == TLS1_2_VERSION;