aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody P Schafer <[email protected]>2015-07-01 15:36:46 -0400
committerCody P Schafer <[email protected]>2015-09-01 17:13:39 -0400
commit164f3f08738a15307c8a6e9874a21fe40a9584c5 (patch)
treee7c3409914d7a565d301d36702661bad3f161cbf
parentMerge pull request #259 from jedisct1/dh (diff)
downloadrust-openssl-164f3f08738a15307c8a6e9874a21fe40a9584c5.tar.xz
rust-openssl-164f3f08738a15307c8a6e9874a21fe40a9584c5.zip
openssl/ssl: fix some of the comment text where I missed replacing NPN with ALPN
-rw-r--r--openssl/src/ssl/tests.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/openssl/src/ssl/tests.rs b/openssl/src/ssl/tests.rs
index 9198a642..40755977 100644
--- a/openssl/src/ssl/tests.rs
+++ b/openssl/src/ssl/tests.rs
@@ -403,7 +403,7 @@ fn test_state() {
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.
#[test]
#[cfg(feature = "alpn")]
@@ -420,7 +420,7 @@ fn test_connect_with_unilateral_alpn() {
Ok(stream) => stream,
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...
assert!(stream.get_selected_alpn_protocol().is_none());
}
@@ -453,7 +453,7 @@ fn test_connect_with_unilateral_npn() {
#[cfg(feature = "alpn")]
fn test_connect_with_alpn_successful_multiple_matching() {
// 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 mut ctx = SslContext::new(Sslv23).unwrap();
ctx.set_verify(SSL_VERIFY_PEER, None);