mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
d0c4415de5
Don't emit duplicate server/client sections when they are identical. Instead, just point to the same section. Reviewed-by: Rich Salz <rsalz@openssl.org>
363 lines
9.8 KiB
Plaintext
363 lines
9.8 KiB
Plaintext
# Generated with generate_ssl_tests.pl
|
|
|
|
num_tests = 12
|
|
|
|
test-0 = 0-npn-simple
|
|
test-1 = 1-npn-client-finds-match
|
|
test-2 = 2-npn-client-honours-server-pref
|
|
test-3 = 3-npn-client-first-pref-on-mismatch
|
|
test-4 = 4-npn-no-server-support
|
|
test-5 = 5-npn-no-client-support
|
|
test-6 = 6-npn-with-sni-no-context-switch
|
|
test-7 = 7-npn-with-sni-context-switch
|
|
test-8 = 8-npn-selected-sni-server-supports-npn
|
|
test-9 = 9-npn-selected-sni-server-does-not-support-npn
|
|
test-10 = 10-alpn-preferred-over-npn
|
|
test-11 = 11-sni-npn-preferred-over-alpn
|
|
# ===========================================================
|
|
|
|
[0-npn-simple]
|
|
ssl_conf = 0-npn-simple-ssl
|
|
|
|
[0-npn-simple-ssl]
|
|
server = 0-npn-simple-server
|
|
client = 0-npn-simple-client
|
|
|
|
[0-npn-simple-server]
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
CipherString = DEFAULT
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
[0-npn-simple-client]
|
|
CipherString = DEFAULT
|
|
VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
|
|
VerifyMode = Peer
|
|
|
|
[test-0]
|
|
ClientNPNProtocols = foo
|
|
ExpectedNPNProtocol = foo
|
|
ServerNPNProtocols = foo
|
|
|
|
|
|
# ===========================================================
|
|
|
|
[1-npn-client-finds-match]
|
|
ssl_conf = 1-npn-client-finds-match-ssl
|
|
|
|
[1-npn-client-finds-match-ssl]
|
|
server = 1-npn-client-finds-match-server
|
|
client = 1-npn-client-finds-match-client
|
|
|
|
[1-npn-client-finds-match-server]
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
CipherString = DEFAULT
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
[1-npn-client-finds-match-client]
|
|
CipherString = DEFAULT
|
|
VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
|
|
VerifyMode = Peer
|
|
|
|
[test-1]
|
|
ClientNPNProtocols = foo,bar
|
|
ExpectedNPNProtocol = bar
|
|
ServerNPNProtocols = baz,bar
|
|
|
|
|
|
# ===========================================================
|
|
|
|
[2-npn-client-honours-server-pref]
|
|
ssl_conf = 2-npn-client-honours-server-pref-ssl
|
|
|
|
[2-npn-client-honours-server-pref-ssl]
|
|
server = 2-npn-client-honours-server-pref-server
|
|
client = 2-npn-client-honours-server-pref-client
|
|
|
|
[2-npn-client-honours-server-pref-server]
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
CipherString = DEFAULT
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
[2-npn-client-honours-server-pref-client]
|
|
CipherString = DEFAULT
|
|
VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
|
|
VerifyMode = Peer
|
|
|
|
[test-2]
|
|
ClientNPNProtocols = foo,bar
|
|
ExpectedNPNProtocol = bar
|
|
ServerNPNProtocols = bar,foo
|
|
|
|
|
|
# ===========================================================
|
|
|
|
[3-npn-client-first-pref-on-mismatch]
|
|
ssl_conf = 3-npn-client-first-pref-on-mismatch-ssl
|
|
|
|
[3-npn-client-first-pref-on-mismatch-ssl]
|
|
server = 3-npn-client-first-pref-on-mismatch-server
|
|
client = 3-npn-client-first-pref-on-mismatch-client
|
|
|
|
[3-npn-client-first-pref-on-mismatch-server]
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
CipherString = DEFAULT
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
[3-npn-client-first-pref-on-mismatch-client]
|
|
CipherString = DEFAULT
|
|
VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
|
|
VerifyMode = Peer
|
|
|
|
[test-3]
|
|
ClientNPNProtocols = foo,bar
|
|
ExpectedNPNProtocol = foo
|
|
ServerNPNProtocols = baz
|
|
|
|
|
|
# ===========================================================
|
|
|
|
[4-npn-no-server-support]
|
|
ssl_conf = 4-npn-no-server-support-ssl
|
|
|
|
[4-npn-no-server-support-ssl]
|
|
server = 4-npn-no-server-support-server
|
|
client = 4-npn-no-server-support-client
|
|
|
|
[4-npn-no-server-support-server]
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
CipherString = DEFAULT
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
[4-npn-no-server-support-client]
|
|
CipherString = DEFAULT
|
|
VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
|
|
VerifyMode = Peer
|
|
|
|
[test-4]
|
|
ClientNPNProtocols = foo
|
|
|
|
|
|
# ===========================================================
|
|
|
|
[5-npn-no-client-support]
|
|
ssl_conf = 5-npn-no-client-support-ssl
|
|
|
|
[5-npn-no-client-support-ssl]
|
|
server = 5-npn-no-client-support-server
|
|
client = 5-npn-no-client-support-client
|
|
|
|
[5-npn-no-client-support-server]
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
CipherString = DEFAULT
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
[5-npn-no-client-support-client]
|
|
CipherString = DEFAULT
|
|
VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
|
|
VerifyMode = Peer
|
|
|
|
[test-5]
|
|
ServerNPNProtocols = foo
|
|
|
|
|
|
# ===========================================================
|
|
|
|
[6-npn-with-sni-no-context-switch]
|
|
ssl_conf = 6-npn-with-sni-no-context-switch-ssl
|
|
|
|
[6-npn-with-sni-no-context-switch-ssl]
|
|
server = 6-npn-with-sni-no-context-switch-server
|
|
client = 6-npn-with-sni-no-context-switch-client
|
|
server2 = 6-npn-with-sni-no-context-switch-server2
|
|
|
|
[6-npn-with-sni-no-context-switch-server]
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
CipherString = DEFAULT
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
[6-npn-with-sni-no-context-switch-server2]
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
CipherString = DEFAULT
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
[6-npn-with-sni-no-context-switch-client]
|
|
CipherString = DEFAULT
|
|
VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
|
|
VerifyMode = Peer
|
|
|
|
[test-6]
|
|
ClientNPNProtocols = foo,bar
|
|
ExpectedNPNProtocol = foo
|
|
ExpectedServerName = server1
|
|
Server2NPNProtocols = bar
|
|
ServerNPNProtocols = foo
|
|
ServerName = server1
|
|
ServerNameCallback = IgnoreMismatch
|
|
|
|
|
|
# ===========================================================
|
|
|
|
[7-npn-with-sni-context-switch]
|
|
ssl_conf = 7-npn-with-sni-context-switch-ssl
|
|
|
|
[7-npn-with-sni-context-switch-ssl]
|
|
server = 7-npn-with-sni-context-switch-server
|
|
client = 7-npn-with-sni-context-switch-client
|
|
server2 = 7-npn-with-sni-context-switch-server2
|
|
|
|
[7-npn-with-sni-context-switch-server]
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
CipherString = DEFAULT
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
[7-npn-with-sni-context-switch-server2]
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
CipherString = DEFAULT
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
[7-npn-with-sni-context-switch-client]
|
|
CipherString = DEFAULT
|
|
VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
|
|
VerifyMode = Peer
|
|
|
|
[test-7]
|
|
ClientNPNProtocols = foo,bar
|
|
ExpectedNPNProtocol = bar
|
|
ExpectedServerName = server2
|
|
Server2NPNProtocols = bar
|
|
ServerNPNProtocols = foo
|
|
ServerName = server2
|
|
ServerNameCallback = IgnoreMismatch
|
|
|
|
|
|
# ===========================================================
|
|
|
|
[8-npn-selected-sni-server-supports-npn]
|
|
ssl_conf = 8-npn-selected-sni-server-supports-npn-ssl
|
|
|
|
[8-npn-selected-sni-server-supports-npn-ssl]
|
|
server = 8-npn-selected-sni-server-supports-npn-server
|
|
client = 8-npn-selected-sni-server-supports-npn-client
|
|
server2 = 8-npn-selected-sni-server-supports-npn-server2
|
|
|
|
[8-npn-selected-sni-server-supports-npn-server]
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
CipherString = DEFAULT
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
[8-npn-selected-sni-server-supports-npn-server2]
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
CipherString = DEFAULT
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
[8-npn-selected-sni-server-supports-npn-client]
|
|
CipherString = DEFAULT
|
|
VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
|
|
VerifyMode = Peer
|
|
|
|
[test-8]
|
|
ClientNPNProtocols = foo,bar
|
|
ExpectedNPNProtocol = bar
|
|
ExpectedServerName = server2
|
|
Server2NPNProtocols = bar
|
|
ServerName = server2
|
|
ServerNameCallback = IgnoreMismatch
|
|
|
|
|
|
# ===========================================================
|
|
|
|
[9-npn-selected-sni-server-does-not-support-npn]
|
|
ssl_conf = 9-npn-selected-sni-server-does-not-support-npn-ssl
|
|
|
|
[9-npn-selected-sni-server-does-not-support-npn-ssl]
|
|
server = 9-npn-selected-sni-server-does-not-support-npn-server
|
|
client = 9-npn-selected-sni-server-does-not-support-npn-client
|
|
server2 = 9-npn-selected-sni-server-does-not-support-npn-server2
|
|
|
|
[9-npn-selected-sni-server-does-not-support-npn-server]
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
CipherString = DEFAULT
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
[9-npn-selected-sni-server-does-not-support-npn-server2]
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
CipherString = DEFAULT
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
[9-npn-selected-sni-server-does-not-support-npn-client]
|
|
CipherString = DEFAULT
|
|
VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
|
|
VerifyMode = Peer
|
|
|
|
[test-9]
|
|
ClientNPNProtocols = foo,bar
|
|
ExpectedServerName = server2
|
|
ServerNPNProtocols = foo
|
|
ServerName = server2
|
|
ServerNameCallback = IgnoreMismatch
|
|
|
|
|
|
# ===========================================================
|
|
|
|
[10-alpn-preferred-over-npn]
|
|
ssl_conf = 10-alpn-preferred-over-npn-ssl
|
|
|
|
[10-alpn-preferred-over-npn-ssl]
|
|
server = 10-alpn-preferred-over-npn-server
|
|
client = 10-alpn-preferred-over-npn-client
|
|
|
|
[10-alpn-preferred-over-npn-server]
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
CipherString = DEFAULT
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
[10-alpn-preferred-over-npn-client]
|
|
CipherString = DEFAULT
|
|
VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
|
|
VerifyMode = Peer
|
|
|
|
[test-10]
|
|
ClientALPNProtocols = foo
|
|
ClientNPNProtocols = bar
|
|
ExpectedALPNProtocol = foo
|
|
ServerALPNProtocols = foo
|
|
ServerNPNProtocols = bar
|
|
|
|
|
|
# ===========================================================
|
|
|
|
[11-sni-npn-preferred-over-alpn]
|
|
ssl_conf = 11-sni-npn-preferred-over-alpn-ssl
|
|
|
|
[11-sni-npn-preferred-over-alpn-ssl]
|
|
server = 11-sni-npn-preferred-over-alpn-server
|
|
client = 11-sni-npn-preferred-over-alpn-client
|
|
server2 = 11-sni-npn-preferred-over-alpn-server2
|
|
|
|
[11-sni-npn-preferred-over-alpn-server]
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
CipherString = DEFAULT
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
[11-sni-npn-preferred-over-alpn-server2]
|
|
Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
|
|
CipherString = DEFAULT
|
|
PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
|
|
|
|
[11-sni-npn-preferred-over-alpn-client]
|
|
CipherString = DEFAULT
|
|
VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
|
|
VerifyMode = Peer
|
|
|
|
[test-11]
|
|
ClientALPNProtocols = foo
|
|
ClientNPNProtocols = bar
|
|
ExpectedNPNProtocol = bar
|
|
ExpectedServerName = server2
|
|
Server2NPNProtocols = bar
|
|
ServerALPNProtocols = foo
|
|
ServerName = server2
|
|
ServerNameCallback = IgnoreMismatch
|
|
|
|
|