aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/ssl/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/src/ssl/tests.rs')
-rw-r--r--openssl/src/ssl/tests.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/openssl/src/ssl/tests.rs b/openssl/src/ssl/tests.rs
index 4bb3c2ca..c5e9c5e9 100644
--- a/openssl/src/ssl/tests.rs
+++ b/openssl/src/ssl/tests.rs
@@ -174,6 +174,20 @@ fn test_verify_callback_data() {
}
}
+#[test]
+fn test_get_ctx_options() {
+ let mut ctx = SslContext::new(Sslv23).unwrap();
+ ctx.get_options();
+}
+
+#[test]
+fn test_set_ctx_options() {
+ let mut ctx = SslContext::new(Sslv23).unwrap();
+ let start_opts = ctx.get_options();
+ let ssl_op_no_sslv3 = 0x02000000;
+ let res = ctx.set_options(ssl_op_no_sslv3);
+ assert_eq!(res, start_opts | ssl_op_no_sslv3);
+}
#[test]
fn test_write() {