OLD | NEW |
---|---|
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 #include "net/base/x509_util.h" | |
5 #include "net/base/x509_util_openssl.h" | 6 #include "net/base/x509_util_openssl.h" |
6 | 7 |
7 #include <algorithm> | 8 #include <algorithm> |
8 | 9 |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 #include "base/string_piece.h" | 11 #include "base/string_piece.h" |
11 #include "net/base/x509_cert_types.h" | 12 #include "net/base/x509_cert_types.h" |
12 | 13 |
13 namespace net { | 14 namespace net { |
14 | 15 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
62 return false; | 63 return false; |
63 | 64 |
64 base::StringPiece str_date(reinterpret_cast<const char*>(x509_time->data), | 65 base::StringPiece str_date(reinterpret_cast<const char*>(x509_time->data), |
65 x509_time->length); | 66 x509_time->length); |
66 | 67 |
67 CertDateFormat format = x509_time->type == V_ASN1_UTCTIME ? | 68 CertDateFormat format = x509_time->type == V_ASN1_UTCTIME ? |
68 CERT_DATE_FORMAT_UTC_TIME : CERT_DATE_FORMAT_GENERALIZED_TIME; | 69 CERT_DATE_FORMAT_UTC_TIME : CERT_DATE_FORMAT_GENERALIZED_TIME; |
69 return ParseCertificateDate(str_date, format, time); | 70 return ParseCertificateDate(str_date, format, time); |
70 } | 71 } |
71 | 72 |
73 bool CreateOriginBoundCert( | |
wtc
2011/10/17 19:09:27
Nit: list this function first, if we consider x509
mattm
2011/10/17 22:54:19
Done.
| |
74 crypto::RSAPrivateKey* key, | |
75 const std::string& origin, | |
76 uint32 serial_number, | |
77 base::TimeDelta valid_duration, | |
78 std::string* der_cert) { | |
79 NOTIMPLEMENTED(); | |
80 return false; | |
81 } | |
82 | |
72 } // namespace x509_util | 83 } // namespace x509_util |
73 | 84 |
74 } // namespace net | 85 } // namespace net |
OLD | NEW |