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

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

Issue 9617039: Change Origin bound certs -> Domain bound certs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename all the things Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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; 15 class ECPrivateKey;
16 } 16 }
17 17
18 namespace net { 18 namespace net {
19 19
20 namespace x509_util { 20 namespace x509_util {
21 21
22 // Creates an origin bound certificate containing the public key in |key|. 22 // Creates a server bound certificate containing the public key in |key|.
23 // Web origin, serial number and validity period are given as 23 // Domain, serial number and validity period are given as
wtc 2012/03/15 23:46:38 "Domain" should match the new name of the second p
mattm 2012/03/16 22:22:00 Done.
24 // parameters. The certificate is signed by the private key in |key|. 24 // parameters. The certificate is signed by the private key in |key|.
25 // The hashing algorithm for the signature is SHA-1. 25 // The hashing algorithm for the signature is SHA-1.
26 // 26 //
27 // See Internet Draft draft-balfanz-tls-obc-00 for more details: 27 // See Internet Draft draft-balfanz-tls-obc-00 for more details:
28 // http://tools.ietf.org/html/draft-balfanz-tls-obc-00 28 // http://tools.ietf.org/html/draft-balfanz-tls-obc-00
29 bool NET_EXPORT_PRIVATE CreateOriginBoundCertEC(crypto::ECPrivateKey* key, 29 bool NET_EXPORT_PRIVATE CreateServerBoundCertEC(crypto::ECPrivateKey* key,
wtc 2012/03/15 23:46:38 This function should be named either OriginBound o
mattm 2012/03/16 22:22:00 Done.
30 const std::string& origin, 30 const std::string& server,
31 uint32 serial_number, 31 uint32 serial_number,
32 base::Time not_valid_before, 32 base::Time not_valid_before,
33 base::Time not_valid_after, 33 base::Time not_valid_after,
34 std::string* der_cert); 34 std::string* der_cert);
35 35
36 } // namespace x509_util 36 } // namespace x509_util
37 37
38 } // namespace net 38 } // namespace net
39 39
40 #endif // NET_BASE_X509_UTIL_H_ 40 #endif // NET_BASE_X509_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698