• Home
  • Raw
  • Download

Lines Matching refs:credentials

253 +  DEBUG_puts("1cupsMakeServerCredentials: Successfully created credentials.");
266 + * 'cupsSetServerCredentials()' - Set the default server credentials.
268 + * Note: The server credentials are used by all threads in the running process.
329 + * 'httpCopyCredentials()' - Copy the credentials associated with the peer in
338 + cups_array_t **credentials) // O - Array of credentials
343 + DEBUG_printf(("httpCopyCredentials(http=%p, credentials=%p)", http, credentials));
345 + if (credentials)
346 + *credentials = NULL;
348 + if (!http || !http->tls || !credentials)
351 + *credentials = cupsArrayNew(NULL, NULL);
376 + httpAddCredential(*credentials, buffer, (int)bytes);
389 + * '_httpCreateCredentials()' - Create credentials in the internal format.
392 +http_tls_credentials_t // O - Internal credentials
394 + cups_array_t *credentials) // I - Array of credentials
396 + (void)credentials;
403 + * '_httpFreeCredentials()' - Free internal credentials.
408 + http_tls_credentials_t credentials) // I - Internal credentials
410 + X509_free(credentials);
415 + * 'httpCredentialsAreValidForName()' - Return whether the credentials are valid for the given nam…
422 + cups_array_t *credentials, // I - Credentials
429 + cert = http_create_credential((http_credential_t *)cupsArrayFirst(credentials));
442 + * 'httpCredentialsGetTrust()' - Return the trust of credentials.
449 + cups_array_t *credentials, // I - Credentials
454 + cups_array_t *tcreds = NULL; // Trusted credentials
464 + if ((cert = http_create_credential((http_credential_t *)cupsArrayFirst(credentials))) == NULL)
466 + _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to create credentials from array."), 1);
481 + char credentials_str[1024], /* String for incoming credentials */
482 + tcreds_str[1024]; /* String for saved credentials */
484 + httpCredentialsString(credentials, credentials_str, sizeof(credentials_str));
490 + // credentials and allow if the new ones have a later expiration...
498 + else if (httpCredentialsGetExpiration(credentials) <= httpCredentialsGetExpiration(tcreds))
500 + // The new credentials are not newly issued...
501 … _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("New credentials are older than stored credential…
505 + else if (!httpCredentialsAreValidForName(credentials, common_name))
508 + _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("New credentials are not valid for name."), 1);
514 + // Save the renewed credentials...
517 + httpSaveCredentials(NULL, credentials, common_name);
523 + else if (cg->validate_certs && !httpCredentialsAreValidForName(credentials, common_name))
525 + _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No stored credentials, not valid for name."), 1);
533 + if (cupsArrayCount(credentials) != (cupsArrayCount(tcreds) + 1))
543 …cupsArrayIndex(credentials, 1); a && b; a = (http_credential_t *)cupsArrayNext(tcreds), b = (http_…
575 + if (trust == HTTP_TRUST_OK && !cg->any_root && cupsArrayCount(credentials) == 1)
577 + _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Self-signed credentials are blocked."), 1);
588 + * 'httpCredentialsGetExpiration()' - Return the expiration date of the credentials.
593 +time_t // O - Expiration date of credentials
595 + cups_array_t *credentials) // I - Credentials
601 + if ((cert = http_create_credential((http_credential_t *)cupsArrayFirst(credentials))) != NULL)
612 + * 'httpCredentialsString()' - Return a string representing the credentials.
617 +size_t // O - Total size of credentials string
619 + cups_array_t *credentials, // I - Credentials
627 + DEBUG_printf(("httpCredentialsString(credentials=%p, buffer=%p, bufsize=" CUPS_LLFMT ")", creden…
635 + first = (http_credential_t *)cupsArrayFirst(credentials);
701 + * 'httpLoadCredentials()' - Load X.509 credentials from a keychain file.
709 + cups_array_t **credentials, // IO - Credentials
710 + const char *common_name) // I - Common name for credentials
724 + if (!credentials || !common_name)
747 + httpFreeCredentials(*credentials);
748 + *credentials = NULL;
762 + httpFreeCredentials(*credentials);
763 + *credentials = NULL;
767 + if (!*credentials)
768 + *credentials = cupsArrayNew(NULL, NULL);
770 + if (httpAddCredential(*credentials, data, num_data))
772 + httpFreeCredentials(*credentials);
773 + *credentials = NULL;
797 + httpFreeCredentials(*credentials);
798 + *credentials = NULL;
820 + httpFreeCredentials(*credentials);
821 + *credentials = NULL;
827 + return (*credentials ? 0 : -1);
832 + * 'httpSaveCredentials()' - Save X.509 credentials to a keychain file.
840 + cups_array_t *credentials, // I - Credentials
841 + const char *common_name) // I - Common name for credentials
853 + if (!credentials || !common_name)
871 + for (cred = (http_credential_t *)cupsArrayFirst(credentials);
873 + cred = (http_credential_t *)cupsArrayNext(credentials))
985 + _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Server credentials not set."), 1);
1002 + int have_creds = 0; // Have credentials?
1087 + DEBUG_printf(("4_httpTLSStart: Auto-create credentials for \"%s\".", cn));
1094 + _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to create server credentials."), 1);