summaryrefslogtreecommitdiffstats
path: root/net/socket/dns_cert_provenance_check.h
blob: 289cccfab9a885c3698e301947ce2ac6839cc2b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef NET_SOCKET_DNS_CERT_PROVENANCE_CHECK_H
#define NET_SOCKET_DNS_CERT_PROVENANCE_CHECK_H

#include <string>
#include <vector>

#include "base/string_piece.h"

namespace net {

class DnsRRResolver;

// DoAsyncDNSCertProvenanceVerification starts an asynchronous check for the
// given certificate chain. It must be run on the network thread.
void DoAsyncDNSCertProvenanceVerification(
    const std::string& hostname,
    DnsRRResolver* dnsrr_resolver,
    const std::vector<base::StringPiece>& der_certs);

}  // namespace net

#endif  // NET_SOCKET_DNS_CERT_PROVENANCE_CHECK_H