openssl/ssl: fix some of the comment text where I missed replacing NPN with ALPN
This commit is contained in:
parent
e28b73e1f6
commit
164f3f0873
|
|
@ -403,7 +403,7 @@ fn test_state() {
|
||||||
assert_eq!(stream.get_state_string_long(), "SSL negotiation finished successfully");
|
assert_eq!(stream.get_state_string_long(), "SSL negotiation finished successfully");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Tests that connecting with the client using NPN, but the server not does not
|
/// Tests that connecting with the client using ALPN, but the server not does not
|
||||||
/// break the existing connection behavior.
|
/// break the existing connection behavior.
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(feature = "alpn")]
|
#[cfg(feature = "alpn")]
|
||||||
|
|
@ -420,7 +420,7 @@ fn test_connect_with_unilateral_alpn() {
|
||||||
Ok(stream) => stream,
|
Ok(stream) => stream,
|
||||||
Err(err) => panic!("Expected success, got {:?}", err)
|
Err(err) => panic!("Expected success, got {:?}", err)
|
||||||
};
|
};
|
||||||
// Since the socket to which we connected is not configured to use NPN,
|
// Since the socket to which we connected is not configured to use ALPN,
|
||||||
// there should be no selected protocol...
|
// there should be no selected protocol...
|
||||||
assert!(stream.get_selected_alpn_protocol().is_none());
|
assert!(stream.get_selected_alpn_protocol().is_none());
|
||||||
}
|
}
|
||||||
|
|
@ -453,7 +453,7 @@ fn test_connect_with_unilateral_npn() {
|
||||||
#[cfg(feature = "alpn")]
|
#[cfg(feature = "alpn")]
|
||||||
fn test_connect_with_alpn_successful_multiple_matching() {
|
fn test_connect_with_alpn_successful_multiple_matching() {
|
||||||
// A different port than the other tests: an `openssl` process that has
|
// A different port than the other tests: an `openssl` process that has
|
||||||
// NPN enabled.
|
// ALPN enabled.
|
||||||
let stream = TcpStream::connect("127.0.0.1:15419").unwrap();
|
let stream = TcpStream::connect("127.0.0.1:15419").unwrap();
|
||||||
let mut ctx = SslContext::new(Sslv23).unwrap();
|
let mut ctx = SslContext::new(Sslv23).unwrap();
|
||||||
ctx.set_verify(SSL_VERIFY_PEER, None);
|
ctx.set_verify(SSL_VERIFY_PEER, None);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue