diff options
author | 2017-01-23 00:12:54 +0000 | |
---|---|---|
committer | 2017-01-23 00:12:54 +0000 | |
commit | cb38afac173e914f01c8d76a5d5d1e2d1b7933e6 (patch) | |
tree | 2381b8ff26670a3a5020ce0b6ec97a251d1e2454 /lib/libssl/ssl_sess.c | |
parent | Typo in comment. It's 'rtm_addrs', not 'rtm_addr' (diff) | |
download | wireguard-openbsd-cb38afac173e914f01c8d76a5d5d1e2d1b7933e6.tar.xz wireguard-openbsd-cb38afac173e914f01c8d76a5d5d1e2d1b7933e6.zip |
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++; } } } |