File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ log = "0.4.5"
2424schannel = " 0.1.13"
2525
2626[target .'cfg(not(any(target_os = "windows", target_os = "macos", target_os = "ios")))' .dependencies ]
27- openssl = " 0.10.11 "
27+ openssl = " 0.10.15 "
2828openssl-sys = " 0.9.30"
2929openssl-probe = " 0.1"
3030
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ impl TlsConnector {
255255 connector. set_certificate ( & ( identity. 0 ) . 0 . cert ) ?;
256256 connector. set_private_key ( & ( identity. 0 ) . 0 . pkey ) ?;
257257 if let Some ( ref chain) = ( identity. 0 ) . 0 . chain {
258- for cert in chain {
258+ for cert in chain. iter ( ) . rev ( ) {
259259 connector. add_extra_chain_cert ( cert. to_owned ( ) ) ?;
260260 }
261261 }
@@ -304,7 +304,7 @@ impl TlsAcceptor {
304304 acceptor. set_private_key ( & ( builder. identity . 0 ) . 0 . pkey ) ?;
305305 acceptor. set_certificate ( & ( builder. identity . 0 ) . 0 . cert ) ?;
306306 if let Some ( ref chain) = ( builder. identity . 0 ) . 0 . chain {
307- for cert in chain {
307+ for cert in chain. iter ( ) . rev ( ) {
308308 acceptor. add_extra_chain_cert ( cert. to_owned ( ) ) ?;
309309 }
310310 }
You can’t perform that action at this time.
0 commit comments