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

Unified Diff: net/base/x509_util_mac.h

Issue 7324039: Ensure X509Certificate::OSCertHandles are safe to be used on both UI and IO threads on Win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mac fix Created 9 years, 2 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/base/x509_util_mac.h
diff --git a/net/base/x509_util_mac.h b/net/base/x509_util_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..639ca6e4640977ac1ccb30e59349a544157c56d0
--- /dev/null
+++ b/net/base/x509_util_mac.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2011 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_BASE_X509_UTIL_MAC_H_
+#define NET_BASE_X509_UTIL_MAC_H_
+#pragma once
+
+#include <CoreFoundation/CFArray.h>
+
+namespace net {
+
+class X509Certificate;
+
+namespace x509_util {
+
+// Returns a new CFArrayRef containing the certificate chain represented by
+// |cert| in the form expected by Security.framework and Keychain Services, or
+// NULL on failure. The first item in the array will be the primary
+// certificate of |cert|, followed by any additional certificates contained as
+// optional intermediates.
wtc 2011/10/16 14:55:49 Nit: any additional certificates contained as opti
+CFArrayRef CreateOSCertChainForCert(const X509Certificate* cert);
+
+} // namespace x509_util
+
+} // namespace net
+
+#endif // NET_BASE_X509_UTIL_MAC_H_

Powered by Google App Engine
This is Rietveld 408576698