diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2017-01-23 00:12:56 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2017-01-23 00:12:56 +0000 |
commit | 325bf022f705c99c9c0f162a875572e2b24aa5b5 (patch) | |
tree | 90e0c27f2d96f8f126b2e1c6549a4facb077db25 /lib/libssl/ssl_sess.c | |
parent | 964db494ed8ebbda733fb79066621caccfda3306 (diff) |
Move the stats struct from SSL_CTX to internal.
ok beck@
Diffstat (limited to 'lib/libssl/ssl_sess.c')
-rw-r--r-- | lib/libssl/ssl_sess.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libssl/ssl_sess.c b/lib/libssl/ssl_sess.c index dc4894c64cf..7f03d12d355 100644 --- a/lib/libssl/ssl_sess.c +++ b/lib/libssl/ssl_sess.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_sess.c,v 1.55 2017/01/22 05:14:42 beck Exp $ */ +/* $OpenBSD: ssl_sess.c,v 1.56 2017/01/23 00:12:55 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -466,7 +466,7 @@ ssl_get_prev_session(SSL *s, unsigned char *session_id, int len, CRYPTO_r_unlock(CRYPTO_LOCK_SSL_CTX); if (ret == NULL) - s->session_ctx->stats.sess_miss++; + s->session_ctx->internal->stats.sess_miss++; } if (try_session_cache && ret == NULL && @@ -475,7 +475,7 @@ ssl_get_prev_session(SSL *s, unsigned char *session_id, int len, if ((ret = s->session_ctx->get_session_cb(s, session_id, len, ©))) { - s->session_ctx->stats.sess_cb_hit++; + s->session_ctx->internal->stats.sess_cb_hit++; /* * Increment reference count now if the session @@ -542,7 +542,7 @@ ssl_get_prev_session(SSL *s, unsigned char *session_id, int len, if (ret->timeout < (time(NULL) - ret->time)) { /* timeout */ - s->session_ctx->stats.sess_timeout++; + s->session_ctx->internal->stats.sess_timeout++; if (try_session_cache) { /* session was from the cache, so remove it */ SSL_CTX_remove_session(s->session_ctx, ret); @@ -550,7 +550,7 @@ ssl_get_prev_session(SSL *s, unsigned char *session_id, int len, goto err; } - s->session_ctx->stats.sess_hit++; + s->session_ctx->internal->stats.sess_hit++; if (s->session != NULL) SSL_SESSION_free(s->session); @@ -641,7 +641,7 @@ SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *c) ctx->session_cache_tail, 0)) break; else - ctx->stats.sess_cache_full++; + ctx->internal->stats.sess_cache_full++; } } } |