| 589 | */ |
| 590 | |
| 591 | time_t // O - Expiration date of credentials |
| 592 | httpCredentialsGetExpiration( |
| 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 | /* |
no test coverage detected