better endif ids
This commit is contained in:
parent
8e64f9903d
commit
aebd926472
@ -2673,7 +2673,7 @@ int CyaSSL_SetServerID(CYASSL* ssl, const byte* id, int len)
|
|||||||
return SSL_SUCCESS;
|
return SSL_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif /* NO_CLIENT_CACHE */
|
||||||
|
|
||||||
#if defined(PERSIST_SESSION_CACHE)
|
#if defined(PERSIST_SESSION_CACHE)
|
||||||
|
|
||||||
@ -3854,7 +3854,7 @@ int AddSession(CYASSL* ssl)
|
|||||||
SessionCache[row].Sessions[idx].version = ssl->version;
|
SessionCache[row].Sessions[idx].version = ssl->version;
|
||||||
SessionCache[row].Sessions[idx].cipherSuite0 = ssl->options.cipherSuite0;
|
SessionCache[row].Sessions[idx].cipherSuite0 = ssl->options.cipherSuite0;
|
||||||
SessionCache[row].Sessions[idx].cipherSuite = ssl->options.cipherSuite;
|
SessionCache[row].Sessions[idx].cipherSuite = ssl->options.cipherSuite;
|
||||||
#endif
|
#endif /* SESSION_CERTS */
|
||||||
|
|
||||||
SessionCache[row].totalCount++;
|
SessionCache[row].totalCount++;
|
||||||
if (SessionCache[row].nextIdx == SESSIONS_PER_ROW)
|
if (SessionCache[row].nextIdx == SESSIONS_PER_ROW)
|
||||||
@ -3883,7 +3883,7 @@ int AddSession(CYASSL* ssl)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
SessionCache[row].Sessions[idx].idLen = 0;
|
SessionCache[row].Sessions[idx].idLen = 0;
|
||||||
#endif
|
#endif /* NO_CLIENT_CACHE */
|
||||||
|
|
||||||
if (UnLockMutex(&session_mutex) != 0)
|
if (UnLockMutex(&session_mutex) != 0)
|
||||||
return BAD_MUTEX_ERROR;
|
return BAD_MUTEX_ERROR;
|
||||||
|
Loading…
Reference in New Issue
Block a user