Lines 47-53
void SessionCache::removeSessionId(unsig
Link Here
|
47 |
} |
47 |
} |
48 |
|
48 |
|
49 |
int SessionCache::setNewSessionId(SSL *s, SSL_SESSION *session) { |
49 |
int SessionCache::setNewSessionId(SSL *s, SSL_SESSION *session) { |
50 |
return setNewSessionId(s, session, session->session_id, session->session_id_length); |
50 |
unsigned int id_length; |
|
|
51 |
const unsigned char *id = SSL_SESSION_get_id(session, &id_length); |
52 |
return setNewSessionId(s, session, (unsigned char*)id, id_length); |
51 |
} |
53 |
} |
52 |
|
54 |
|
53 |
int SessionCache::setNewSessionId(SSL *s, SSL_SESSION *session, |
55 |
int SessionCache::setNewSessionId(SSL *s, SSL_SESSION *session, |
Lines 94-100
int SessionCache::setNewSessionId(SSL *s
Link Here
|
94 |
return 1; |
96 |
return 1; |
95 |
} |
97 |
} |
96 |
|
98 |
|
97 |
SSL_SESSION * SessionCache::getSessionId(SSL *s, unsigned char *id, int idLength, int *ref) { |
99 |
SSL_SESSION * SessionCache::getSessionId(SSL *s, const unsigned char *id, int idLength, int *ref) { |
98 |
int i; |
100 |
int i; |
99 |
unsigned char *b; |
101 |
unsigned char *b; |
100 |
|
102 |
|
Lines 117-123
SSL_SESSION * SessionCache::getSessionId
Link Here
|
117 |
|
119 |
|
118 |
// Trampoline Functions. Yay C. |
120 |
// Trampoline Functions. Yay C. |
119 |
|
121 |
|
120 |
SSL_SESSION * SessionCache::getSessionIdTramp(SSL *s, unsigned char *id, int idLength, int *ref) { |
122 |
SSL_SESSION * SessionCache::getSessionIdTramp(SSL *s, const unsigned char *id, int idLength, int *ref) { |
121 |
return SessionCache::getInstance()->getSessionId(s, id, idLength, ref); |
123 |
return SessionCache::getInstance()->getSessionId(s, id, idLength, ref); |
122 |
} |
124 |
} |
123 |
|
125 |
|