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
commit868965d7ddee60d0be2a9a0555eaa25936c7b901 (patch)
treefdf63c3e86200e85b3faaf385839c00af061ba8b /src/lib/libssl/ssl_srvr.c
parentf04500149f9c998cf071eec4c95d59f5bd0257c9 (diff)
downloadopenbsd-868965d7ddee60d0be2a9a0555eaa25936c7b901.tar.gz
openbsd-868965d7ddee60d0be2a9a0555eaa25936c7b901.tar.bz2
openbsd-868965d7ddee60d0be2a9a0555eaa25936c7b901.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,