This source file includes following definitions.
- SSLAddCertificate
#include "chrome/browser/ssl/ssl_add_certificate.h"
#include "chrome/browser/ssl/ssl_add_cert_handler.h"
#include "net/cert/x509_certificate.h"
namespace chrome {
void SSLAddCertificate(
net::URLRequest* request,
net::CertificateMimeType cert_type,
const void* cert_data,
size_t cert_size,
int render_process_id,
int render_view_id) {
if (cert_type != net::CERTIFICATE_MIME_TYPE_X509_USER_CERT)
return;
scoped_refptr<net::X509Certificate> cert;
if (cert_data != NULL) {
cert = net::X509Certificate::CreateFromBytes(
reinterpret_cast<const char*>(cert_data), cert_size);
}
new SSLAddCertHandler(request, cert.get(), render_process_id, render_view_id);
}
}