| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/internal/name_constraints.h" | 5 #include "net/cert/internal/name_constraints.h" |
| 6 | 6 |
| 7 #include <limits.h> |
| 8 |
| 7 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 8 #include "net/cert/internal/verify_name_match.h" | 10 #include "net/cert/internal/verify_name_match.h" |
| 9 #include "net/der/input.h" | 11 #include "net/der/input.h" |
| 10 #include "net/der/parser.h" | 12 #include "net/der/parser.h" |
| 11 #include "net/der/tag.h" | 13 #include "net/der/tag.h" |
| 12 | 14 |
| 13 namespace net { | 15 namespace net { |
| 14 | 16 |
| 15 namespace { | 17 namespace { |
| 16 | 18 |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 | 560 |
| 559 return false; | 561 return false; |
| 560 } | 562 } |
| 561 | 563 |
| 562 int NameConstraints::ConstrainedNameTypes() const { | 564 int NameConstraints::ConstrainedNameTypes() const { |
| 563 return (permitted_subtrees_.present_name_types | | 565 return (permitted_subtrees_.present_name_types | |
| 564 excluded_subtrees_.present_name_types); | 566 excluded_subtrees_.present_name_types); |
| 565 } | 567 } |
| 566 | 568 |
| 567 } // namespace net | 569 } // namespace net |
| OLD | NEW |