Home
last modified time | relevance | path

Searched refs:cert_name (Results 1 – 2 of 2) sorted by relevance

/external/libcups/cups/
Dtls-sspi.c188 char cert_name[1024]; /* Name from certificate */ in httpCredentialsAreValidForName() local
193 …509_ASN_ENCODING, &(cert->pCertInfo->Subject), CERT_SIMPLE_NAME_STR, cert_name, sizeof(cert_name))) in httpCredentialsAreValidForName()
199 char *ptr = strrchr(cert_name, ','); in httpCredentialsAreValidForName()
201 _cups_strcpy(cert_name, ptr + 2); in httpCredentialsAreValidForName()
204 strlcpy(cert_name, "unknown", sizeof(cert_name)); in httpCredentialsAreValidForName()
209 strlcpy(cert_name, "unknown", sizeof(cert_name)); in httpCredentialsAreValidForName()
215 if (_cups_strcasecmp(common_name, cert_name)) in httpCredentialsAreValidForName()
224 if (strncmp(cert_name, "*.", 2) || !domain || _cups_strcasecmp(domain, cert_name + 1)) in httpCredentialsAreValidForName()
350 char cert_name[256]; /* Common name */ in httpCredentialsString() local
368 …509_ASN_ENCODING, &(cert->pCertInfo->Subject), CERT_SIMPLE_NAME_STR, cert_name, sizeof(cert_name))) in httpCredentialsString()
[all …]
Dtls-darwin.c540 char cert_name[256]; /* Certificate's common name (C string) */ in httpCredentialsAreValidForName() local
559 else if (CFStringGetCString(cfcert_name, cert_name, sizeof(cert_name), kCFStringEncodingUTF8) && in httpCredentialsAreValidForName()
560 _cups_strcasecmp(common_name, cert_name)) in httpCredentialsAreValidForName()
569 if (strncmp(cert_name, "*.", 2) || !domain || _cups_strcasecmp(domain, cert_name + 1)) in httpCredentialsAreValidForName()