MCPcopy Create free account
hub / github.com/OpenPrinting/cups / httpCredentialsGetExpiration

Function httpCredentialsGetExpiration

cups/tls-openssl.c:591–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589 */
590
591time_t // O - Expiration date of credentials
592httpCredentialsGetExpiration(
593 cups_array_t *credentials) // I - Credentials
594{
595 time_t result = 0; // Result
596 X509 *cert; // Certificate
597
598
599 if ((cert = http_create_credential((http_credential_t *)cupsArrayFirst(credentials))) != NULL)
600 {
601 result = http_get_date(cert, 1);
602 X509_free(cert);
603 }
604
605 return (result);
606}
607
608
609/*

Callers 1

httpCredentialsGetTrustFunction · 0.70

Calls 3

http_create_credentialFunction · 0.85
cupsArrayFirstFunction · 0.85
http_get_dateFunction · 0.85

Tested by

no test coverage detected