aboutsummaryrefslogtreecommitdiff
path: root/src/ssl
diff options
context:
space:
mode:
authorValerii Hiora <[email protected]>2014-10-07 14:33:53 +0300
committerValerii Hiora <[email protected]>2014-10-07 15:21:17 +0300
commit9dd8ce9270afa8c110f44b42d87b133620b1ec30 (patch)
tree61a63011ead6a70ab17e3a9b5705534593a4361f /src/ssl
parentMerge pull request #60 from vhbit/cert-gen-cleanup (diff)
downloadrust-openssl-9dd8ce9270afa8c110f44b42d87b133620b1ec30.tar.xz
rust-openssl-9dd8ce9270afa8c110f44b42d87b133620b1ec30.zip
Potential fix for #68
Diffstat (limited to 'src/ssl')
-rw-r--r--src/ssl/tests.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ssl/tests.rs b/src/ssl/tests.rs
index 0e6edbf7..50c24b94 100644
--- a/src/ssl/tests.rs
+++ b/src/ssl/tests.rs
@@ -221,3 +221,16 @@ fn test_cert_gen() {
// FIXME: check data in result to be correct, needs implementation
// of X509 getters
}
+
+#[test]
+fn test_bn_is_zero() {
+ use ffi;
+ use std::ptr;
+
+ unsafe {
+ let bn = ffi::BN_new();
+ assert!(bn != ptr::null_mut());
+ // Just make sure it is linked and resolved correctly
+ ffi::BN_is_zero(bn);
+ }
+}