Method: OpenSSL::PKCS7#certificates=
- Defined in:
- ossl_pkcs7.c
#certificates=(ary) ⇒ Object
697 698 699 700 701 702 703 704 705 706 707 708 |
# File 'ossl_pkcs7.c', line 697
static VALUE
ossl_pkcs7_set_certificates(VALUE self, VALUE ary)
{
STACK_OF(X509) *certs;
X509 *cert;
certs = pkcs7_get_certs(self);
while((cert = sk_X509_pop(certs))) X509_free(cert);
rb_block_call(ary, rb_intern("each"), 0, 0, ossl_pkcs7_set_certs_i, self);
return ary;
}
|