@@ -18,7 +18,7 @@ stack!(stack_st_X509_EXTENSION);
1818stack ! ( stack_st_X509_ATTRIBUTE) ;
1919
2020cfg_if ! {
21- if #[ cfg( ossl110) ] {
21+ if #[ cfg( any ( ossl110, libressl350 ) ) ] {
2222 pub enum X509_REQ_INFO { }
2323 } else {
2424 #[ repr( C ) ]
@@ -33,7 +33,7 @@ cfg_if! {
3333}
3434
3535cfg_if ! {
36- if #[ cfg( ossl110) ] {
36+ if #[ cfg( any ( ossl110, libressl350 ) ) ] {
3737 pub enum X509_CRL { }
3838 } else {
3939 #[ repr( C ) ]
@@ -60,7 +60,7 @@ cfg_if! {
6060stack ! ( stack_st_X509_CRL) ;
6161
6262cfg_if ! {
63- if #[ cfg( ossl110) ] {
63+ if #[ cfg( any ( ossl110, libressl350 ) ) ] {
6464 pub enum X509_CRL_INFO { }
6565 } else {
6666 #[ repr( C ) ]
@@ -78,7 +78,7 @@ cfg_if! {
7878}
7979
8080cfg_if ! {
81- if #[ cfg( ossl110) ] {
81+ if #[ cfg( any ( ossl110, libressl350 ) ) ] {
8282 pub enum X509_REVOKED { }
8383 } else {
8484 #[ repr( C ) ]
@@ -96,7 +96,7 @@ cfg_if! {
9696stack ! ( stack_st_X509_REVOKED) ;
9797
9898cfg_if ! {
99- if #[ cfg( ossl110) ] {
99+ if #[ cfg( any ( ossl110, libressl350 ) ) ] {
100100 pub enum X509_REQ { }
101101 } else {
102102 #[ repr( C ) ]
@@ -110,7 +110,7 @@ cfg_if! {
110110}
111111
112112cfg_if ! {
113- if #[ cfg( ossl110) ] {
113+ if #[ cfg( any ( ossl110, libressl350 ) ) ] {
114114 pub enum X509_CINF { }
115115 } else {
116116 #[ repr( C ) ]
@@ -185,12 +185,12 @@ extern "C" {
185185
186186const_ptr_api ! {
187187 extern "C" {
188- #[ cfg( ossl102) ]
188+ #[ cfg( any ( ossl102, libressl350 ) ) ]
189189 pub fn X509_ALGOR_get0 (
190- paobj: * mut #[ const_ptr_if( ossl110) ] ASN1_OBJECT ,
190+ paobj: * mut #[ const_ptr_if( any ( ossl110, libressl350 ) ) ] ASN1_OBJECT ,
191191 pptype: * mut c_int,
192- ppval: * mut #[ const_ptr_if( ossl110) ] c_void,
193- alg: #[ const_ptr_if( ossl110) ] X509_ALGOR ,
192+ ppval: * mut #[ const_ptr_if( any ( ossl110, libressl350 ) ) ] c_void,
193+ alg: #[ const_ptr_if( any ( ossl110, libressl350 ) ) ] X509_ALGOR ,
194194 ) ;
195195 }
196196}
@@ -317,7 +317,7 @@ const_ptr_api! {
317317 }
318318}
319319cfg_if ! {
320- if #[ cfg( ossl110) ] {
320+ if #[ cfg( any ( ossl110, libressl350 ) ) ] {
321321 extern "C" {
322322 pub fn X509_set1_notBefore ( x: * mut :: X509 , tm: * const :: ASN1_TIME ) -> c_int;
323323 pub fn X509_set1_notAfter ( x: * mut :: X509 , tm: * const :: ASN1_TIME ) -> c_int;
@@ -330,10 +330,10 @@ cfg_if! {
330330 }
331331}
332332extern "C" {
333- #[ cfg( ossl110) ]
333+ #[ cfg( any ( ossl110, libressl350 ) ) ]
334334 pub fn X509_REQ_get_version ( req : * const X509_REQ ) -> c_long ;
335335 pub fn X509_REQ_set_version ( req : * mut X509_REQ , version : c_long ) -> c_int ;
336- #[ cfg( ossl110) ]
336+ #[ cfg( any ( ossl110, libressl350 ) ) ]
337337 pub fn X509_REQ_get_subject_name ( req : * const X509_REQ ) -> * mut X509_NAME ;
338338}
339339const_ptr_api ! {
@@ -606,7 +606,7 @@ extern "C" {
606606}
607607
608608cfg_if ! {
609- if #[ cfg( ossl110) ] {
609+ if #[ cfg( any ( ossl110, libressl350 ) ) ] {
610610 extern "C" {
611611 pub fn X509_OBJECT_free ( a: * mut X509_OBJECT ) ;
612612 }
0 commit comments