summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_srvr.c
diff options
context:
space:
mode:
authorjsing <>2017-01-23 00:12:55 +0000
committerjsing <>2017-01-23 00:12:55 +0000
commitebf810ecb3df5037cf52818180e9d1f9b811019d (patch)
treedbb00e45128efea271755d0b8b656130a43435f6 /src/lib/libssl/d1_srvr.c
parentfcfe199cc99431d4e250ada852b3989b210b67ca (diff)
downloadopenbsd-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/d1_srvr.c')
-rw-r--r--src/lib/libssl/d1_srvr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libssl/d1_srvr.c b/src/lib/libssl/d1_srvr.c
index 8722c1690d..7cb1fdf3de 100644
--- a/src/lib/libssl/d1_srvr.c
+++ b/src/lib/libssl/d1_srvr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_srvr.c,v 1.72 2017/01/22 09:02:07 jsing Exp $ */ 1/* $OpenBSD: d1_srvr.c,v 1.73 2017/01/23 00:12:54 jsing Exp $ */
2/* 2/*
3 * DTLS implementation written by Nagendra Modadugu 3 * DTLS implementation written by Nagendra Modadugu
4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -259,11 +259,11 @@ dtls1_accept(SSL *s)
259 } 259 }
260 260
261 s->state = SSL3_ST_SR_CLNT_HELLO_A; 261 s->state = SSL3_ST_SR_CLNT_HELLO_A;
262 s->ctx->stats.sess_accept++; 262 s->ctx->internal->stats.sess_accept++;
263 } else { 263 } else {
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 s->ctx->stats.sess_accept_renegotiate++; 266 s->ctx->internal->stats.sess_accept_renegotiate++;
267 s->state = SSL3_ST_SW_HELLO_REQ_A; 267 s->state = SSL3_ST_SW_HELLO_REQ_A;
268 } 268 }
269 269
@@ -641,7 +641,7 @@ dtls1_accept(SSL *s)
641 641
642 ssl_update_cache(s, SSL_SESS_CACHE_SERVER); 642 ssl_update_cache(s, SSL_SESS_CACHE_SERVER);
643 643
644 s->ctx->stats.sess_accept_good++; 644 s->ctx->internal->stats.sess_accept_good++;
645 /* s->server=1; */ 645 /* s->server=1; */
646 s->handshake_func = dtls1_accept; 646 s->handshake_func = dtls1_accept;
647 647