},
},
test => {
- "ExpectedALPNProtocol" => "foo",
+ "ExpectedALPNProtocol" => "foo",
},
},
{
},
},
test => {
- "ExpectedALPNProtocol" => "bar",
+ "ExpectedALPNProtocol" => "bar",
},
},
{
},
},
test => {
- "ExpectedALPNProtocol" => "bar",
+ "ExpectedALPNProtocol" => "bar",
},
},
{
},
},
test => {
- "ExpectedResult" => "ServerFail",
- "ExpectedServerAlert" => "NoApplicationProtocol",
+ "ExpectedResult" => "ServerFail",
+ "ExpectedServerAlert" => "NoApplicationProtocol",
},
},
{
},
},
test => {
- "ExpectedALPNProtocol" => undef,
+ "ExpectedALPNProtocol" => undef,
},
},
{
},
client => { },
test => {
- "ExpectedALPNProtocol" => undef,
+ "ExpectedALPNProtocol" => undef,
},
},
{
},
},
test => {
- "ExpectedServerName" => "server1",
- "ExpectedALPNProtocol" => "foo",
+ "ExpectedServerName" => "server1",
+ "ExpectedALPNProtocol" => "foo",
},
},
{
},
},
test => {
- "ExpectedServerName" => "server2",
- "ExpectedALPNProtocol" => "bar",
+ "ExpectedServerName" => "server2",
+ "ExpectedALPNProtocol" => "bar",
},
},
{
},
},
test => {
- "ExpectedServerName" => "server2",
- "ExpectedALPNProtocol" => "bar",
+ "ExpectedServerName" => "server2",
+ "ExpectedALPNProtocol" => "bar",
},
},
{
},
},
test => {
- "ExpectedServerName" => "server2",
- "ExpectedALPNProtocol" => undef,
+ "ExpectedServerName" => "server2",
+ "ExpectedALPNProtocol" => undef,
+ },
+ },
+ {
+ name => "alpn-simple-resumption",
+ server => {
+ extra => {
+ "ALPNProtocols" => "foo",
+ },
+ },
+ client => {
+ extra => {
+ "ALPNProtocols" => "foo",
+ },
+ },
+ test => {
+ "HandshakeMode" => "Resume",
+ "ResumptionExpected" => "Yes",
+ "ExpectedALPNProtocol" => "foo",
+ },
+ },
+ {
+ name => "alpn-server-switch-resumption",
+ server => {
+ extra => {
+ "ALPNProtocols" => "bar,foo",
+ },
+ },
+ resume_server => {
+ extra => {
+ "ALPNProtocols" => "baz,foo",
+ },
+ },
+ client => {
+ extra => {
+ "ALPNProtocols" => "foo,bar,baz",
+ },
+ },
+ test => {
+ "HandshakeMode" => "Resume",
+ "ResumptionExpected" => "Yes",
+ "ExpectedALPNProtocol" => "baz",
+ },
+ },
+ {
+ name => "alpn-client-switch-resumption",
+ server => {
+ extra => {
+ "ALPNProtocols" => "foo,bar,baz",
+ },
+ },
+ client => {
+ extra => {
+ "ALPNProtocols" => "foo,baz",
+ },
+ },
+ resume_client => {
+ extra => {
+ "ALPNProtocols" => "bar,baz",
+ },
+ },
+ test => {
+ "HandshakeMode" => "Resume",
+ "ResumptionExpected" => "Yes",
+ "ExpectedALPNProtocol" => "bar",
+ },
+ },
+ {
+ name => "alpn-alert-on-mismatch-resumption",
+ server => {
+ extra => {
+ "ALPNProtocols" => "bar",
+ },
+ },
+ resume_server => {
+ extra => {
+ "ALPNProtocols" => "baz",
+ },
+ },
+ client => {
+ extra => {
+ "ALPNProtocols" => "foo,bar",
+ },
+ },
+ test => {
+ "HandshakeMode" => "Resume",
+ "ExpectedResult" => "ServerFail",
+ "ExpectedServerAlert" => "NoApplicationProtocol",
+ },
+ },
+ {
+ name => "alpn-no-server-support-resumption",
+ server => {
+ extra => {
+ "ALPNProtocols" => "foo",
+ },
+ },
+ resume_server => { },
+ client => {
+ extra => {
+ "ALPNProtocols" => "foo",
+ },
+ },
+ test => {
+ "HandshakeMode" => "Resume",
+ "ResumptionExpected" => "Yes",
+ "ExpectedALPNProtocol" => undef,
+ },
+ },
+ {
+ name => "alpn-no-client-support-resumption",
+ server => {
+ extra => {
+ "ALPNProtocols" => "foo",
+ },
+ },
+ client => {
+ extra => {
+ "ALPNProtocols" => "foo",
+ },
+ },
+ resume_client => {
+ },
+ test => {
+ "HandshakeMode" => "Resume",
+ "ResumptionExpected" => "Yes",
+ "ExpectedALPNProtocol" => undef,
},
},
);