Skip to content

Commit 44c2be5

Browse files
committed
const correct NCONF_new(), remove NCONF_default()
1 parent 337325d commit 44c2be5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

openssl-sys/src/handwritten/conf.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
use super::super::*;
22

3+
const_ptr_api! {
4+
extern "C" {
5+
pub fn NCONF_new(meth: #[const_ptr_if(libressl400)] CONF_METHOD) -> *mut CONF;
6+
}
7+
}
8+
39
extern "C" {
4-
pub fn NCONF_new(meth: *mut CONF_METHOD) -> *mut CONF;
10+
#[cfg(not(libressl400))]
511
pub fn NCONF_default() -> *mut CONF_METHOD;
612
pub fn NCONF_free(conf: *mut CONF);
713
}

0 commit comments

Comments
 (0)