NO_SESSION_CAHCE fixes

This commit is contained in:
Todd A Ouska 2011-08-11 13:23:49 -07:00
parent 27ad8abf52
commit 626b1a019b
2 changed files with 10 additions and 0 deletions

View File

@ -2604,7 +2604,9 @@ int SendFinished(SSL* ssl)
return BUILD_MSG_ERROR; return BUILD_MSG_ERROR;
if (!ssl->options.resuming) { if (!ssl->options.resuming) {
#ifndef NO_SESSION_CACHE
AddSession(ssl); /* just try */ AddSession(ssl); /* just try */
#endif
if (ssl->options.side == CLIENT_END) if (ssl->options.side == CLIENT_END)
BuildFinished(ssl, &ssl->verifyHashes, server); BuildFinished(ssl, &ssl->verifyHashes, server);
else else

View File

@ -1886,6 +1886,14 @@ int AddSession(SSL* ssl)
#endif /* SESSION_STATS */ #endif /* SESSION_STATS */
#else /* NO_SESSION_CACHE */
/* No session cache version */
SSL_SESSION* GetSession(SSL* ssl, byte* masterSecret)
{
return NULL;
}
#endif /* NO_SESSION_CACHE */ #endif /* NO_SESSION_CACHE */