Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / net / cert / internal / verify_name_match.h
blobde1dd877053f07e98d815686e70c64bff3d5d86e
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
3 // found in the LICENSE file.
5 #ifndef NET_CERT_INTERNAL_VERIFY_NAME_MATCH_H_
6 #define NET_CERT_INTERNAL_VERIFY_NAME_MATCH_H_
8 #include "base/strings/string_piece.h"
9 #include "net/base/net_export.h"
11 namespace net {
13 namespace der {
14 class Input;
15 } // namespace der
17 // Compare DER-encoded X.501 Name values according to RFC 5280 rules.
18 // TODO(mattm): Doesn't actually implement RFC 5280 matching yet.
19 // Returns true if |a| and |b| match.
20 NET_EXPORT bool VerifyNameMatch(const der::Input& a, const der::Input& b);
22 } // namespace net
24 #endif // NET_CERT_INTERNAL_VERIFY_NAME_MATCH_H_