Lines Matching refs:Cert
394 Adds the CA to the cert store when requesting Server or Client authentication.
419 X509 *Cert;
428 Cert = NULL;
442 Cert = d2i_X509 (NULL, (const unsigned char ** )&Data, (long) DataSize);
443 if (Cert == NULL) {
458 Cert = PEM_read_bio_X509 (BioCert, NULL, NULL, NULL);
459 if (Cert == NULL) {
475 Ret = X509_STORE_add_cert (X509Store, Cert);
493 if (Cert != NULL) {
494 X509_free (Cert);
526 X509 *Cert;
531 Cert = NULL;
543 Cert = d2i_X509 (NULL, (const unsigned char ** )&Data, (long) DataSize);
544 if (Cert == NULL) {
559 Cert = PEM_read_bio_X509 (BioCert, NULL, NULL, NULL);
560 if (Cert == NULL) {
566 if (SSL_use_certificate (TlsConn->Ssl, Cert) != 1) {
576 if (Cert != NULL) {
577 X509_free (Cert);
925 Gets the CA Certificate from the cert store.
976 X509 *Cert;
979 Cert = NULL;
986 Cert = SSL_get_certificate(TlsConn->Ssl);
987 if (Cert == NULL) {
994 if (*DataSize < (UINTN) i2d_X509 (Cert, NULL)) {
995 *DataSize = (UINTN) i2d_X509 (Cert, NULL);
999 *DataSize = (UINTN) i2d_X509 (Cert, (unsigned char **) &Data);