2016-03-17 22:14:30 +08:00
|
|
|
[ssltest_default]
|
|
|
|
|
|
|
|
[ssltest_good]
|
2016-07-21 22:29:48 +08:00
|
|
|
client = ssltest_good_client_extra
|
|
|
|
server = ssltest_good_server_extra
|
|
|
|
resume-server2 = ssltest_good_resume_server2_extra
|
2016-08-09 22:47:26 +08:00
|
|
|
resume-client = ssltest_good_resume_client_extra
|
2016-07-21 22:29:48 +08:00
|
|
|
|
|
|
|
Method = DTLS
|
|
|
|
HandshakeMode = Resume
|
2016-08-12 02:51:57 +08:00
|
|
|
ApplicationData = 1024
|
2016-08-16 21:11:08 +08:00
|
|
|
MaxFragmentSize = 2048
|
2016-07-21 22:29:48 +08:00
|
|
|
|
2016-03-17 22:14:30 +08:00
|
|
|
ExpectedResult = ServerFail
|
2016-07-21 22:29:48 +08:00
|
|
|
ExpectedClientAlert = UnknownCA
|
|
|
|
ExpectedProtocol = TLSv1.1
|
2016-06-20 23:20:25 +08:00
|
|
|
ExpectedServerName = server2
|
Fix session ticket and SNI
When session tickets are used, it's possible that SNI might swtich the
SSL_CTX on an SSL. Normally, this is not a problem, because the
initial_ctx/session_ctx are used for all session ticket/id processes.
However, when the SNI callback occurs, it's possible that the callback
may update the options in the SSL from the SSL_CTX, and this could
cause SSL_OP_NO_TICKET to be set. If this occurs, then two bad things
can happen:
1. The session ticket TLSEXT may not be written when the ticket expected
flag is set. The state machine transistions to writing the ticket, and
the client responds with an error as its not expecting a ticket.
2. When creating the session ticket, if the ticket key cb returns 0
the crypto/hmac contexts are not initialized, and the code crashes when
trying to encrypt the session ticket.
To fix 1, if the ticket TLSEXT is not written out, clear the expected
ticket flag.
To fix 2, consider a return of 0 from the ticket key cb a recoverable
error, and write a 0 length ticket and continue. The client-side code
can explicitly handle this case.
Fix these two cases, and add unit test code to validate ticket behavior.
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1098)
2016-05-13 06:16:52 +08:00
|
|
|
SessionTicketExpected = Yes
|
2016-07-21 22:29:48 +08:00
|
|
|
ResumptionExpected = Yes
|
|
|
|
|
|
|
|
[ssltest_good_client_extra]
|
|
|
|
VerifyCallback = RejectAll
|
|
|
|
ServerName = server2
|
|
|
|
NPNProtocols = foo,bar
|
|
|
|
|
2016-08-09 22:47:26 +08:00
|
|
|
[ssltest_good_resume_client_extra]
|
|
|
|
CTValidation = Strict
|
|
|
|
|
2016-07-21 22:29:48 +08:00
|
|
|
[ssltest_good_server_extra]
|
|
|
|
ServerNameCallback = IgnoreMismatch
|
|
|
|
BrokenSessionTicket = Yes
|
|
|
|
|
|
|
|
[ssltest_good_resume_server2_extra]
|
|
|
|
ALPNProtocols = baz
|
2016-03-17 22:14:30 +08:00
|
|
|
|
|
|
|
[ssltest_unknown_option]
|
|
|
|
UnknownOption = Foo
|
|
|
|
|
2016-08-09 20:55:33 +08:00
|
|
|
[ssltest_wrong_section]
|
|
|
|
server = ssltest_wrong_section_server
|
|
|
|
|
|
|
|
[ssltest_wrong_section_server]
|
|
|
|
VerifyCallback = RejectAll
|
|
|
|
|
2016-03-17 22:14:30 +08:00
|
|
|
[ssltest_unknown_expected_result]
|
|
|
|
ExpectedResult = Foo
|
|
|
|
|
|
|
|
[ssltest_unknown_alert]
|
2016-08-09 20:55:33 +08:00
|
|
|
ExpectedServerAlert = Foo
|
2016-03-17 22:14:30 +08:00
|
|
|
|
|
|
|
[ssltest_unknown_protocol]
|
|
|
|
Protocol = Foo
|
2016-04-08 01:07:50 +08:00
|
|
|
|
|
|
|
[ssltest_unknown_verify_callback]
|
2016-08-09 20:55:33 +08:00
|
|
|
client = ssltest_unknown_verify_callback_client
|
|
|
|
|
|
|
|
[ssltest_unknown_verify_callback_client]
|
|
|
|
VerifyCallback = Foo
|
Fix session ticket and SNI
When session tickets are used, it's possible that SNI might swtich the
SSL_CTX on an SSL. Normally, this is not a problem, because the
initial_ctx/session_ctx are used for all session ticket/id processes.
However, when the SNI callback occurs, it's possible that the callback
may update the options in the SSL from the SSL_CTX, and this could
cause SSL_OP_NO_TICKET to be set. If this occurs, then two bad things
can happen:
1. The session ticket TLSEXT may not be written when the ticket expected
flag is set. The state machine transistions to writing the ticket, and
the client responds with an error as its not expecting a ticket.
2. When creating the session ticket, if the ticket key cb returns 0
the crypto/hmac contexts are not initialized, and the code crashes when
trying to encrypt the session ticket.
To fix 1, if the ticket TLSEXT is not written out, clear the expected
ticket flag.
To fix 2, consider a return of 0 from the ticket key cb a recoverable
error, and write a 0 length ticket and continue. The client-side code
can explicitly handle this case.
Fix these two cases, and add unit test code to validate ticket behavior.
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1098)
2016-05-13 06:16:52 +08:00
|
|
|
|
|
|
|
[ssltest_unknown_servername]
|
2016-08-09 20:55:33 +08:00
|
|
|
client = ssltest_unknown_servername_client
|
|
|
|
|
|
|
|
[ssltest_unknown_servername_client]
|
Fix session ticket and SNI
When session tickets are used, it's possible that SNI might swtich the
SSL_CTX on an SSL. Normally, this is not a problem, because the
initial_ctx/session_ctx are used for all session ticket/id processes.
However, when the SNI callback occurs, it's possible that the callback
may update the options in the SSL from the SSL_CTX, and this could
cause SSL_OP_NO_TICKET to be set. If this occurs, then two bad things
can happen:
1. The session ticket TLSEXT may not be written when the ticket expected
flag is set. The state machine transistions to writing the ticket, and
the client responds with an error as its not expecting a ticket.
2. When creating the session ticket, if the ticket key cb returns 0
the crypto/hmac contexts are not initialized, and the code crashes when
trying to encrypt the session ticket.
To fix 1, if the ticket TLSEXT is not written out, clear the expected
ticket flag.
To fix 2, consider a return of 0 from the ticket key cb a recoverable
error, and write a 0 length ticket and continue. The client-side code
can explicitly handle this case.
Fix these two cases, and add unit test code to validate ticket behavior.
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1098)
2016-05-13 06:16:52 +08:00
|
|
|
ServerName = Foo
|
|
|
|
|
2016-06-20 23:20:25 +08:00
|
|
|
[ssltest_unknown_servername_callback]
|
2016-08-09 20:55:33 +08:00
|
|
|
server = ssltest_unknown_servername_server
|
|
|
|
|
|
|
|
[ssltest_unknown_servername_server]
|
2016-06-20 23:20:25 +08:00
|
|
|
ServerNameCallback = Foo
|
|
|
|
|
Fix session ticket and SNI
When session tickets are used, it's possible that SNI might swtich the
SSL_CTX on an SSL. Normally, this is not a problem, because the
initial_ctx/session_ctx are used for all session ticket/id processes.
However, when the SNI callback occurs, it's possible that the callback
may update the options in the SSL from the SSL_CTX, and this could
cause SSL_OP_NO_TICKET to be set. If this occurs, then two bad things
can happen:
1. The session ticket TLSEXT may not be written when the ticket expected
flag is set. The state machine transistions to writing the ticket, and
the client responds with an error as its not expecting a ticket.
2. When creating the session ticket, if the ticket key cb returns 0
the crypto/hmac contexts are not initialized, and the code crashes when
trying to encrypt the session ticket.
To fix 1, if the ticket TLSEXT is not written out, clear the expected
ticket flag.
To fix 2, consider a return of 0 from the ticket key cb a recoverable
error, and write a 0 length ticket and continue. The client-side code
can explicitly handle this case.
Fix these two cases, and add unit test code to validate ticket behavior.
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1098)
2016-05-13 06:16:52 +08:00
|
|
|
[ssltest_unknown_session_ticket_expected]
|
|
|
|
SessionTicketExpected = Foo
|
2016-06-03 23:49:04 +08:00
|
|
|
|
2017-03-01 20:11:51 +08:00
|
|
|
[ssltest_unknown_compression_expected]
|
|
|
|
CompressionExpected = Foo
|
|
|
|
|
2016-06-03 23:49:04 +08:00
|
|
|
[ssltest_unknown_method]
|
|
|
|
Method = TLS2
|
2016-07-06 01:06:23 +08:00
|
|
|
|
|
|
|
[ssltest_unknown_handshake_mode]
|
|
|
|
HandshakeMode = Foo
|
|
|
|
|
|
|
|
[ssltest_unknown_resumption_expected]
|
|
|
|
ResumptionExpected = Foo
|
2016-08-09 22:47:26 +08:00
|
|
|
|
|
|
|
[ssltest_unknown_ct_validation]
|
|
|
|
client = ssltest_unknown_ct_validation_client
|
|
|
|
|
|
|
|
[ssltest_unknown_ct_validation_client]
|
|
|
|
CTCallback = Foo
|