OLD | NEW |
1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2010 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_cert_types.h" | 5 #include "net/base/x509_cert_types.h" |
6 | 6 |
| 7 #include <ostream> |
| 8 |
7 #include "net/base/x509_certificate.h" | 9 #include "net/base/x509_certificate.h" |
8 #include "base/logging.h" | 10 #include "base/logging.h" |
9 | 11 |
10 namespace net { | 12 namespace net { |
11 | 13 |
12 bool match(const std::string &str, const std::string &against) { | 14 bool match(const std::string &str, const std::string &against) { |
13 // TODO(snej): Use the full matching rules specified in RFC 5280 sec. 7.1 | 15 // TODO(snej): Use the full matching rules specified in RFC 5280 sec. 7.1 |
14 // including trimming and case-folding: <http://www.ietf.org/rfc/rfc5280.txt>. | 16 // including trimming and case-folding: <http://www.ietf.org/rfc/rfc5280.txt>. |
15 return against == str; | 17 return against == str; |
16 } | 18 } |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 105 |
104 bool CertPolicy::HasAllowedCert() const { | 106 bool CertPolicy::HasAllowedCert() const { |
105 return !allowed_.empty(); | 107 return !allowed_.empty(); |
106 } | 108 } |
107 | 109 |
108 bool CertPolicy::HasDeniedCert() const { | 110 bool CertPolicy::HasDeniedCert() const { |
109 return !denied_.empty(); | 111 return !denied_.empty(); |
110 } | 112 } |
111 | 113 |
112 } // namespace net | 114 } // namespace net |
OLD | NEW |