summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2026-04-03 07:37:52 +0000
committerjsing <>2026-04-03 07:37:52 +0000
commit4e96afcd8aab7bbc0e9ad7f32a9c2dd0dc055a61 (patch)
tree9bd5d16ec624e71487bc36d9fd98c701536bb13c /src
parentba2c2f6b31a0d325528b48899a6a12f650464c2f (diff)
downloadopenbsd-4e96afcd8aab7bbc0e9ad7f32a9c2dd0dc055a61.tar.gz
openbsd-4e96afcd8aab7bbc0e9ad7f32a9c2dd0dc055a61.tar.bz2
openbsd-4e96afcd8aab7bbc0e9ad7f32a9c2dd0dc055a61.zip
Use DTLS_client_method() instead of DTLSv1_client_method().
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libssl/tlsext/tlsexttest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regress/lib/libssl/tlsext/tlsexttest.c b/src/regress/lib/libssl/tlsext/tlsexttest.c
index 7a32975629..9c4c0f55a1 100644
--- a/src/regress/lib/libssl/tlsext/tlsexttest.c
+++ b/src/regress/lib/libssl/tlsext/tlsexttest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tlsexttest.c,v 1.96 2026/03/30 06:23:33 tb Exp $ */ 1/* $OpenBSD: tlsexttest.c,v 1.97 2026/04/03 07:37:52 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> 4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -2825,7 +2825,7 @@ test_tlsext_srtp_client(void)
2825 errx(1, "Failed to create CBB"); 2825 errx(1, "Failed to create CBB");
2826 2826
2827 /* SRTP is for DTLS */ 2827 /* SRTP is for DTLS */
2828 if ((ssl_ctx = SSL_CTX_new(DTLSv1_client_method())) == NULL) 2828 if ((ssl_ctx = SSL_CTX_new(DTLS_client_method())) == NULL)
2829 errx(1, "failed to create SSL_CTX"); 2829 errx(1, "failed to create SSL_CTX");
2830 if ((ssl = SSL_new(ssl_ctx)) == NULL) 2830 if ((ssl = SSL_new(ssl_ctx)) == NULL)
2831 errx(1, "failed to create SSL"); 2831 errx(1, "failed to create SSL");
@@ -3065,7 +3065,7 @@ test_tlsext_srtp_server(void)
3065 errx(1, "Failed to create CBB"); 3065 errx(1, "Failed to create CBB");
3066 3066
3067 /* SRTP is for DTLS */ 3067 /* SRTP is for DTLS */
3068 if ((ssl_ctx = SSL_CTX_new(DTLSv1_client_method())) == NULL) 3068 if ((ssl_ctx = SSL_CTX_new(DTLS_client_method())) == NULL)
3069 errx(1, "failed to create SSL_CTX"); 3069 errx(1, "failed to create SSL_CTX");
3070 if ((ssl = SSL_new(ssl_ctx)) == NULL) 3070 if ((ssl = SSL_new(ssl_ctx)) == NULL)
3071 errx(1, "failed to create SSL"); 3071 errx(1, "failed to create SSL");