summaryrefslogtreecommitdiffstats
path: root/net/base/cert_status_flags.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/cert_status_flags.h')
-rw-r--r--net/base/cert_status_flags.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/base/cert_status_flags.h b/net/base/cert_status_flags.h
index fcd03f0..02381cc 100644
--- a/net/base/cert_status_flags.h
+++ b/net/base/cert_status_flags.h
@@ -33,6 +33,14 @@ static inline bool IsCertStatusError(int status) {
return (CERT_STATUS_ALL_ERRORS & status) != 0;
}
+// Maps a network error code to the equivalent certificate status flag. If
+// the error code is not a certificate error, it is mapped to 0.
+int MapNetErrorToCertStatus(int error);
+
+// Maps the most serious certificate error in the certificate status flags
+// to the equivalent network error code.
+int MapCertStatusToNetError(int cert_status);
+
} // namespace net
#endif // NET_BASE_CERT_STATUS_FLAGS_H_