Class: OpenSSL::PKCS7::RecipientInfo
- Inherits:
-
Object
- Object
- OpenSSL::PKCS7::RecipientInfo
- Defined in:
- ext/rubysl/openssl/ossl_pkcs7.c
Instance Method Summary collapse
Constructor Details
#initialize(cert) ⇒ Object
1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 |
# File 'ext/rubysl/openssl/ossl_pkcs7.c', line 1006
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
1041 1042 1043 1044 1045 1046 1047 1048 1049 |
# File 'ext/rubysl/openssl/ossl_pkcs7.c', line 1041
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
1021 1022 1023 1024 1025 1026 1027 1028 1029 |
# File 'ext/rubysl/openssl/ossl_pkcs7.c', line 1021
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
1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'ext/rubysl/openssl/ossl_pkcs7.c', line 1031
static VALUE
ossl_pkcs7ri_get_serial(VALUE self)
{
PKCS7_RECIP_INFO *p7ri;
GetPKCS7ri(self, p7ri);
return asn1integer_to_num(p7ri->issuer_and_serial->serial);
}
|