Lines Matching refs:alpn
471 alpn = 1
504 // negotiate a next protocol via NPN or ALPN.
842 if (test.expectedNextProtoType == alpn) != connState.NegotiatedProtocolFromALPN {
2253 "-advertise-alpn", "\x03foo",
2254 "-expect-alpn", "foo",
2276 "-advertise-alpn", "\x03foo",
2472 "-advertise-alpn", "\x03foo",
2473 "-expect-alpn", "foo",
2508 "-allow-false-start-without-alpn",
2525 "-advertise-alpn", "\x03foo",
2545 "-advertise-alpn", "\x03foo",
5345 // Client does False Start and negotiates ALPN.
5347 name: "FalseStart-ALPN",
5358 "-advertise-alpn", "\x03foo",
5359 "-expect-alpn", "foo",
6167 "-advertise-alpn", "\x03foo",
6425 // Test ALPN.
6434 "-advertise-alpn", "\x03foo\x03bar\x03baz",
6435 "-expect-alpn", "foo",
6438 expectedNextProtoType: alpn,
6451 "-advertise-alpn", "\x03foo\x03bar",
6467 "-advertise-alpn", "\x03foo\x03bar",
6468 "-allow-unknown-alpn-protos",
6469 "-expect-alpn", "baz",
6480 "-expect-advertised-alpn", "\x03foo\x03bar\x03baz",
6481 "-select-alpn", "foo",
6484 expectedNextProtoType: alpn,
6494 flags: []string{"-decline-alpn"},
6499 // callback tries to return an invalid empty ALPN protocol.
6508 "-expect-advertised-alpn", "\x03foo\x03bar\x03baz",
6509 "-select-empty-alpn",
6516 // Test ALPN in async mode as well to ensure that extensions callbacks are only
6528 "-expect-advertised-alpn", "\x03foo\x03bar\x03baz",
6529 "-select-alpn", "foo",
6533 expectedNextProtoType: alpn,
6545 // A server returning an empty ALPN protocol
6551 "-advertise-alpn", "\x03foo",
6561 // A ClientHello containing an empty ALPN protocol
6566 "-select-alpn", "foo",
6572 // Test NPN and the interaction with ALPN.
6574 // Test that the server prefers ALPN over NPN.
6583 "-expect-advertised-alpn", "\x03foo\x03bar\x03baz",
6584 "-select-alpn", "foo",
6588 expectedNextProtoType: alpn,
6602 "-expect-advertised-alpn", "\x03foo\x03bar\x03baz",
6603 "-select-alpn", "foo",
6607 expectedNextProtoType: alpn,
6611 // Test that negotiating both NPN and ALPN is forbidden.
6622 "-advertise-alpn", "\x03foo",
6639 "-advertise-alpn", "\x03foo",
8615 // We do not negotiate ALPN after the initial handshake. This is
8623 // Forcibly negotiate ALPN on both initial and
8631 "-advertise-alpn", "\x03foo\x03bar\x03baz",
8632 "-expect-alpn", "foo",
10344 "-advertise-alpn", "\x03foo",
10345 "-expect-alpn", "foo",
10500 "-advertise-alpn", "\x03foo\x03bar",
10516 SendALPN: "alpn",
10529 SendALPN: "alpn",
13170 // Test that the client reports the correct ALPN after a 0-RTT reject
13191 "-advertise-alpn", "\x03foo\x03bar",
13195 "-on-initial-expect-alpn", "foo",
13196 "-on-resume-expect-alpn", "foo",
13197 "-on-retry-expect-alpn", "bar",
13201 // Test that the client reports the correct ALPN after a 0-RTT reject if
13202 // ALPN was omitted from the first connection.
13217 "-advertise-alpn", "\x03foo\x03bar",
13221 "-on-initial-expect-alpn", "",
13222 "-on-resume-expect-alpn", "",
13223 "-on-retry-expect-alpn", "foo",
13228 // Test that the client reports the correct ALPN after a 0-RTT reject if
13229 // ALPN was omitted from the second connection.
13244 "-advertise-alpn", "\x03foo\x03bar",
13248 "-on-initial-expect-alpn", "foo",
13249 "-on-resume-expect-alpn", "foo",
13250 "-on-retry-expect-alpn", "",
13255 // Test that the client enforces ALPN match on 0-RTT accept.
13276 "-advertise-alpn", "\x03foo\x03bar",
13279 "-on-initial-expect-alpn", "foo",
13280 "-on-resume-expect-alpn", "foo",
13281 "-on-retry-expect-alpn", "bar",
13288 // with ALPN preferences.
13302 "-on-initial-advertise-alpn", "\x03foo",
13303 "-on-resume-advertise-alpn", "\x03bar",
13304 "-on-initial-expect-alpn", "foo",
13305 "-on-resume-expect-alpn", "bar",
13331 // Test that we reject early data where ALPN is omitted from the first
13351 "-on-initial-select-alpn", "",
13352 "-on-resume-select-alpn", "foo",
13356 // Test that we reject early data where ALPN is omitted from the second
13376 "-on-initial-select-alpn", "foo",
13377 "-on-resume-select-alpn", "",
13381 // Test that we reject early data with mismatched ALPN.
13400 "-on-initial-select-alpn", "foo",
13401 "-on-resume-select-alpn", "bar",
14417 "-advertise-alpn", "\x03foo",
14418 "-expect-alpn", "foo",
14843 // A JDK 11 ClientHello with ALPN protocols configured.