Lines Matching refs:cert_handle
969 std::string GetCertNameOrNickname(X509Certificate::OSCertHandle cert_handle) {
971 ProcessIDN(GetSubjectCommonName(cert_handle, std::string()));
979 X509_get_subject_name(cert_handle),
985 std::string GetTokenName(X509Certificate::OSCertHandle cert_handle) {
990 std::string GetVersion(net::X509Certificate::OSCertHandle cert_handle) {
991 unsigned long version = X509_get_version(cert_handle);
1002 void GetUsageStrings(X509Certificate::OSCertHandle cert_handle,
1008 X509Certificate::OSCertHandle cert_handle,
1010 ASN1_INTEGER* num = X509_get_serialNumber(cert_handle);
1018 X509Certificate::OSCertHandle cert_handle,
1021 x509_util::ParsePrincipalValueByNID(X509_get_issuer_name(cert_handle),
1027 X509Certificate::OSCertHandle cert_handle,
1030 x509_util::ParsePrincipalValueByNID(X509_get_issuer_name(cert_handle),
1036 X509Certificate::OSCertHandle cert_handle,
1039 x509_util::ParsePrincipalValueByNID(X509_get_issuer_name(cert_handle),
1045 X509Certificate::OSCertHandle cert_handle,
1048 x509_util::ParsePrincipalValueByNID(X509_get_subject_name(cert_handle),
1054 X509Certificate::OSCertHandle cert_handle,
1057 x509_util::ParsePrincipalValueByNID(X509_get_subject_name(cert_handle),
1062 std::string GetSubjectCommonName(X509Certificate::OSCertHandle cert_handle,
1065 x509_util::ParsePrincipalValueByNID(X509_get_subject_name(cert_handle),
1070 bool GetTimes(X509Certificate::OSCertHandle cert_handle,
1072 return x509_util::ParseDate(X509_get_notBefore(cert_handle), issued) &&
1073 x509_util::ParseDate(X509_get_notAfter(cert_handle), expires);
1076 std::string GetTitle(net::X509Certificate::OSCertHandle cert_handle) {
1081 GetSubjectCommonName(cert_handle, std::string());
1089 X509_get_subject_name(cert_handle),
1095 std::string GetIssuerName(net::X509Certificate::OSCertHandle cert_handle) {
1096 return GetKeyValuesFromName(X509_get_issuer_name(cert_handle));
1099 std::string GetSubjectName(net::X509Certificate::OSCertHandle cert_handle) {
1100 return GetKeyValuesFromName(X509_get_subject_name(cert_handle));
1106 net::X509Certificate::OSCertHandle cert_handle,
1108 for (int i = 0; i < X509_get_ext_count(cert_handle); ++i) {
1109 X509_EXTENSION* ex = X509_get_ext(cert_handle, i);
1121 std::string HashCertSHA256(net::X509Certificate::OSCertHandle cert_handle) {
1124 int ret = X509_digest(cert_handle, EVP_sha256(), sha256_data, &sha256_size);
1130 std::string HashCertSHA1(net::X509Certificate::OSCertHandle cert_handle) {
1133 int ret = X509_digest(cert_handle, EVP_sha1(), sha1_data, &sha1_size);
1167 net::X509Certificate::OSCertHandle cert_handle) {
1168 return Asn1ObjectToString(cert_handle->cert_info->signature->algorithm);
1172 net::X509Certificate::OSCertHandle cert_handle) {
1174 X509_get_X509_PUBKEY(cert_handle)->algor->algorithm);
1178 net::X509Certificate::OSCertHandle cert_handle) {
1179 return Asn1ObjectToString(cert_handle->sig_alg->algorithm);
1183 net::X509Certificate::OSCertHandle cert_handle) {
1186 X509_get_pubkey(cert_handle));
1204 rv = ProcessRawAsn1String(X509_get_X509_PUBKEY(cert_handle)->public_key);
1210 net::X509Certificate::OSCertHandle cert_handle) {
1211 return ProcessRawAsn1String(cert_handle->signature);