| 65 | } |
| 66 | |
| 67 | int |
| 68 | SSLSessionCache::getSessionBuffer(const SSLSessionID &sid, char *buffer, int &len) const |
| 69 | { |
| 70 | uint64_t hash = sid.hash(); |
| 71 | uint64_t target_bucket = hash % nbuckets; |
| 72 | SSLSessionBucket *bucket = &session_bucket[target_bucket]; |
| 73 | |
| 74 | return bucket->getSessionBuffer(sid, buffer, len); |
| 75 | } |
| 76 | |
| 77 | bool |
| 78 | SSLSessionCache::getSession(const SSLSessionID &sid, SSL_SESSION **sess, ssl_session_cache_exdata **data) const |