blob: d6bc2fb30567af964310c389e9f097ef5777e7b9 [file] [log] [blame]
* NSS utility functions
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at */
#include <cert.h>
#include <string>
#include <vector>
#include "net/cert/scoped_nss_types.h"
namespace net {
// Checks if |cert| matches |cert_authorities|. If so, it sets |*intermediates|
// to a list of intermediates to send and returns true. Otherwise, it returns
// false.
bool MatchClientCertificateIssuers(
CERTCertificate* cert,
const std::vector<std::string>& cert_authorities,
std::vector<ScopedCERTCertificate>* intermediates);
} // namespace net