Skip to content

Commit

Permalink
const correct NCONF_new(), remove NCONF_default()
Browse files Browse the repository at this point in the history
  • Loading branch information
botovq committed Aug 30, 2024
1 parent 337325d commit 44c2be5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion openssl-sys/src/handwritten/conf.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
use super::super::*;

const_ptr_api! {
extern "C" {
pub fn NCONF_new(meth: #[const_ptr_if(libressl400)] CONF_METHOD) -> *mut CONF;
}
}

extern "C" {
pub fn NCONF_new(meth: *mut CONF_METHOD) -> *mut CONF;
#[cfg(not(libressl400))]
pub fn NCONF_default() -> *mut CONF_METHOD;
pub fn NCONF_free(conf: *mut CONF);
}

0 comments on commit 44c2be5

Please sign in to comment.