summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsing <>2021-06-18 18:26:38 +0000
committerjsing <>2021-06-18 18:26:38 +0000
commit3c569065c92533ff49798d7b9367b0cd770692d4 (patch)
tree4963e47f8364de5f7a09ccad06dcd23303503e0f
parent9c47d05a116608c4e65633f11a9f886f0ffdc900 (diff)
downloadopenbsd-3c569065c92533ff49798d7b9367b0cd770692d4.tar.gz
openbsd-3c569065c92533ff49798d7b9367b0cd770692d4.tar.bz2
openbsd-3c569065c92533ff49798d7b9367b0cd770692d4.zip
Remove SSL_CTX_set_read_ahead() calls - it is now the default for DTLS.
-rw-r--r--src/regress/lib/libssl/dtls/dtlstest.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/regress/lib/libssl/dtls/dtlstest.c b/src/regress/lib/libssl/dtls/dtlstest.c
index cf3bd76c93..194728e26b 100644
--- a/src/regress/lib/libssl/dtls/dtlstest.c
+++ b/src/regress/lib/libssl/dtls/dtlstest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: dtlstest.c,v 1.8 2021/05/03 23:44:05 inoguchi Exp $ */ 1/* $OpenBSD: dtlstest.c,v 1.9 2021/06/18 18:26:38 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2020 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2020 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -308,7 +308,6 @@ dtls_client(int sock, struct sockaddr_in *server_sin, long mtu)
308 308
309 if ((ssl_ctx = SSL_CTX_new(DTLS_method())) == NULL) 309 if ((ssl_ctx = SSL_CTX_new(DTLS_method())) == NULL)
310 errx(1, "client context"); 310 errx(1, "client context");
311 SSL_CTX_set_read_ahead(ssl_ctx, 1);
312 311
313 if ((ssl = SSL_new(ssl_ctx)) == NULL) 312 if ((ssl = SSL_new(ssl_ctx)) == NULL)
314 errx(1, "client ssl"); 313 errx(1, "client ssl");
@@ -346,7 +345,6 @@ dtls_server(int sock, long options, long mtu)
346 SSL_CTX_set_cookie_verify_cb(ssl_ctx, dtls_cookie_verify); 345 SSL_CTX_set_cookie_verify_cb(ssl_ctx, dtls_cookie_verify);
347 SSL_CTX_set_dh_auto(ssl_ctx, 2); 346 SSL_CTX_set_dh_auto(ssl_ctx, 2);
348 SSL_CTX_set_options(ssl_ctx, options); 347 SSL_CTX_set_options(ssl_ctx, options);
349 SSL_CTX_set_read_ahead(ssl_ctx, 1);
350 348
351 if (SSL_CTX_use_certificate_file(ssl_ctx, server_cert_file, 349 if (SSL_CTX_use_certificate_file(ssl_ctx, server_cert_file,
352 SSL_FILETYPE_PEM) != 1) { 350 SSL_FILETYPE_PEM) != 1) {