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"
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
);
24 #endif // NET_CERT_INTERNAL_VERIFY_NAME_MATCH_H_