blob: e5f4dc3c48fcd5d8a34a20f0ae820ba69e1241c9 (
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
27
28
|
// Copyright (c) 2011 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.
#include "content/browser/ssl/ssl_client_auth_notification_details.h"
#include "net/base/ssl_cert_request_info.h"
SSLClientAuthNotificationDetails::SSLClientAuthNotificationDetails(
const net::SSLCertRequestInfo* cert_request_info,
const SSLClientAuthHandler* handler,
net::X509Certificate* selected_cert)
: cert_request_info_(cert_request_info),
handler_(handler),
selected_cert_(selected_cert) {
}
bool SSLClientAuthNotificationDetails::IsSameHost(
const net::SSLCertRequestInfo* cert_request_info) const {
// TODO(mattm): should we also compare the DistinguishedNames, or is just
// matching host&port sufficient?
return cert_request_info_->host_and_port == cert_request_info->host_and_port;
}
bool SSLClientAuthNotificationDetails::IsSameHandler(
const SSLClientAuthHandler* handler) const {
return handler_ == handler;
}
|