summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_srvr.c
diff options
context:
space:
mode:
authortb <>2025-03-09 15:53:36 +0000
committertb <>2025-03-09 15:53:36 +0000
commit35761752f2bfb222979aa98610559dcfa73b3b57 (patch)
treefdf63c3e86200e85b3faaf385839c00af061ba8b /src/lib/libssl/ssl_srvr.c
parent38cf98dc69b5872f5a59ded35918c72a565982cf (diff)
downloadopenbsd-35761752f2bfb222979aa98610559dcfa73b3b57.tar.gz
openbsd-35761752f2bfb222979aa98610559dcfa73b3b57.tar.bz2
openbsd-35761752f2bfb222979aa98610559dcfa73b3b57.zip
const correct tls_session_secret_cb_fn()
Various ports throw a warning since their tls_session_secret_cb's signature doesn't match what we expect. Aligns us with OpenSSL 1.1. This is only useful for RFC 4851 EAP-FAST implementations and surprisingly it's undocumented. ok jsing
Diffstat (limited to 'src/lib/libssl/ssl_srvr.c')
-rw-r--r--src/lib/libssl/ssl_srvr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_srvr.c b/src/lib/libssl/ssl_srvr.c
index 302b6bdf0f..db4ba38b51 100644
--- a/src/lib/libssl/ssl_srvr.c
+++ b/src/lib/libssl/ssl_srvr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_srvr.c,v 1.165 2024/07/22 14:47:15 jsing Exp $ */ 1/* $OpenBSD: ssl_srvr.c,v 1.166 2025/03/09 15:53:36 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1058,7 +1058,7 @@ ssl3_get_client_hello(SSL *s)
1058 } 1058 }
1059 1059
1060 if (!s->hit && s->tls_session_secret_cb != NULL) { 1060 if (!s->hit && s->tls_session_secret_cb != NULL) {
1061 SSL_CIPHER *pref_cipher = NULL; 1061 const SSL_CIPHER *pref_cipher = NULL;
1062 int master_key_length = sizeof(s->session->master_key); 1062 int master_key_length = sizeof(s->session->master_key);
1063 1063
1064 if (!s->tls_session_secret_cb(s, 1064 if (!s->tls_session_secret_cb(s,