diff options
author | Rich Salz <rsalz@openssl.org> | 2016-05-20 10:46:29 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-05-20 10:48:29 -0400 |
commit | 739a1eb1961cdc3b1597a040766f3cb359d095f6 (patch) | |
tree | da90e8dd33e1aa605351b529713901bb1b0f37b8 /ssl | |
parent | 06593767b21d4ebacc3e6ecc8daedd9d5c5f9f97 (diff) |
Rename lh_xxx,sk_xxx tp OPENSSL_{LH,SK}_xxx
Rename sk_xxx to OPENSSL_sk_xxx and _STACK to OPENSSL_STACK
Rename lh_xxx API to OPENSSL_LH_xxx and LHASH_NODE to OPENSSL_LH_NODE
Make lhash stuff opaque.
Use typedefs for function pointers; makes the code simpler.
Remove CHECKED_xxx macros.
Add documentation; remove old X509-oriented doc.
Add API-compat names for entire old API
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_sess.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ssl/ssl_sess.c b/ssl/ssl_sess.c index f6021348a4..f168900dea 100644 --- a/ssl/ssl_sess.c +++ b/ssl/ssl_sess.c @@ -977,10 +977,10 @@ void SSL_CTX_flush_sessions(SSL_CTX *s, long t) return; tp.time = t; CRYPTO_THREAD_write_lock(s->lock); - i = CHECKED_LHASH_OF(SSL_SESSION, tp.cache)->down_load; - CHECKED_LHASH_OF(SSL_SESSION, tp.cache)->down_load = 0; + i = lh_SSL_SESSION_get_down_load(s->sessions); + lh_SSL_SESSION_set_down_load(s->sessions, 0); lh_SSL_SESSION_doall_TIMEOUT_PARAM(tp.cache, timeout_cb, &tp); - CHECKED_LHASH_OF(SSL_SESSION, tp.cache)->down_load = i; + lh_SSL_SESSION_set_down_load(s->sessions, i); CRYPTO_THREAD_unlock(s->lock); } |