OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef NET_BASE_X509_UTIL_H_ | |
6 #define NET_BASE_X509_UTIL_H_ | |
7 #pragma once | |
8 | |
9 #include <string> | |
10 | |
11 #include "base/time.h" | |
12 #include "net/base/net_export.h" | |
13 | |
14 namespace crypto { | |
15 class RSAPrivateKey; | |
16 } | |
17 | |
18 namespace net { | |
19 | |
20 namespace x509_util { | |
21 | |
22 // Create an origin bound certificate containing the public key in |key|. | |
wtc
2011/10/17 19:09:27
Nit: Create => Creates
mattm
2011/10/17 22:54:19
Done.
| |
23 // Web origin, serial number and validity period are given as | |
24 // parameters. The certificate is signed by the private key in |key|. | |
25 // The hashing algorithm for the signature is SHA-1. | |
26 // | |
27 // See Internet Draft draft-balfanz-tls-obc-00 for more details: | |
28 // http://balfanz.github.com/tls-obc-spec/draft-balfanz-tls-obc-00.html | |
wtc
2011/10/17 19:09:27
This URL is now broken. Although there is a newer
mattm
2011/10/17 22:54:19
Done.
| |
29 bool NET_EXPORT_PRIVATE CreateOriginBoundCert(crypto::RSAPrivateKey* key, | |
30 const std::string& origin, | |
31 uint32 serial_number, | |
32 base::TimeDelta valid_duration, | |
33 std::string* der_cert); | |
34 | |
35 } // namespace x509_util | |
36 | |
37 } // namespace net | |
38 | |
39 #endif // NET_BASE_X509_UTIL_H_ | |
OLD | NEW |