Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
OpenSSL::PKCS7::RecipientInfo.new
(::OpenSSL::X509::Certificate certificate) -> ::OpenSSL::PKCS7::RecipientInfo
new(p1)
ext/openssl/ossl_pkcs7.c
View on GitHub ↗
static VALUE
ossl_pkcs7ri_initialize(VALUE self, VALUE cert)
{
PKCS7_RECIP_INFO *p7ri;
X509 *x509;
ossl_want_uninitialized(self, &ossl_pkcs7_recip_info_type);
x509 = GetX509CertPtr(cert); /* NO NEED TO DUP */
p7ri = PKCS7_RECIP_INFO_new();
if (!p7ri)
ossl_raise(ePKCS7Error, "PKCS7_RECIP_INFO_new");
RTYPEDDATA_DATA(self) = p7ri;
if (PKCS7_RECIP_INFO_set(p7ri, x509) <= 0) {
ossl_raise(ePKCS7Error, NULL);
}
return self;
}
No documentation available