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

Unified Diff: net/base/x509_util_nss.h

Issue 8296014: Use NSS to generate Origin-Bound Certs on Win and Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address other points of original review too 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_nss.h
diff --git a/net/base/x509_util_nss.h b/net/base/x509_util_nss.h
new file mode 100644
index 0000000000000000000000000000000000000000..ca78ba6147d8cf2822bf64e99b59ab6cff915470
--- /dev/null
+++ b/net/base/x509_util_nss.h
@@ -0,0 +1,32 @@
+// 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_NSS_H_
+#define NET_BASE_X509_UTIL_NSS_H_
+#pragma once
+
+#include <string>
+
+#include "base/time.h"
+
+typedef struct CERTCertificateStr CERTCertificate;
+struct SECKEYPrivateKeyStr;
+struct SECKEYPublicKeyStr;
wtc 2011/10/17 19:09:27 Please replace these two lines with typedef struct
mattm 2011/10/17 22:54:19 Done.
+
+namespace net {
+
+namespace x509_util {
+
+CERTCertificate* CreateSelfSignedCert(
+ SECKEYPublicKeyStr* public_key,
+ SECKEYPrivateKeyStr* key,
wtc 2011/10/17 19:09:27 Document this function. Nit: this parameter shoul
mattm 2011/10/17 22:54:19 Done.
+ const std::string& subject,
+ uint32 serial_number,
+ base::TimeDelta valid_duration);
+
+} // namespace x509_util
+
+} // namespace net
+
+#endif // NET_BASE_X509_UTIL_NSS_H_

Powered by Google App Engine
This is Rietveld 408576698