summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_tlsext.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_tlsext.c')
-rw-r--r--src/lib/libssl/ssl_tlsext.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/libssl/ssl_tlsext.c b/src/lib/libssl/ssl_tlsext.c
index e12820ba62..dca9de0305 100644
--- a/src/lib/libssl/ssl_tlsext.c
+++ b/src/lib/libssl/ssl_tlsext.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_tlsext.c,v 1.85 2020/10/14 16:57:33 jsing Exp $ */ 1/* $OpenBSD: ssl_tlsext.c,v 1.86 2021/02/08 17:20:47 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> 4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -401,9 +401,6 @@ tlsext_ecpf_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert)
401int 401int
402tlsext_ecpf_server_needs(SSL *s, uint16_t msg_type) 402tlsext_ecpf_server_needs(SSL *s, uint16_t msg_type)
403{ 403{
404 if (s->version == DTLS1_VERSION)
405 return 0;
406
407 return ssl_using_ecc_cipher(s); 404 return ssl_using_ecc_cipher(s);
408} 405}
409 406
@@ -848,14 +845,12 @@ tlsext_sni_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert)
848 845
849 846
850/* 847/*
851 *Certificate Status Request - RFC 6066 section 8. 848 * Certificate Status Request - RFC 6066 section 8.
852 */ 849 */
853 850
854int 851int
855tlsext_ocsp_client_needs(SSL *s, uint16_t msg_type) 852tlsext_ocsp_client_needs(SSL *s, uint16_t msg_type)
856{ 853{
857 if (SSL_is_dtls(s))
858 return 0;
859 if (msg_type != SSL_TLSEXT_MSG_CH) 854 if (msg_type != SSL_TLSEXT_MSG_CH)
860 return 0; 855 return 0;
861 856