Home
last modified time | relevance | path

Searched refs:tcreds (Results 1 – 3 of 3) sorted by relevance

/external/libcups/cups/
Dtestcreds.c33 *tcreds; /* Credentials from trust store */ in main() local
103 if (!httpLoadCredentials(NULL, &tcreds, hostname)) in main()
105 httpCredentialsString(tcreds, tinfo, sizeof(tinfo)); in main()
107 printf(" Certificate Count: %d\n", cupsArrayCount(tcreds)); in main()
108 printf(" Expiration: %s\n", httpGetDateString(httpCredentialsGetExpiration(tcreds))); in main()
109 printf(" IsValidName: %d\n", httpCredentialsAreValidForName(tcreds, hostname)); in main()
112 httpFreeCredentials(tcreds); in main()
Dtls-gnutls.c454 cups_array_t *tcreds = NULL; /* Trusted credentials */ in httpCredentialsGetTrust() local
481 httpLoadCredentials(NULL, &tcreds, common_name); in httpCredentialsGetTrust()
483 if (tcreds) in httpCredentialsGetTrust()
489 httpCredentialsString(tcreds, tcreds_str, sizeof(tcreds_str)); in httpCredentialsGetTrust()
508 else if (httpCredentialsGetExpiration(credentials) <= httpCredentialsGetExpiration(tcreds)) in httpCredentialsGetTrust()
528 else if (httpCredentialsGetExpiration(tcreds) < time(NULL)) in httpCredentialsGetTrust()
540 httpFreeCredentials(tcreds); in httpCredentialsGetTrust()
553 if (!httpLoadCredentials(NULL, &tcreds, "site")) in httpCredentialsGetTrust()
555 if (cupsArrayCount(credentials) != (cupsArrayCount(tcreds) + 1)) in httpCredentialsGetTrust()
571 …for (a = (http_credential_t *)cupsArrayFirst(tcreds), b = (http_credential_t *)cupsArrayIndex(cred… in httpCredentialsGetTrust()
[all …]
Dtls-darwin.c598 cups_array_t *tcreds = NULL; /* Trusted credentials */ in httpCredentialsGetTrust() local
622 httpLoadCredentials(NULL, &tcreds, common_name); in httpCredentialsGetTrust()
624 if (tcreds) in httpCredentialsGetTrust()
630 httpCredentialsString(tcreds, tcreds_str, sizeof(tcreds_str)); in httpCredentialsGetTrust()
649 else if (httpCredentialsGetExpiration(credentials) <= httpCredentialsGetExpiration(tcreds)) in httpCredentialsGetTrust()
669 else if (httpCredentialsGetExpiration(tcreds) < time(NULL)) in httpCredentialsGetTrust()
681 httpFreeCredentials(tcreds); in httpCredentialsGetTrust()
694 if (!httpLoadCredentials(NULL, &tcreds, "site")) in httpCredentialsGetTrust()
696 if (cupsArrayCount(credentials) != (cupsArrayCount(tcreds) + 1)) in httpCredentialsGetTrust()
712 …for (a = (http_credential_t *)cupsArrayFirst(tcreds), b = (http_credential_t *)cupsArrayIndex(cred… in httpCredentialsGetTrust()
[all …]