summaryrefslogtreecommitdiffstats
path: root/lib/libssl/d1_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2020-07-07 19:31:11 +0000
committerjsing <jsing@openbsd.org>2020-07-07 19:31:11 +0000
commit25aa477ea5c5b0d27fe78843013f804fbdcae849 (patch)
tree50164f9d99b37ad433fa5890200e09bdad63260f /lib/libssl/d1_lib.c
parentEnable TLSv1.3 for the generic TLS_method(). (diff)
downloadwireguard-openbsd-25aa477ea5c5b0d27fe78843013f804fbdcae849.tar.xz
wireguard-openbsd-25aa477ea5c5b0d27fe78843013f804fbdcae849.zip
Remove some unnecessary function pointers from SSL_METHOD_INTERNAL.
ssl_version is completely unused and get_timeout is the same everywhere. ok beck@ inoguchi@ tb@
Diffstat (limited to 'lib/libssl/d1_lib.c')
-rw-r--r--lib/libssl/d1_lib.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/libssl/d1_lib.c b/lib/libssl/d1_lib.c
index b7ba6b1092e..1f818307d11 100644
--- a/lib/libssl/d1_lib.c
+++ b/lib/libssl/d1_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: d1_lib.c,v 1.45 2020/03/12 17:01:53 jsing Exp $ */
+/* $OpenBSD: d1_lib.c,v 1.46 2020/07/07 19:31:11 jsing Exp $ */
/*
* DTLS implementation written by Nagendra Modadugu
* (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -76,14 +76,6 @@ SSL3_ENC_METHOD DTLSv1_enc_data = {
.enc_flags = SSL_ENC_FLAG_EXPLICIT_IV,
};
-long
-dtls1_default_timeout(void)
-{
- /* 2 hours, the 24 hours mentioned in the DTLSv1 spec
- * is way too long for http, the cache would over fill */
- return (60*60*2);
-}
-
int
dtls1_new(SSL *s)
{