Lines 1-17
Link Here
|
1 |
--- lib/the_Foundation/src/tlsrequest.c.orig 2023-08-07 17:23:22 UTC |
1 |
--- lib/the_Foundation/src/tlsrequest.c.orig 2024-01-23 07:23:46 UTC |
2 |
+++ lib/the_Foundation/src/tlsrequest.c |
2 |
+++ lib/the_Foundation/src/tlsrequest.c |
3 |
@@ -72,9 +72,9 @@ static iBool readAllFromBIO_(BIO *bio, iBlock *out) { |
|
|
4 |
/*----------------------------------------------------------------------------------------------*/ |
5 |
|
6 |
iDeclareClass(CachedSession) |
7 |
- |
8 |
+ |
9 |
static const int maxSessionAge_CachedSession_ = 10 * 60; /* seconds */ |
10 |
- |
11 |
+ |
12 |
struct Impl_CachedSession { |
13 |
iObject object; |
14 |
iBlock pemSession; |
15 |
@@ -249,7 +249,9 @@ void init_Context(iContext *d) { |
3 |
@@ -249,7 +249,9 @@ void init_Context(iContext *d) { |
16 |
SSL_load_error_strings(); |
4 |
SSL_load_error_strings(); |
17 |
ERR_load_crypto_strings(); |
5 |
ERR_load_crypto_strings(); |
Lines 22-33
Link Here
|
22 |
d->ctx = SSL_CTX_new(TLS_client_method()); |
10 |
d->ctx = SSL_CTX_new(TLS_client_method()); |
23 |
if (!d->ctx) { |
11 |
if (!d->ctx) { |
24 |
iDebug("[TlsRequest] failed to initialize OpenSSL\n"); |
12 |
iDebug("[TlsRequest] failed to initialize OpenSSL\n"); |
25 |
@@ -1012,7 +1014,7 @@ static iBool readIncoming_TlsRequest_(iTlsRequest *d) |
|
|
26 |
|
27 |
static iThreadResult run_TlsRequest_(iThread *thread) { |
28 |
iTlsRequest *d = userData_Thread(thread); |
29 |
- /* Thread-local pointer to the current request so it can be accessed in the |
30 |
+ /* Thread-local pointer to the current request so it can be accessed in the |
31 |
verify callback. */ |
32 |
iDebug("[TlsRequest] run_TlsRequest_: %zu bytes to send\n", size_Block(&d->sending)); |
33 |
setCurrentRequestForThread_Context_(context_, d); |
34 |
- |