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

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

Issue 8890073: Handle Origin Bound Certificate expiration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review changes Created 9 years 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/x509_util.h ('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_NSS_H_ 5 #ifndef NET_BASE_X509_UTIL_NSS_H_
6 #define NET_BASE_X509_UTIL_NSS_H_ 6 #define NET_BASE_X509_UTIL_NSS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 // Creates a self-signed certificate containing |public_key|. Subject, serial 22 // Creates a self-signed certificate containing |public_key|. Subject, serial
23 // number and validity period are given as parameters. The certificate is 23 // number and validity period are given as parameters. The certificate is
24 // signed by |private_key|. The hashing algorithm for the signature is SHA-1. 24 // signed by |private_key|. The hashing algorithm for the signature is SHA-1.
25 // |subject| is a distinguished name defined in RFC4514. 25 // |subject| is a distinguished name defined in RFC4514.
26 CERTCertificate* CreateSelfSignedCert( 26 CERTCertificate* CreateSelfSignedCert(
27 SECKEYPublicKey* public_key, 27 SECKEYPublicKey* public_key,
28 SECKEYPrivateKey* private_key, 28 SECKEYPrivateKey* private_key,
29 const std::string& subject, 29 const std::string& subject,
30 uint32 serial_number, 30 uint32 serial_number,
31 base::TimeDelta valid_duration); 31 base::Time not_valid_before,
32 base::Time not_valid_after);
32 33
33 } // namespace x509_util 34 } // namespace x509_util
34 35
35 } // namespace net 36 } // namespace net
36 37
37 #endif // NET_BASE_X509_UTIL_NSS_H_ 38 #endif // NET_BASE_X509_UTIL_NSS_H_
OLDNEW
« no previous file with comments | « net/base/x509_util.h ('k') | net/base/x509_util_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698