Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: net/cert/sec_trust_util.h

Issue 2225483002: [ios] Removed CertVerifierBlockAdapter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/cert/sec_trust_util.h
diff --git a/net/cert/sec_trust_util.h b/net/cert/sec_trust_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..b8ef3ff21a8875cb4aaace500984626833d56438
--- /dev/null
+++ b/net/cert/sec_trust_util.h
@@ -0,0 +1,20 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_CERT_SEC_TRUST_UTIL_H_
+#define NET_CERT_SEC_TRUST_UTIL_H_
Ryan Sleevi 2016/08/08 17:47:37 Why are you introducing this file? I'm particular
Eugene But (OOO till 7-30) 2016/08/08 20:22:23 I don't think that sec_trust_util.h will grow, bec
Ryan Sleevi 2016/08/08 20:44:18 It deals with SecTrust, that's a pretty big API :)
+
+#include "net/cert/cert_status_flags.h"
+
+#include <Security/Security.h>
+
+namespace net {
+
+// Returns error CertStatus from the given |trust| object. Returns
+// CERT_STATUS_INVALID if the trust is null.
+CertStatus GetCertFailureStatusFromTrust(SecTrustRef trust);
+
+} // namespace net
+
+#endif // NET_CERT_SEC_TRUST_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698