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

Unified Diff: net/third_party/nss/ssl/cmpcert.h

Issue 2185403003: Return the certificate chain in ClientCertStoreNSS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rsleevi comments Created 4 years, 5 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/third_party/nss/ssl/cmpcert.h
diff --git a/net/third_party/nss/ssl/cmpcert.h b/net/third_party/nss/ssl/cmpcert.h
new file mode 100644
index 0000000000000000000000000000000000000000..d6bc2fb30567af964310c389e9f097ef5777e7b9
--- /dev/null
+++ b/net/third_party/nss/ssl/cmpcert.h
@@ -0,0 +1,30 @@
+/*
+ * NSS utility functions
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#ifndef NET_THIRD_PARTY_NSS_SSL_CMPCERT_H_
+#define NET_THIRD_PARTY_NSS_SSL_CMPCERT_H_
+
+#include <cert.h>
+
+#include <string>
+#include <vector>
+
+#include "net/cert/scoped_nss_types.h"
+
+namespace net {
+
+// Checks if |cert| matches |cert_authorities|. If so, it sets |*intermediates|
+// to a list of intermediates to send and returns true. Otherwise, it returns
+// false.
+bool MatchClientCertificateIssuers(
+ CERTCertificate* cert,
+ const std::vector<std::string>& cert_authorities,
+ std::vector<ScopedCERTCertificate>* intermediates);
+
+} // namespace net
+
+#endif // NET_THIRD_PARTY_NSS_SSL_CMPCERT_H_

Powered by Google App Engine
This is Rietveld 408576698