parent
a7066c2a8c
commit
79b5ee7f55
|
|
@ -132,11 +132,9 @@ mod tests {
|
||||||
use ssl::{SslContext, SslMethod};
|
use ssl::{SslContext, SslMethod};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(any(ossl102, ossl110))]
|
#[cfg(ossl102)]
|
||||||
fn test_dh_rfc5114() {
|
fn test_dh_rfc5114() {
|
||||||
let mut ctx = SslContext::builder(SslMethod::tls()).unwrap();
|
let mut ctx = SslContext::builder(SslMethod::tls()).unwrap();
|
||||||
let dh1 = Dh::get_1024_160().unwrap();
|
|
||||||
ctx.set_tmp_dh(&dh1).unwrap();
|
|
||||||
let dh2 = Dh::get_2048_224().unwrap();
|
let dh2 = Dh::get_2048_224().unwrap();
|
||||||
ctx.set_tmp_dh(&dh2).unwrap();
|
ctx.set_tmp_dh(&dh2).unwrap();
|
||||||
let dh3 = Dh::get_2048_256().unwrap();
|
let dh3 = Dh::get_2048_256().unwrap();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue