/* * PUBLIC */ X509_CRL * GetX509CRLPtr(VALUE obj) { X509_CRL *crl; SafeGetX509CRL(obj, crl); return crl; }
X509_CRL * DupX509CRLPtr(VALUE obj) { X509_CRL *crl; SafeGetX509CRL(obj, crl); CRYPTO_add(&crl->references, 1, CRYPTO_LOCK_X509_CRL); return crl; }
X509_CRL * DupX509CRLPtr(VALUE obj) { X509_CRL *crl; SafeGetX509CRL(obj, crl); X509_CRL_up_ref(crl); return crl; }
static VALUE ossl_x509crl_copy(VALUE self, VALUE other) { X509_CRL *a, *b, *crl; rb_check_frozen(self); if (self == other) return self; GetX509CRL(self, a); SafeGetX509CRL(other, b); if (!(crl = X509_CRL_dup(b))) { ossl_raise(eX509CRLError, NULL); } X509_CRL_free(a); DATA_PTR(self) = crl; return self; }