aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorChris Cole <[email protected]>2014-12-10 22:08:32 -0500
committerChris Cole <[email protected]>2014-12-10 22:08:32 -0500
commit33f3c966ac0448a6f906f23d7cf51969c088bfa1 (patch)
tree64e5feadaaa1805ce9a9459ad0cc7aac7a297b29 /openssl-sys/src
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadrust-openssl-33f3c966ac0448a6f906f23d7cf51969c088bfa1.tar.xz
rust-openssl-33f3c966ac0448a6f906f23d7cf51969c088bfa1.zip
Added mod_word.
Diffstat (limited to 'openssl-sys/src')
-rw-r--r--openssl-sys/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index 2b0c9292..931920a9 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -255,6 +255,7 @@ extern "C" {
pub fn BN_mod_sub(r: *mut BIGNUM, a: *mut BIGNUM, b: *mut BIGNUM, m: *mut BIGNUM, ctx: *mut BN_CTX) -> c_int;
pub fn BN_mul(r: *mut BIGNUM, a: *mut BIGNUM, b: *mut BIGNUM, ctx: *mut BN_CTX) -> c_int;
pub fn BN_nnmod(rem: *mut BIGNUM, a: *mut BIGNUM, m: *mut BIGNUM, ctx: *mut BN_CTX) -> c_int;
+ pub fn BN_mod_word(r: *mut BIGNUM, w: c_ulong) -> c_ulong;
pub fn BN_sqr(r: *mut BIGNUM, a: *mut BIGNUM, ctx: *mut BN_CTX) -> c_int;
pub fn BN_sub(r: *mut BIGNUM, a: *mut BIGNUM, b: *mut BIGNUM) -> c_int;