summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_clnt.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_clnt.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 '')
-rw-r--r--src/lib/libssl/ssl_clnt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_clnt.c b/src/lib/libssl/ssl_clnt.c
index 593ed553d3..0d3dcf78af 100644
--- a/src/lib/libssl/ssl_clnt.c
+++ b/src/lib/libssl/ssl_clnt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_clnt.c,v 1.168 2024/07/22 14:47:15 jsing Exp $ */ 1/* $OpenBSD: ssl_clnt.c,v 1.169 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 *
@@ -926,7 +926,7 @@ ssl3_get_server_hello(SSL *s)
926 * pre-shared secret. 926 * pre-shared secret.
927 */ 927 */
928 if (s->tls_session_secret_cb != NULL) { 928 if (s->tls_session_secret_cb != NULL) {
929 SSL_CIPHER *pref_cipher = NULL; 929 const SSL_CIPHER *pref_cipher = NULL;
930 int master_key_length = sizeof(s->session->master_key); 930 int master_key_length = sizeof(s->session->master_key);
931 931
932 if (!s->tls_session_secret_cb(s, 932 if (!s->tls_session_secret_cb(s,