Lines Matching refs:keyfile
71 keyfile[1024]; /* Private key filename */ in cupsMakeServerCredentials() local
97 http_gnutls_make_path(keyfile, sizeof(keyfile), path, common_name, "key"); in cupsMakeServerCredentials()
123 else if ((fp = cupsFileOpen(keyfile, "w")) != NULL) in cupsMakeServerCredentials()
125 DEBUG_printf(("1cupsMakeServerCredentials: Writing private key to \"%s\".", keyfile)); in cupsMakeServerCredentials()
131 …upsMakeServerCredentials: Unable to create private key file \"%s\": %s", keyfile, strerror(errno))… in cupsMakeServerCredentials()
1333 keyfile[1024]; /* Private key file */ in _httpTLSStart() local
1378 http_gnutls_make_path(keyfile, sizeof(keyfile), tls_keypath, hostname, "key"); in _httpTLSStart()
1380 if (access(crtfile, R_OK) || access(keyfile, R_OK)) in _httpTLSStart()
1412 strlcpy(keyfile, cakeyfile, sizeof(keyfile)); in _httpTLSStart()
1416 have_creds = !access(crtfile, R_OK) && !access(keyfile, R_OK); in _httpTLSStart()
1425 http_gnutls_make_path(keyfile, sizeof(keyfile), tls_keypath, tls_common_name, "key"); in _httpTLSStart()
1427 if (access(crtfile, R_OK) || access(keyfile, R_OK)) in _httpTLSStart()
1459 strlcpy(keyfile, cakeyfile, sizeof(keyfile)); in _httpTLSStart()
1463 have_creds = !access(crtfile, R_OK) && !access(keyfile, R_OK); in _httpTLSStart()
1481 …BUG_printf(("4_httpTLSStart: Using certificate \"%s\" and private key \"%s\".", crtfile, keyfile)); in _httpTLSStart()
1484 …status = gnutls_certificate_set_x509_key_file(*credentials, crtfile, keyfile, GNUTLS_X509_FMT_PEM); in _httpTLSStart()