diff --git a/openssl/src/x509/mod.rs b/openssl/src/x509/mod.rs index 453fec5544cd683be6518c0db4107a287b778209..d242a818d57fe7b8a6691ad7cf57166829780421 100644 --- a/openssl/src/x509/mod.rs +++ b/openssl/src/x509/mod.rs @@ -1829,6 +1829,15 @@ impl X509Crl { X509Crl, ffi::d2i_X509_CRL } + + /// Creates a new `X509Crl` instance. + #[corresponds(X509_CRL_new)] + pub fn new() -> Result { + unsafe { + ffi::init(); + cvt_p(ffi::X509_CRL_new()).map(X509Crl) + } + } } impl X509CrlRef {