Class: OpenSSL::PKCS7::RecipientInfo
- Inherits:
-
Object
- Object
- OpenSSL::PKCS7::RecipientInfo
- Defined in:
- ext/openssl/ossl_pkcs7.c
Instance Method Summary collapse
Constructor Details
#initialize(cert) ⇒ Object
962 963 964 965 966 967 968 969 970 971 972 973 974 975 |
# File 'ext/openssl/ossl_pkcs7.c', line 962
static VALUE
ossl_pkcs7ri_initialize(VALUE self, VALUE cert)
{
PKCS7_RECIP_INFO *p7ri;
X509 *x509;
x509 = GetX509CertPtr(cert); /* NO NEED TO DUP */
GetPKCS7ri(self, p7ri);
if (!PKCS7_RECIP_INFO_set(p7ri, x509)) {
ossl_raise(ePKCS7Error, NULL);
}
return self;
}
|
Instance Method Details
#enc_key ⇒ Object
997 998 999 1000 1001 1002 1003 1004 1005 |
# File 'ext/openssl/ossl_pkcs7.c', line 997
static VALUE
ossl_pkcs7ri_get_enc_key(VALUE self)
{
PKCS7_RECIP_INFO *p7ri;
GetPKCS7ri(self, p7ri);
return asn1str_to_str(p7ri->enc_key);
}
|
#issuer ⇒ Object
977 978 979 980 981 982 983 984 985 |
# File 'ext/openssl/ossl_pkcs7.c', line 977
static VALUE
ossl_pkcs7ri_get_issuer(VALUE self)
{
PKCS7_RECIP_INFO *p7ri;
GetPKCS7ri(self, p7ri);
return ossl_x509name_new(p7ri->issuer_and_serial->issuer);
}
|
#serial ⇒ Object
987 988 989 990 991 992 993 994 995 |
# File 'ext/openssl/ossl_pkcs7.c', line 987
static VALUE
ossl_pkcs7ri_get_serial(VALUE self)
{
PKCS7_RECIP_INFO *p7ri;
GetPKCS7ri(self, p7ri);
return asn1integer_to_num(p7ri->issuer_and_serial->serial);
}
|