Beispiel #1
0
/*
	matrixSslClose
*/
void matrixSslClose(void)
{
#ifdef USE_SERVER_SIDE_SSL
	int32		i;

#ifdef USE_MULTITHREADING
	psLockMutex(&sessionTableLock);
#endif /* USE_MULTITHREADING */
	for (i = 0; i < SSL_SESSION_TABLE_SIZE; i++) {
		if (sessionTable[i].inUse > 1) {
			psTraceInfo("Warning: closing while session still in use\n");
		}
	}
	memset(sessionTable, 0x0, 
		sizeof(sslSessionEntry_t) * SSL_SESSION_TABLE_SIZE);
#ifdef USE_MULTITHREADING		
	psUnlockMutex(&sessionTableLock);
	psDestroyMutex(&sessionTableLock);
	psUnlockMutex(&prngLock);
	psDestroyMutex(&prngLock);
#endif /* USE_MULTITHREADING */	
#endif /* USE_SERVER_SIDE_SSL */

	psCoreClose();
}
/* One-time global prng lock destruction */
void psClosePrng(void)
{
#ifdef USE_MULTITHREADING
	psDestroyMutex(&prngLock);
#endif
	return;
}
Beispiel #3
0
/* Invoked from psCryptoClose */
void psCrlClose()
{
    psCRL_DeleteAll();
#  ifdef USE_MULTITHREADING
    psDestroyMutex(&g_crlTableLock);
#  endif
}