PR_ASSERT(NULL == crlcache.lock);
PORT_Assert(NULL == crlcache.lock); PORT_Assert(NULL == crlcache.issuers); if (crlcache.lock || crlcache.issuers) {  PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); return SECFailure; } #ifdef GLOBAL_RWLOCK crlcache.lock = NSSRWLock_New(NSS_RWLOCK_RANK_NONE, NULL); #else
SECStatus InitCRLCache(void){    if (PR_FALSE == crlcache_initialized)    {        PR_ASSERT(NULL == crlcache.lock);        crlcache.lock = PR_NewLock();        if (!crlcache.lock)        {            return SECFailure;        }        PR_ASSERT(NULL == crlcache.issuers);        crlcache.issuers = PL_NewHashTable(0, SECITEM_Hash, SECITEM_HashCompare,                                  PL_CompareValues, NULL, NULL);        if (!crlcache.issuers)        {            PR_DestroyLock(crlcache.lock);            crlcache.lock = NULL;            return SECFailure;        }        crlcache_initialized = PR_TRUE;        return SECSuccess;    }    else    {        PR_ASSERT(crlcache.lock);        PR_ASSERT(crlcache.issuers);        if ( (NULL == crlcache.lock) || (NULL == crlcache.issuers) )        {            return SECFailure;        }        else        {            return SECSuccess;        }    }}