bool nsNSSCertTrust::HasAnyUser() { if (hasTrust(mTrust.sslFlags, CERTDB_USER) || hasTrust(mTrust.emailFlags, CERTDB_USER) || hasTrust(mTrust.objectSigningFlags, CERTDB_USER)) return true; return false; }
bool nsNSSCertTrust::HasAnyCA() { if (hasTrust(mTrust.sslFlags, CERTDB_VALID_CA) || hasTrust(mTrust.emailFlags, CERTDB_VALID_CA) || hasTrust(mTrust.objectSigningFlags, CERTDB_VALID_CA)) return true; return false; }
PRBool nsNSSCertTrust::HasAnyUser() { if (hasTrust(mTrust.sslFlags, CERTDB_USER) || hasTrust(mTrust.emailFlags, CERTDB_USER) || hasTrust(mTrust.objectSigningFlags, CERTDB_USER)) return PR_TRUE; return PR_FALSE; }
PRBool nsNSSCertTrust::HasAnyCA() { if (hasTrust(mTrust.sslFlags, CERTDB_VALID_CA) || hasTrust(mTrust.emailFlags, CERTDB_VALID_CA) || hasTrust(mTrust.objectSigningFlags, CERTDB_VALID_CA)) return PR_TRUE; return PR_FALSE; }
bool nsNSSCertTrust::HasUser(bool checkSSL, bool checkEmail, bool checkObjSign) { if (checkSSL && !hasTrust(mTrust.sslFlags, CERTDB_USER)) return false; if (checkEmail && !hasTrust(mTrust.emailFlags, CERTDB_USER)) return false; if (checkObjSign && !hasTrust(mTrust.objectSigningFlags, CERTDB_USER)) return false; return true; }
PRBool nsNSSCertTrust::HasUser(PRBool checkSSL, PRBool checkEmail, PRBool checkObjSign) { if (checkSSL && !hasTrust(mTrust.sslFlags, CERTDB_USER)) return PR_FALSE; if (checkEmail && !hasTrust(mTrust.emailFlags, CERTDB_USER)) return PR_FALSE; if (checkObjSign && !hasTrust(mTrust.objectSigningFlags, CERTDB_USER)) return PR_FALSE; return PR_TRUE; }
bool nsNSSCertTrust::HasTrustedCA(bool checkSSL, bool checkEmail, bool checkObjSign) { if (checkSSL && !(hasTrust(mTrust.sslFlags, CERTDB_TRUSTED_CA) || hasTrust(mTrust.sslFlags, CERTDB_TRUSTED_CLIENT_CA))) return false; if (checkEmail && !(hasTrust(mTrust.emailFlags, CERTDB_TRUSTED_CA) || hasTrust(mTrust.emailFlags, CERTDB_TRUSTED_CLIENT_CA))) return false; if (checkObjSign && !(hasTrust(mTrust.objectSigningFlags, CERTDB_TRUSTED_CA) || hasTrust(mTrust.objectSigningFlags, CERTDB_TRUSTED_CLIENT_CA))) return false; return true; }
PRBool nsNSSCertTrust::HasTrustedCA(PRBool checkSSL, PRBool checkEmail, PRBool checkObjSign) { if (checkSSL && !(hasTrust(mTrust.sslFlags, CERTDB_TRUSTED_CA) || hasTrust(mTrust.sslFlags, CERTDB_TRUSTED_CLIENT_CA))) return PR_FALSE; if (checkEmail && !(hasTrust(mTrust.emailFlags, CERTDB_TRUSTED_CA) || hasTrust(mTrust.emailFlags, CERTDB_TRUSTED_CLIENT_CA))) return PR_FALSE; if (checkObjSign && !(hasTrust(mTrust.objectSigningFlags, CERTDB_TRUSTED_CA) || hasTrust(mTrust.objectSigningFlags, CERTDB_TRUSTED_CLIENT_CA))) return PR_FALSE; return PR_TRUE; }