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

Side by Side Diff: net/base/x509_util.h

Issue 8587018: Revert "Allow signing EC certs and creating EC origin-bound certs." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/origin_bound_cert_service.cc ('k') | net/base/x509_util_nss.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_BASE_X509_UTIL_H_ 5 #ifndef NET_BASE_X509_UTIL_H_
6 #define NET_BASE_X509_UTIL_H_ 6 #define NET_BASE_X509_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "net/base/net_export.h" 12 #include "net/base/net_export.h"
13 13
14 namespace crypto { 14 namespace crypto {
15 class ECPrivateKey;
16 class RSAPrivateKey; 15 class RSAPrivateKey;
17 } 16 }
18 17
19 namespace net { 18 namespace net {
20 19
21 namespace x509_util { 20 namespace x509_util {
22 21
23 // Creates an origin bound certificate containing the public key in |key|. 22 // Creates an origin bound certificate containing the public key in |key|.
24 // Web origin, serial number and validity period are given as 23 // Web origin, serial number and validity period are given as
25 // parameters. The certificate is signed by the private key in |key|. 24 // parameters. The certificate is signed by the private key in |key|.
26 // The hashing algorithm for the signature is SHA-1. 25 // The hashing algorithm for the signature is SHA-1.
27 // 26 //
28 // See Internet Draft draft-balfanz-tls-obc-00 for more details: 27 // See Internet Draft draft-balfanz-tls-obc-00 for more details:
29 // http://tools.ietf.org/html/draft-balfanz-tls-obc-00 28 // http://tools.ietf.org/html/draft-balfanz-tls-obc-00
30 bool NET_EXPORT_PRIVATE CreateOriginBoundCertRSA(crypto::RSAPrivateKey* key, 29 bool NET_EXPORT_PRIVATE CreateOriginBoundCert(crypto::RSAPrivateKey* key,
31 const std::string& origin, 30 const std::string& origin,
32 uint32 serial_number, 31 uint32 serial_number,
33 base::TimeDelta valid_duration, 32 base::TimeDelta valid_duration,
34 std::string* der_cert); 33 std::string* der_cert);
35 bool NET_EXPORT_PRIVATE CreateOriginBoundCertEC(crypto::ECPrivateKey* key,
36 const std::string& origin,
37 uint32 serial_number,
38 base::TimeDelta valid_duration,
39 std::string* der_cert);
40 34
41 } // namespace x509_util 35 } // namespace x509_util
42 36
43 } // namespace net 37 } // namespace net
44 38
45 #endif // NET_BASE_X509_UTIL_H_ 39 #endif // NET_BASE_X509_UTIL_H_
OLDNEW
« no previous file with comments | « net/base/origin_bound_cert_service.cc ('k') | net/base/x509_util_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698