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

Function http_create_credential

cups/tls-openssl.c:1435–1454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1433 */
1434
1435static X509 * // O - Certificate
1436http_create_credential(
1437 http_credential_t *credential) // I - Credential
1438{
1439 X509 *cert = NULL; // Certificate
1440 BIO *bio; // Basic I/O for string
1441
1442
1443 if (!credential)
1444 return (NULL);
1445
1446 if ((bio = BIO_new_mem_buf(credential->data, credential->datalen)) == NULL)
1447 return (NULL);
1448
1449 PEM_read_bio_X509(bio, &cert, NULL, (void *)"");
1450
1451 BIO_free(bio);
1452
1453 return (cert);
1454}
1455
1456
1457/*

Callers 4

httpCredentialsGetTrustFunction · 0.85
httpCredentialsStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected