Method: OpenSSL::PKCS7#type=

Defined in:
ossl_pkcs7.c

#type=(type) ⇒ Object


456
457
458
459
460
461
462
463
464
465
466
# File 'ossl_pkcs7.c', line 456

static VALUE
ossl_pkcs7_set_type(VALUE self, VALUE type)
{
    PKCS7 *p7;

    GetPKCS7(self, p7);
    if(!PKCS7_set_type(p7, ossl_pkcs7_sym2typeid(type)))
	ossl_raise(ePKCS7Error, NULL);

    return type;
}