Method: OpenSSL::PKCS7#add_certificate
- Defined in:
- ossl_pkcs7.c
#add_certificate(cert) ⇒ Object
630 631 632 633 634 635 636 637 638 639 640 641 642 643 |
# File 'ossl_pkcs7.c', line 630
static VALUE
ossl_pkcs7_add_certificate(VALUE self, VALUE cert)
{
PKCS7 *pkcs7;
X509 *x509;
GetPKCS7(self, pkcs7);
x509 = GetX509CertPtr(cert); /* NO NEED TO DUP */
if (!PKCS7_add_certificate(pkcs7, x509)){
ossl_raise(ePKCS7Error, NULL);
}
return self;
}
|