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

Unified Diff: net/cert/internal/cert_issuer_source_nss.h

Issue 2535733003: pki library: Add CertIssuerSourceNSS that retrieves intermediate certs from NSS. (Closed)
Patch Set: . Created 4 years, 1 month 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/internal/cert_issuer_source_nss.h
diff --git a/net/cert/internal/cert_issuer_source_nss.h b/net/cert/internal/cert_issuer_source_nss.h
new file mode 100644
index 0000000000000000000000000000000000000000..b50d6e633637dd00f0ba5e2775fa70e24d9c4b9f
--- /dev/null
+++ b/net/cert/internal/cert_issuer_source_nss.h
@@ -0,0 +1,31 @@
+// 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_INTERNAL_CERT_ISSUER_SOURCE_NSS_H_
+#define NET_CERT_INTERNAL_CERT_ISSUER_SOURCE_NSS_H_
+
+#include "net/base/net_export.h"
+#include "net/cert/internal/cert_issuer_source.h"
+
+namespace net {
+
+// Returns issuers from NSS. Always returns results syncronously.
eroman 2016/11/29 20:18:27 spelling: synchronously Can you also add a littl
mattm 2016/11/30 03:07:19 Done.
+class NET_EXPORT CertIssuerSourceNSS : public CertIssuerSource {
+ public:
+ CertIssuerSourceNSS();
+ ~CertIssuerSourceNSS() override;
+
+ // CertIssuerSource implementation:
+ void SyncGetIssuersOf(const ParsedCertificate* cert,
+ ParsedCertificateList* issuers) override;
+ void AsyncGetIssuersOf(const ParsedCertificate* cert,
eroman 2016/11/29 20:18:27 Side-note, and thinking out loud here (not related
mattm 2016/11/30 03:07:19 Possibly, if we find there aren't any other use ca
+ std::unique_ptr<Request>* out_req) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(CertIssuerSourceNSS);
+};
+
+} // namespace net
+
+#endif // NET_CERT_INTERNAL_CERT_ISSUER_SOURCE_NSS_H_

Powered by Google App Engine
This is Rietveld 408576698