diff options
author | jsing <> | 2017-01-23 04:15:28 +0000 |
---|---|---|
committer | jsing <> | 2017-01-23 04:15:28 +0000 |
commit | 0f157a9ac8d269cb234cff4f5cd07800027490ff (patch) | |
tree | d2bcfe381c02ccf528bdd3f18dcabbc4bec0aa3c /src/lib/libssl/s3_clnt.c | |
parent | fdee32bae021d93d570e88a1dbbea0b3bad2c1e0 (diff) | |
download | openbsd-0f157a9ac8d269cb234cff4f5cd07800027490ff.tar.gz openbsd-0f157a9ac8d269cb234cff4f5cd07800027490ff.tar.bz2 openbsd-0f157a9ac8d269cb234cff4f5cd07800027490ff.zip |
Move callback function pointers and argument pointers from SSL_CTX to
internal.
ok beck@
Diffstat (limited to 'src/lib/libssl/s3_clnt.c')
-rw-r--r-- | src/lib/libssl/s3_clnt.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/lib/libssl/s3_clnt.c b/src/lib/libssl/s3_clnt.c index 2c272032b5..54833ded27 100644 --- a/src/lib/libssl/s3_clnt.c +++ b/src/lib/libssl/s3_clnt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_clnt.c,v 1.164 2017/01/23 01:22:08 jsing Exp $ */ | 1 | /* $OpenBSD: s3_clnt.c,v 1.165 2017/01/23 04:15:28 jsing 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 | * |
@@ -185,8 +185,8 @@ ssl3_connect(SSL *s) | |||
185 | 185 | ||
186 | if (s->info_callback != NULL) | 186 | if (s->info_callback != NULL) |
187 | cb = s->info_callback; | 187 | cb = s->info_callback; |
188 | else if (s->ctx->info_callback != NULL) | 188 | else if (s->ctx->internal->info_callback != NULL) |
189 | cb = s->ctx->info_callback; | 189 | cb = s->ctx->internal->info_callback; |
190 | 190 | ||
191 | s->in_handshake++; | 191 | s->in_handshake++; |
192 | if (!SSL_in_init(s) || SSL_in_before(s)) | 192 | if (!SSL_in_init(s) || SSL_in_before(s)) |
@@ -1886,9 +1886,10 @@ ssl3_get_cert_status(SSL *s) | |||
1886 | } | 1886 | } |
1887 | s->tlsext_ocsp_resplen = (int)stow_len; | 1887 | s->tlsext_ocsp_resplen = (int)stow_len; |
1888 | 1888 | ||
1889 | if (s->ctx->tlsext_status_cb) { | 1889 | if (s->ctx->internal->tlsext_status_cb) { |
1890 | int ret; | 1890 | int ret; |
1891 | ret = s->ctx->tlsext_status_cb(s, s->ctx->tlsext_status_arg); | 1891 | ret = s->ctx->internal->tlsext_status_cb(s, |
1892 | s->ctx->internal->tlsext_status_arg); | ||
1892 | if (ret == 0) { | 1893 | if (ret == 0) { |
1893 | al = SSL_AD_BAD_CERTIFICATE_STATUS_RESPONSE; | 1894 | al = SSL_AD_BAD_CERTIFICATE_STATUS_RESPONSE; |
1894 | SSLerr(SSL_F_SSL3_GET_CERT_STATUS, | 1895 | SSLerr(SSL_F_SSL3_GET_CERT_STATUS, |
@@ -2762,7 +2763,7 @@ ssl_do_client_cert_cb(SSL *s, X509 **px509, EVP_PKEY **ppkey) | |||
2762 | return (i); | 2763 | return (i); |
2763 | } | 2764 | } |
2764 | #endif | 2765 | #endif |
2765 | if (s->ctx->client_cert_cb) | 2766 | if (s->ctx->internal->client_cert_cb) |
2766 | i = s->ctx->client_cert_cb(s, px509, ppkey); | 2767 | i = s->ctx->internal->client_cert_cb(s, px509, ppkey); |
2767 | return (i); | 2768 | return (i); |
2768 | } | 2769 | } |