2016-03-17 14:14:30 +00:00
|
|
|
[ssltest_default]
|
|
|
|
|
|
|
|
[ssltest_good]
|
2016-07-21 14:29:48 +00:00
|
|
|
client = ssltest_good_client_extra
|
|
|
|
server = ssltest_good_server_extra
|
|
|
|
resume-server2 = ssltest_good_resume_server2_extra
|
2016-08-09 14:47:26 +00:00
|
|
|
resume-client = ssltest_good_resume_client_extra
|
2016-07-21 14:29:48 +00:00
|
|
|
|
|
|
|
Method = DTLS
|
|
|
|
HandshakeMode = Resume
|
2016-08-11 18:51:57 +00:00
|
|
|
ApplicationData = 1024
|
2016-08-16 13:11:08 +00:00
|
|
|
MaxFragmentSize = 2048
|
2016-07-21 14:29:48 +00:00
|
|
|
|
2016-03-17 14:14:30 +00:00
|
|
|
ExpectedResult = ServerFail
|
2016-07-21 14:29:48 +00:00
|
|
|
ExpectedClientAlert = UnknownCA
|
|
|
|
ExpectedProtocol = TLSv1.1
|
2016-06-20 15:20:25 +00: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-12 22:16:52 +00:00
|
|
|
SessionTicketExpected = Yes
|
2016-07-21 14:29:48 +00:00
|
|
|
ResumptionExpected = Yes
|
|
|
|
|
|
|
|
[ssltest_good_client_extra]
|
|
|
|
VerifyCallback = RejectAll
|
|
|
|
ServerName = server2
|
|
|
|
NPNProtocols = foo,bar
|
|
|
|
|
2016-08-09 14:47:26 +00:00
|
|
|
[ssltest_good_resume_client_extra]
|
|
|
|
CTValidation = Strict
|
|
|
|
|
2016-07-21 14:29:48 +00:00
|
|
|
[ssltest_good_server_extra]
|
|
|
|
ServerNameCallback = IgnoreMismatch
|
|
|
|
BrokenSessionTicket = Yes
|
|
|
|
|
|
|
|
[ssltest_good_resume_server2_extra]
|
|
|
|
ALPNProtocols = baz
|
2016-03-17 14:14:30 +00:00
|
|
|
|
|
|
|
[ssltest_unknown_option]
|
|
|
|
UnknownOption = Foo
|
|
|
|
|
2016-08-09 12:55:33 +00:00
|
|
|
[ssltest_wrong_section]
|
|
|
|
server = ssltest_wrong_section_server
|
|
|
|
|
|
|
|
[ssltest_wrong_section_server]
|
|
|
|
VerifyCallback = RejectAll
|
|
|
|
|
2016-03-17 14:14:30 +00:00
|
|
|
[ssltest_unknown_expected_result]
|
|
|
|
ExpectedResult = Foo
|
|
|
|
|
|
|
|
[ssltest_unknown_alert]
|
2016-08-09 12:55:33 +00:00
|
|
|
ExpectedServerAlert = Foo
|
2016-03-17 14:14:30 +00:00
|
|
|
|
|
|
|
[ssltest_unknown_protocol]
|
|
|
|
Protocol = Foo
|
2016-04-07 17:07:50 +00:00
|
|
|
|
|
|
|
[ssltest_unknown_verify_callback]
|
2016-08-09 12:55:33 +00: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-12 22:16:52 +00:00
|
|
|
|
|
|
|
[ssltest_unknown_servername]
|
2016-08-09 12:55:33 +00: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-12 22:16:52 +00:00
|
|
|
ServerName = Foo
|
|
|
|
|
2016-06-20 15:20:25 +00:00
|
|
|
[ssltest_unknown_servername_callback]
|
2016-08-09 12:55:33 +00:00
|
|
|
server = ssltest_unknown_servername_server
|
|
|
|
|
|
|
|
[ssltest_unknown_servername_server]
|
2016-06-20 15:20:25 +00: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-12 22:16:52 +00:00
|
|
|
[ssltest_unknown_session_ticket_expected]
|
|
|
|
SessionTicketExpected = Foo
|
2016-06-03 15:49:04 +00:00
|
|
|
|
2017-03-01 12:11:51 +00:00
|
|
|
[ssltest_unknown_compression_expected]
|
|
|
|
CompressionExpected = Foo
|
|
|
|
|
Session resume broken switching contexts
When an SSL's context is swtiched from a ticket-enabled context to
a ticket-disabled context in the servername callback, no session-id
is generated, so the session can't be resumed.
If a servername callback changes the SSL_OP_NO_TICKET option, check
to see if it's changed to disable, and whether a session ticket is
expected (i.e. the client indicated ticket support and the SSL had
tickets enabled at the time), and whether we already have a previous
session (i.e. s->hit is set).
In this case, clear the ticket-expected flag, remove any ticket data
and generate a session-id in the session.
If the SSL hit (resumed) and switched to a ticket-disabled context,
assume that the resumption was via session-id, and don't bother to
update the session.
Before this fix, the updated unit-tests in 06-sni-ticket.conf would
fail test #4 (server1 = SNI, server2 = no SNI).
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/1529)
2016-09-01 12:40:54 +00:00
|
|
|
[ssltest_unknown_session_id_expected]
|
|
|
|
SessionIdExpected = Foo
|
|
|
|
|
2016-06-03 15:49:04 +00:00
|
|
|
[ssltest_unknown_method]
|
|
|
|
Method = TLS2
|
2016-07-05 17:06:23 +00:00
|
|
|
|
|
|
|
[ssltest_unknown_handshake_mode]
|
|
|
|
HandshakeMode = Foo
|
|
|
|
|
|
|
|
[ssltest_unknown_resumption_expected]
|
|
|
|
ResumptionExpected = Foo
|
2016-08-09 14:47:26 +00:00
|
|
|
|
|
|
|
[ssltest_unknown_ct_validation]
|
|
|
|
client = ssltest_unknown_ct_validation_client
|
|
|
|
|
|
|
|
[ssltest_unknown_ct_validation_client]
|
|
|
|
CTCallback = Foo
|
2017-11-05 16:46:48 +00:00
|
|
|
|
|
|
|
[ssltest_invalid_max_fragment_len]
|
|
|
|
MaxFragmentLenExt = 421
|