OLD | NEW |
---|---|
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 #include "net/cert/x509_util.h" | 5 #include "net/cert/x509_util.h" |
6 #include "net/cert/x509_util_openssl.h" | 6 #include "net/cert/x509_util_openssl.h" |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
52 crypto::ECPrivateKey* key, | 52 crypto::ECPrivateKey* key, |
53 const std::string& domain, | 53 const std::string& domain, |
54 uint32 serial_number, | 54 uint32 serial_number, |
55 base::Time not_valid_before, | 55 base::Time not_valid_before, |
56 base::Time not_valid_after, | 56 base::Time not_valid_after, |
57 std::string* der_cert) { | 57 std::string* der_cert) { |
58 NOTIMPLEMENTED(); | 58 NOTIMPLEMENTED(); |
59 return false; | 59 return false; |
60 } | 60 } |
61 | 61 |
62 bool ConvertSPKIFromDERToJWK( | |
63 base::StringPiece spki, | |
64 base::DictionaryValue* public_key_jwk) { | |
65 NOTIMPLEMENTED(); | |
66 return false; | |
Ryan Sleevi
2013/08/02 23:08:43
Should be fairly similar, right?
| |
67 } | |
68 | |
62 bool CreateSelfSignedCert(crypto::RSAPrivateKey* key, | 69 bool CreateSelfSignedCert(crypto::RSAPrivateKey* key, |
63 const std::string& common_name, | 70 const std::string& common_name, |
64 uint32 serial_number, | 71 uint32 serial_number, |
65 base::Time not_valid_before, | 72 base::Time not_valid_before, |
66 base::Time not_valid_after, | 73 base::Time not_valid_after, |
67 std::string* der_encoded) { | 74 std::string* der_encoded) { |
68 NOTIMPLEMENTED(); | 75 NOTIMPLEMENTED(); |
69 return false; | 76 return false; |
70 } | 77 } |
71 | 78 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
120 x509_time->length); | 127 x509_time->length); |
121 | 128 |
122 CertDateFormat format = x509_time->type == V_ASN1_UTCTIME ? | 129 CertDateFormat format = x509_time->type == V_ASN1_UTCTIME ? |
123 CERT_DATE_FORMAT_UTC_TIME : CERT_DATE_FORMAT_GENERALIZED_TIME; | 130 CERT_DATE_FORMAT_UTC_TIME : CERT_DATE_FORMAT_GENERALIZED_TIME; |
124 return ParseCertificateDate(str_date, format, time); | 131 return ParseCertificateDate(str_date, format, time); |
125 } | 132 } |
126 | 133 |
127 } // namespace x509_util | 134 } // namespace x509_util |
128 | 135 |
129 } // namespace net | 136 } // namespace net |
OLD | NEW |