diff options
author | jsing <> | 2017-01-23 00:12:55 +0000 |
---|---|---|
committer | jsing <> | 2017-01-23 00:12:55 +0000 |
commit | ebf810ecb3df5037cf52818180e9d1f9b811019d (patch) | |
tree | dbb00e45128efea271755d0b8b656130a43435f6 /src/lib/libssl/s3_srvr.c | |
parent | fcfe199cc99431d4e250ada852b3989b210b67ca (diff) | |
download | openbsd-ebf810ecb3df5037cf52818180e9d1f9b811019d.tar.gz openbsd-ebf810ecb3df5037cf52818180e9d1f9b811019d.tar.bz2 openbsd-ebf810ecb3df5037cf52818180e9d1f9b811019d.zip |
Move the stats struct from SSL_CTX to internal.
ok beck@
Diffstat (limited to 'src/lib/libssl/s3_srvr.c')
-rw-r--r-- | src/lib/libssl/s3_srvr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libssl/s3_srvr.c b/src/lib/libssl/s3_srvr.c index 099537f7ea..a18b218207 100644 --- a/src/lib/libssl/s3_srvr.c +++ b/src/lib/libssl/s3_srvr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_srvr.c,v 1.141 2017/01/22 09:02:07 jsing Exp $ */ | 1 | /* $OpenBSD: s3_srvr.c,v 1.142 2017/01/23 00:12:54 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 | * |
@@ -246,7 +246,7 @@ ssl3_accept(SSL *s) | |||
246 | } | 246 | } |
247 | 247 | ||
248 | s->state = SSL3_ST_SR_CLNT_HELLO_A; | 248 | s->state = SSL3_ST_SR_CLNT_HELLO_A; |
249 | s->ctx->stats.sess_accept++; | 249 | s->ctx->internal->stats.sess_accept++; |
250 | } else if (!S3I(s)->send_connection_binding) { | 250 | } else if (!S3I(s)->send_connection_binding) { |
251 | /* | 251 | /* |
252 | * Server attempting to renegotiate with | 252 | * Server attempting to renegotiate with |
@@ -264,7 +264,7 @@ ssl3_accept(SSL *s) | |||
264 | * s->state == SSL_ST_RENEGOTIATE, | 264 | * s->state == SSL_ST_RENEGOTIATE, |
265 | * we will just send a HelloRequest | 265 | * we will just send a HelloRequest |
266 | */ | 266 | */ |
267 | s->ctx->stats.sess_accept_renegotiate++; | 267 | s->ctx->internal->stats.sess_accept_renegotiate++; |
268 | s->state = SSL3_ST_SW_HELLO_REQ_A; | 268 | s->state = SSL3_ST_SW_HELLO_REQ_A; |
269 | } | 269 | } |
270 | break; | 270 | break; |
@@ -660,7 +660,7 @@ ssl3_accept(SSL *s) | |||
660 | 660 | ||
661 | ssl_update_cache(s, SSL_SESS_CACHE_SERVER); | 661 | ssl_update_cache(s, SSL_SESS_CACHE_SERVER); |
662 | 662 | ||
663 | s->ctx->stats.sess_accept_good++; | 663 | s->ctx->internal->stats.sess_accept_good++; |
664 | /* s->server=1; */ | 664 | /* s->server=1; */ |
665 | s->handshake_func = ssl3_accept; | 665 | s->handshake_func = ssl3_accept; |
666 | 666 | ||