diff options
| author | Steven Fackler <[email protected]> | 2015-01-12 13:46:47 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-01-12 13:46:47 -0800 |
| commit | a73e9820246ce9517fe9d33751c01d2d51d9a235 (patch) | |
| tree | f7c7cc14417743ff8de9980c8ca059089f578eb1 | |
| parent | Add Show impls (diff) | |
| parent | Fix ffi: `BN_hex2bn` and `BN_dec2bn` shall take `*const c_char` as parameter (diff) | |
| download | rust-openssl-a73e9820246ce9517fe9d33751c01d2d51d9a235.tar.xz rust-openssl-a73e9820246ce9517fe9d33751c01d2d51d9a235.zip | |
Merge pull request #142 from akiss77/pr-u8-c_char
Fix ffi: `BN_hex2bn` and `BN_dec2bn` shall take `*const c_char` as parameter
| -rw-r--r-- | openssl-sys/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 7384340c..fb10b930 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -307,11 +307,11 @@ extern "C" { pub fn BN_bn2bin(a: *mut BIGNUM, to: *mut u8) -> c_int; /* Conversion from/to decimal string representation */ - pub fn BN_dec2bn(a: *const *mut BIGNUM, s: *const i8) -> c_int; + pub fn BN_dec2bn(a: *const *mut BIGNUM, s: *const c_char) -> c_int; pub fn BN_bn2dec(a: *mut BIGNUM) -> *const c_char; /* Conversion from/to hexidecimal string representation */ - pub fn BN_hex2bn(a: *const *mut BIGNUM, s: *const i8) -> c_int; + pub fn BN_hex2bn(a: *const *mut BIGNUM, s: *const c_char) -> c_int; pub fn BN_bn2hex(a: *mut BIGNUM) -> *const c_char; pub fn CRYPTO_num_locks() -> c_int; |