Hanno Becker
e02758c9c8
Remove ciphersuite from SSL session if single suite hardcoded
...
If MBEDTLS_SSL_SINGLE_CIPHERSUITE is enabled, the type
mbedtls_ssl_ciphersuite_handle_t
is logically a boolean (concretely realized as `unsigned char`),
containing the invalid handle and the unique valid handle, which
represents the single enabled ciphersuite.
The SSL session structure mbedtls_ssl_session contains an instance
of mbedtls_ssl_ciphersuite_handle_t which is guaranteed to be valid,
and which is hence redundant in any two-valued implementation of
mbedtls_ssl_ciphersuite_handle_t.
This commit replaces read-uses of
mbedtls_ssl_session::ciphersuite_info
by a getter functions which, and defines this getter function
either by just reading the field from the session structure
(in case MBEDTLS_SSL_SINGLE_CIPHERSUITE is disabled), or by
returning the single valid ciphersuite handle (in case
MBEDTLS_SSL_SINGLE_CIPHERSUITE is enabled) and removing the
field from mbedtls_ssl_session in this case.
2019-07-08 11:23:24 +01:00
..
2019-06-21 16:00:06 +01:00
2019-06-17 19:06:52 +02:00
2018-12-11 12:28:56 +01:00
2019-06-17 19:06:52 +02:00
2013-04-08 18:09:51 +02:00
2015-04-08 13:25:31 +02:00
2013-04-08 18:09:51 +02:00
2018-12-18 13:05:49 +01:00
2018-06-11 14:03:22 +01:00
2018-12-18 12:22:40 +01:00
2018-06-13 12:13:58 +01:00
2015-04-08 13:25:31 +02:00
2018-08-06 11:42:06 +01:00
2018-12-19 12:51:00 +00:00
2018-12-19 12:51:00 +00:00
2016-08-25 15:42:27 +01:00
2018-10-16 13:48:23 +01:00
2015-09-30 16:31:10 +02:00
2018-08-06 11:42:06 +01:00
2018-12-19 12:52:59 +00:00
2018-12-19 12:52:59 +00:00
2018-12-19 12:47:55 +00:00
2018-12-19 12:47:55 +00:00
2019-02-18 14:50:57 +00:00
2018-12-19 19:02:39 +01:00
2018-05-24 13:37:31 +02:00
2018-12-18 15:30:30 +00:00
2018-05-24 13:37:31 +02:00
2018-12-18 15:30:30 +00:00
2019-06-06 12:04:13 +01:00
2018-03-27 19:25:35 -07:00
2018-03-27 19:25:35 -07:00
2018-03-27 19:25:35 -07:00
2018-08-06 11:40:57 +01:00
2019-06-06 12:04:13 +01:00
2019-06-06 12:04:13 +01:00
2018-03-27 19:25:35 -07:00
2019-06-06 12:04:13 +01:00
2018-03-27 19:25:35 -07:00
2018-12-19 18:06:35 +01:00
2018-03-27 19:25:35 -07:00
2018-12-19 17:34:13 +01:00
2016-10-13 13:53:13 +01:00
2018-08-06 11:42:06 +01:00
2018-08-29 23:38:57 +03:00
2018-11-26 19:26:00 +01:00
2019-06-18 11:05:44 +01:00
2019-06-18 11:05:44 +01:00
2015-04-08 13:25:31 +02:00
2018-08-06 11:42:06 +01:00
2018-12-18 16:59:09 +00:00
2018-12-18 16:59:09 +00:00
2019-02-22 10:24:31 +01:00
2019-06-21 15:59:29 +01:00
2018-12-18 14:31:50 +00:00
2018-12-20 09:53:24 +00:00
2018-12-18 14:31:18 +00:00
2018-12-18 14:31:18 +00:00
2018-12-18 13:00:48 +00:00
2019-02-11 07:28:04 -05:00
2017-07-24 15:31:30 +01:00
2019-06-21 15:59:16 +01:00
2015-04-08 13:25:31 +02:00
2018-08-06 11:40:57 +01:00
2018-08-06 11:40:57 +01:00
2017-07-27 21:44:33 +01:00
2018-08-06 11:40:57 +01:00
2017-07-27 21:44:33 +01:00
2018-08-06 11:40:57 +01:00
2017-07-27 21:44:33 +01:00
2018-08-06 11:40:57 +01:00
2018-12-19 17:30:38 +01:00
2018-12-19 17:30:38 +01:00
2018-06-11 13:10:14 +01:00
2019-01-28 15:20:10 +02:00
2018-08-06 11:42:06 +01:00
2015-04-08 13:25:31 +02:00
2015-04-08 13:25:31 +02:00
2015-04-08 13:25:31 +02:00
2015-04-08 13:25:31 +02:00
2017-10-06 11:58:50 +01:00
2018-08-06 11:42:06 +01:00
2017-10-06 11:58:50 +01:00
2018-08-06 11:42:06 +01:00
2018-01-23 19:37:44 +00:00
2018-08-06 11:40:57 +01:00
2019-03-06 13:51:25 +00:00
2019-03-06 13:51:25 +00:00
2018-08-13 14:46:45 +03:00
2019-02-18 14:50:57 +00:00
2017-05-30 16:54:23 +01:00
2018-08-06 11:42:06 +01:00
2018-12-19 17:08:51 +01:00
2018-12-20 12:29:48 +01:00
2018-10-08 11:13:21 +02:00
2018-10-08 11:13:21 +02:00
2018-09-27 18:23:08 +01:00
2018-08-06 11:42:06 +01:00
2018-02-08 17:18:19 +08:00
2018-08-06 11:42:06 +01:00
2018-07-27 17:15:39 +01:00
2018-08-06 11:42:06 +01:00
2015-04-08 13:25:31 +02:00
2018-10-16 13:46:25 +01:00
2018-05-24 13:37:31 +02:00
2018-12-18 15:30:30 +00:00
2019-02-18 14:50:57 +00:00
2018-12-18 14:05:20 +00:00
2018-12-20 12:15:08 +00:00
2018-12-20 12:15:08 +00:00
2019-06-03 12:49:36 +01:00
2019-07-08 11:23:24 +01:00
2019-01-29 13:02:19 +01:00
2019-02-05 10:05:01 +01:00
2019-06-11 17:27:32 +01:00
2018-08-06 11:40:57 +01:00
2019-06-25 09:11:11 +01:00
2019-06-25 09:10:57 +01:00
2019-06-28 15:52:54 +01:00
2019-06-28 15:52:54 +01:00
2019-02-11 21:23:49 +00:00
2019-06-25 09:10:57 +01:00
2015-04-08 13:25:31 +02:00
2018-08-06 11:42:06 +01:00