Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
OpenSSL::PKCS7#add_signer
(::OpenSSL::PKCS7::SignerInfo signer) -> self
add_signer(p1)
ext/openssl/ossl_pkcs7.c
View on GitHub ↗
static VALUE
ossl_pkcs7_add_signer(VALUE self, VALUE signer)
{
PKCS7 *pkcs7;
PKCS7_SIGNER_INFO *si, *si_new;
GetPKCS7(self, pkcs7);
GetPKCS7si(signer, si);
si_new = ossl_PKCS7_SIGNER_INFO_dup(si);
if (!si_new)
ossl_raise(ePKCS7Error, "PKCS7_SIGNER_INFO_dup");
if (PKCS7_add_signer(pkcs7, si_new) != 1) {
PKCS7_SIGNER_INFO_free(si_new);
ossl_raise(ePKCS7Error, "PKCS7_add_signer");
}
return self;
}
No documentation available
See also
#add_recipient
#certificates
#add_data
#certificates=
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0