Home | History | Annotate | Download | only in cups

Lines Matching refs:common_name

65 static BOOL	http_sspi_find_credentials(http_t *http, const LPWSTR containerName, const char *common_name);
67 static BOOL http_sspi_make_credentials(_http_sspi_t *sspi, const LPWSTR containerName, const char *common_name, _http_mode_t mode, int years);
72 static DWORD http_sspi_verify(PCCERT_CONTEXT cert, const char *common_name, DWORD dwCertFlags);
84 const char *common_name, /* I - Common name */
93 DEBUG_printf(("cupsMakeServerCredentials(path=\"%s\", common_name=\"%s\", num_alt_names=%d, alt_names=%p, expiration_date=%d)", path, common_name, num_alt_names, alt_names, (int)expiration_date));
100 ret = http_sspi_make_credentials(sspi, L"ServerContainer", common_name, _HTTP_MODE_SERVER, (int)((expiration_date - time(NULL) + 86399) / 86400 / 365));
120 const char *common_name, /* I - Default common name for server */
123 DEBUG_printf(("cupsSetServerCredentials(path=\"%s\", common_name=\"%s\", auto_create=%d)", path, common_name, auto_create));
126 (void)common_name;
183 const char *common_name) /* I - Name to check */
215 if (_cups_strcasecmp(common_name, cert_name))
221 const char *domain = strchr(common_name, '.');
248 const char *common_name) /* I - Common name for trust lookup */
256 if (!common_name)
275 if (http_sspi_verify(cert, common_name, certFlags) != SEC_E_OK)
421 const char *common_name) /* I - Common name for credentials */
435 DEBUG_printf(("httpLoadCredentials(path=\"%s\", credentials=%p, common_name=\"%s\")", path, credentials, common_name));
449 if (!common_name)
477 if (!CertStrToName(X509_ASN_ENCODING, common_name, CERT_OID_NAME_STR, NULL, NULL, &dwSize, NULL))
491 if (!CertStrToName(X509_ASN_ENCODING, common_name, CERT_OID_NAME_STR, NULL, p, &dwSize, NULL))
504 DEBUG_printf(("1httpLoadCredentials: Unable to find credentials for \"%s\".", common_name));
545 const char *common_name) /* I - Common name for credentials */
561 DEBUG_printf(("httpSaveCredentials(path=\"%s\", credentials=%p, common_name=\"%s\")", path, credentials, common_name));
565 if (!common_name)
600 if (!CertStrToName(X509_ASN_ENCODING, common_name, CERT_OID_NAME_STR, NULL, NULL, &dwSize, NULL))
614 if (!CertStrToName(X509_ASN_ENCODING, common_name, CERT_OID_NAME_STR, NULL, p, &dwSize, NULL))
1337 common_name[1024]; /* CN=username */
1355 snprintf(common_name, sizeof(common_name), "CN=%s", username);
1357 if (!http_sspi_find_credentials(http, L"ClientContainer", common_name))
1358 if (!http_sspi_make_credentials(http->tls, L"ClientContainer", common_name, _HTTP_MODE_CLIENT, 10))
1677 const char *common_name) /* I - Common name of certificate */
1717 if (!CertStrToName(X509_ASN_ENCODING, common_name, CERT_OID_NAME_STR, NULL, NULL, &dwSize, NULL))
1733 if (!CertStrToName(X509_ASN_ENCODING, common_name, CERT_OID_NAME_STR, NULL, p, &dwSize, NULL))
1747 DEBUG_printf(("5http_sspi_find_credentials: Unable to find credentials for \"%s\".", common_name));
1875 const char *common_name, /* I - Common name of certificate */
1898 DEBUG_printf(("4http_sspi_make_credentials(sspi=%p, container=%p, common_name=\"%s\", mode=%d, years=%d)", sspi, container, common_name, mode, years));
1924 if (!CertStrToName(X509_ASN_ENCODING, common_name, CERT_OID_NAME_STR, NULL, NULL, &dwSize, NULL))
1940 if (!CertStrToName(X509_ASN_ENCODING, common_name, CERT_OID_NAME_STR, NULL, p, &dwSize, NULL))
2071 char common_name[512]; /* Common name for cert */
2100 snprintf(common_name, sizeof(common_name), "CN=%s", hostname);
2102 if (!http_sspi_find_credentials(http, L"ServerContainer", common_name))
2103 if (!http_sspi_make_credentials(http->tls, L"ServerContainer", common_name, _HTTP_MODE_SERVER, 10))
2324 const char *common_name, /* I - Common name */
2355 if (!common_name || !*common_name)
2358 count = MultiByteToWideChar(CP_ACP, 0, common_name, -1, NULL, 0);
2363 if (!MultiByteToWideChar(CP_ACP, 0, common_name, -1, commonNameUnicode, count))