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 "chromeos/network/certificate_pattern.h" | 5 #include "chromeos/network/certificate_pattern.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 const std::string& organizational_unit) | 41 const std::string& organizational_unit) |
42 : common_name_(common_name), | 42 : common_name_(common_name), |
43 locality_(locality), | 43 locality_(locality), |
44 organization_(organization), | 44 organization_(organization), |
45 organizational_unit_(organizational_unit) { | 45 organizational_unit_(organizational_unit) { |
46 } | 46 } |
47 | 47 |
48 IssuerSubjectPattern::IssuerSubjectPattern() { | 48 IssuerSubjectPattern::IssuerSubjectPattern() { |
49 } | 49 } |
50 | 50 |
| 51 IssuerSubjectPattern::IssuerSubjectPattern(const IssuerSubjectPattern& other) = |
| 52 default; |
| 53 |
51 IssuerSubjectPattern::~IssuerSubjectPattern() { | 54 IssuerSubjectPattern::~IssuerSubjectPattern() { |
52 } | 55 } |
53 | 56 |
54 bool IssuerSubjectPattern::Empty() const { | 57 bool IssuerSubjectPattern::Empty() const { |
55 return common_name_.empty() && locality_.empty() && organization_.empty() && | 58 return common_name_.empty() && locality_.empty() && organization_.empty() && |
56 organizational_unit_.empty(); | 59 organizational_unit_.empty(); |
57 } | 60 } |
58 | 61 |
59 void IssuerSubjectPattern::Clear() { | 62 void IssuerSubjectPattern::Clear() { |
60 common_name_.clear(); | 63 common_name_.clear(); |
(...skipping 14 matching lines...) Expand all Loading... |
75 dict.GetStringWithoutPathExpansion(onc::client_cert::kOrganizationalUnit, | 78 dict.GetStringWithoutPathExpansion(onc::client_cert::kOrganizationalUnit, |
76 &organizational_unit_); | 79 &organizational_unit_); |
77 } | 80 } |
78 | 81 |
79 //////////////////////////////////////////////////////////////////////////////// | 82 //////////////////////////////////////////////////////////////////////////////// |
80 // CertificatePattern | 83 // CertificatePattern |
81 | 84 |
82 CertificatePattern::CertificatePattern() { | 85 CertificatePattern::CertificatePattern() { |
83 } | 86 } |
84 | 87 |
| 88 CertificatePattern::CertificatePattern(const CertificatePattern& other) = |
| 89 default; |
| 90 |
85 CertificatePattern::~CertificatePattern() { | 91 CertificatePattern::~CertificatePattern() { |
86 } | 92 } |
87 | 93 |
88 bool CertificatePattern::Empty() const { | 94 bool CertificatePattern::Empty() const { |
89 return issuer_ca_pems_.empty() && issuer_.Empty() && subject_.Empty(); | 95 return issuer_ca_pems_.empty() && issuer_.Empty() && subject_.Empty(); |
90 } | 96 } |
91 | 97 |
92 void CertificatePattern::Clear() { | 98 void CertificatePattern::Clear() { |
93 issuer_ca_pems_.clear(); | 99 issuer_ca_pems_.clear(); |
94 issuer_.Clear(); | 100 issuer_.Clear(); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 &child_list) && | 132 &child_list) && |
127 child_list) { | 133 child_list) { |
128 if (!GetAsListOfStrings(*child_list, &enrollment_uri_list_)) | 134 if (!GetAsListOfStrings(*child_list, &enrollment_uri_list_)) |
129 return false; | 135 return false; |
130 } | 136 } |
131 | 137 |
132 return true; | 138 return true; |
133 } | 139 } |
134 | 140 |
135 } // namespace chromeos | 141 } // namespace chromeos |
OLD | NEW |