| 111 | } |
| 112 | |
| 113 | void |
| 114 | SSLSessionCache::insertSession(const SSLSessionID &sid, SSL_SESSION *sess, SSL *ssl) |
| 115 | { |
| 116 | uint64_t hash = sid.hash(); |
| 117 | uint64_t target_bucket = hash % nbuckets; |
| 118 | SSLSessionBucket *bucket = &session_bucket[target_bucket]; |
| 119 | |
| 120 | if (dbg_ctl_ssl_session_cache_insert.on()) { |
| 121 | char buf[sid.len * 2 + 1]; |
| 122 | sid.toString(buf, sizeof(buf)); |
| 123 | DbgPrint(dbg_ctl_ssl_session_cache_insert, |
| 124 | "SessionCache using bucket %" PRId64 " (%p): Inserting session '%s' (hash: %" PRIX64 ").", target_bucket, bucket, buf, |
| 125 | hash); |
| 126 | } |
| 127 | |
| 128 | bucket->insertSession(sid, sess, ssl); |
| 129 | } |
| 130 | |
| 131 | void |
| 132 | SSLSessionBucket::insertSession(const SSLSessionID &id, SSL_SESSION *sess, SSL *ssl) |
no test coverage detected