Commit a73e9820 authored by Steven Fackler's avatar Steven Fackler
Browse files

Merge pull request #142 from akiss77/pr-u8-c_char

Fix ffi: `BN_hex2bn` and `BN_dec2bn` shall take `*const c_char` as parameter
parents 2f5d1e57 c4981605
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;