//
static SecCertificateRef _rootCertificateWithSubjectOfCertificate(SecCertificateRef certificate)
{
- if (!certificate)
+ if (!certificate) {
return NULL;
+ }
- StLock<Mutex> _(SecTrustKeychainsGetMutex());
+ StLock<Mutex> _(SecTrustKeychainsGetMutex());
// get data+length for the provided certificate
CSSM_CL_HANDLE clHandle = 0;
SecCertificateRef resultCert = NULL;
OSStatus status = errSecSuccess;
- if (!certificate)
+ if (!certificate) {
return NULL;
+ }
StLock<Mutex> _(SecTrustKeychainsGetMutex());
{
StLock<Mutex> _(SecTrustKeychainsGetMutex());
- if (!oidString)
+ if (!oidString) {
return NULL;
+ }
CFDictionaryRef evOidDict = _evCAOidDict();
if (!evOidDict)
return NULL;