File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1672,12 +1672,12 @@ impl X509Revoked {
1672
1672
ffi:: d2i_X509_REVOKED
1673
1673
}
1674
1674
1675
- pub fn new ( to_revoke : & X509 ) -> Result < Self , ErrorStack > {
1675
+ pub fn new ( to_revoke : & X509Ref ) -> Result < Self , ErrorStack > {
1676
1676
unsafe { Ok ( Self ( Self :: new_raw ( to_revoke) ?) ) }
1677
1677
}
1678
1678
1679
1679
/// the caller has to ensure the pointer is freed
1680
- unsafe fn new_raw ( to_revoke : & X509 ) -> Result < * mut ffi:: X509_REVOKED , ErrorStack > {
1680
+ unsafe fn new_raw ( to_revoke : & X509Ref ) -> Result < * mut ffi:: X509_REVOKED , ErrorStack > {
1681
1681
let result = cvt_p ( ffi:: X509_REVOKED_new ( ) ) ?;
1682
1682
1683
1683
if ffi:: X509_REVOKED_set_serialNumber ( result, to_revoke. serial_number ( ) . as_ptr ( ) ) <= 0 {
@@ -1875,7 +1875,7 @@ impl X509Crl {
1875
1875
1876
1876
// if not cfg(ossl110) issuer_cert is unused
1877
1877
#[ allow( unused_variables) ]
1878
- pub fn new ( issuer_cert : & X509 , conf : Option < & ConfRef > ) -> Result < Self , ErrorStack > {
1878
+ pub fn new ( issuer_cert : & X509Ref , conf : Option < & ConfRef > ) -> Result < Self , ErrorStack > {
1879
1879
unsafe {
1880
1880
let crl = Self ( cvt_p ( ffi:: X509_CRL_new ( ) ) ?) ;
1881
1881
You can’t perform that action at this time.
0 commit comments