@@ -236,6 +236,8 @@ extern "C" {
236236const_ptr_api ! {
237237 extern "C" {
238238 pub fn i2d_X509_CRL( x: #[ const_ptr_if( ossl300) ] X509_CRL , buf: * mut * mut u8 ) -> c_int;
239+ #[ cfg( any( ossl110, libressl270) ) ]
240+ pub fn X509_CRL_dup ( x: #[ const_ptr_if( ossl300) ] X509_CRL ) -> * mut X509_CRL ;
239241 }
240242}
241243
@@ -258,6 +260,9 @@ const_ptr_api! {
258260 palg: * mut #[ const_ptr_if( any( ossl110, libressl273) ) ] X509_ALGOR ,
259261 x: * const X509 ,
260262 ) ;
263+
264+ #[ cfg( any( ossl110, libressl270) ) ]
265+ pub fn X509_REQ_dup ( x: #[ const_ptr_if( ossl300) ] X509_REQ ) -> * mut X509_REQ ;
261266 }
262267}
263268extern "C" {
@@ -277,6 +282,10 @@ extern "C" {
277282const_ptr_api ! {
278283 extern "C" {
279284 pub fn i2d_X509( x: #[ const_ptr_if( ossl300) ] X509 , buf: * mut * mut u8 ) -> c_int;
285+ #[ cfg( any( ossl110, libressl270) ) ]
286+ pub fn X509_NAME_dup ( x: #[ const_ptr_if( ossl300) ] X509_NAME ) -> * mut X509_NAME ;
287+ #[ cfg( any( ossl110, libressl270) ) ]
288+ pub fn X509_dup ( x: #[ const_ptr_if( ossl300) ] X509 ) -> * mut X509 ;
280289 }
281290}
282291extern "C" {
@@ -614,3 +623,13 @@ extern "C" {
614623 pub fn X509_get_default_cert_dir_env ( ) -> * const c_char ;
615624 pub fn X509_get_default_cert_dir ( ) -> * const c_char ;
616625}
626+
627+ extern "C" {
628+ pub fn X509_cmp ( a : * const X509 , b : * const X509 ) -> c_int ;
629+ pub fn X509_NAME_cmp ( a : * const X509_NAME , b : * const X509_NAME ) -> c_int ;
630+ pub fn X509_issuer_and_serial_cmp ( a : * const X509 , b : * const X509 ) -> c_int ;
631+ pub fn X509_issuer_name_cmp ( a : * const X509 , b : * const X509 ) -> c_int ;
632+ pub fn X509_subject_name_cmp ( a : * const X509 , b : * const X509 ) -> c_int ;
633+ pub fn X509_CRL_cmp ( a : * const X509_CRL , b : * const X509_CRL ) -> c_int ;
634+ pub fn X509_CRL_match ( a : * const X509_CRL , b : * const X509_CRL ) -> c_int ;
635+ }
0 commit comments