diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libssl/ssl_sess.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/lib/libssl/ssl_sess.c b/src/lib/libssl/ssl_sess.c index aa6b08eae6..ae7532d1ad 100644 --- a/src/lib/libssl/ssl_sess.c +++ b/src/lib/libssl/ssl_sess.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_sess.c,v 1.122 2023/07/08 16:40:13 beck Exp $ */ | 1 | /* $OpenBSD: ssl_sess.c,v 1.123 2023/11/19 15:51:49 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 | * |
@@ -138,10 +138,6 @@ | |||
138 | #include <openssl/lhash.h> | 138 | #include <openssl/lhash.h> |
139 | #include <openssl/opensslconf.h> | 139 | #include <openssl/opensslconf.h> |
140 | 140 | ||
141 | #ifndef OPENSSL_NO_ENGINE | ||
142 | #include <openssl/engine.h> | ||
143 | #endif | ||
144 | |||
145 | #include "ssl_local.h" | 141 | #include "ssl_local.h" |
146 | 142 | ||
147 | static void SSL_SESSION_list_remove(SSL_CTX *ctx, SSL_SESSION *s); | 143 | static void SSL_SESSION_list_remove(SSL_CTX *ctx, SSL_SESSION *s); |
@@ -1320,25 +1316,6 @@ int | |||
1320 | } | 1316 | } |
1321 | LSSL_ALIAS(SSL_CTX_get_client_cert_cb); | 1317 | LSSL_ALIAS(SSL_CTX_get_client_cert_cb); |
1322 | 1318 | ||
1323 | #ifndef OPENSSL_NO_ENGINE | ||
1324 | int | ||
1325 | SSL_CTX_set_client_cert_engine(SSL_CTX *ctx, ENGINE *e) | ||
1326 | { | ||
1327 | if (!ENGINE_init(e)) { | ||
1328 | SSLerrorx(ERR_R_ENGINE_LIB); | ||
1329 | return 0; | ||
1330 | } | ||
1331 | if (!ENGINE_get_ssl_client_cert_function(e)) { | ||
1332 | SSLerrorx(SSL_R_NO_CLIENT_CERT_METHOD); | ||
1333 | ENGINE_finish(e); | ||
1334 | return 0; | ||
1335 | } | ||
1336 | ctx->client_cert_engine = e; | ||
1337 | return 1; | ||
1338 | } | ||
1339 | LSSL_ALIAS(SSL_CTX_set_client_cert_engine); | ||
1340 | #endif | ||
1341 | |||
1342 | void | 1319 | void |
1343 | SSL_CTX_set_cookie_generate_cb(SSL_CTX *ctx, | 1320 | SSL_CTX_set_cookie_generate_cb(SSL_CTX *ctx, |
1344 | int (*cb)(SSL *ssl, unsigned char *cookie, unsigned int *cookie_len)) | 1321 | int (*cb)(SSL *ssl, unsigned char *cookie, unsigned int *cookie_len)) |