This commit is contained in:
Steven Fackler 2017-01-08 11:04:47 -08:00
parent 1942977408
commit 1fbe8f8d71
1 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ impl SslAcceptorBuilder {
where I: IntoIterator, where I: IntoIterator,
I::Item: AsRef<X509Ref> I::Item: AsRef<X509Ref>
{ {
let builder = try!(SslAcceptorBuilder::mozilla_intermedia_raw(method)); let builder = try!(SslAcceptorBuilder::mozilla_intermediate_raw(method));
builder.finish_setup(private_key, certificate, chain) builder.finish_setup(private_key, certificate, chain)
} }
@ -159,7 +159,7 @@ impl SslAcceptorBuilder {
} }
/// Like `mozilla_intermediate`, but does not load the certificate chain and private key. /// Like `mozilla_intermediate`, but does not load the certificate chain and private key.
pub fn mozilla_intermedia_raw(method: SslMethod) -> Result<SslAcceptorBuilder, ErrorStack> { pub fn mozilla_intermediate_raw(method: SslMethod) -> Result<SslAcceptorBuilder, ErrorStack> {
let mut ctx = try!(ctx(method)); let mut ctx = try!(ctx(method));
let dh = try!(Dh::from_pem(DHPARAM_PEM.as_bytes())); let dh = try!(Dh::from_pem(DHPARAM_PEM.as_bytes()));
try!(ctx.set_tmp_dh(&dh)); try!(ctx.set_tmp_dh(&dh));