Hanno Becker
8b543b3ca8
Make use of abort condition callback in CN comparison
...
The previous CN name comparison function x509_crt_verify_name()
traversed the dynamically allocated linked list presentation of
the CRT's subject, comparing each entry to the desired hostname
configured by the application code.
Eventually, we want to get rid of the linked list presentation of
the CRT's subject to save both code and RAM usage, and hence need
to rewrite the CN verification routine in a way that builds on the
raw ASN.1 subject data only.
In order to avoid duplicating the code for the parsing of the nested
ASN.1 name structure, this commit performs the name search by using
the existing name traversal function mbedtls_x509_name_cmp_raw(),
passing to it a callback which checks whether the current name
component matches the desired hostname.
2019-06-25 09:06:26 +01:00
..
2015-06-25 10:59:56 +02:00
2019-04-24 10:52:45 +02:00
2018-04-05 15:37:38 +02:00
2018-04-17 10:00:21 -05:00
2018-12-19 12:51:00 +00:00
2019-06-25 09:00:25 +01:00
2019-02-11 21:13:33 +00:00
2017-02-15 23:31:07 +02:00
2019-03-06 13:51:30 +00:00
2018-12-19 12:52:59 +00:00
2018-12-19 13:42:05 +00:00
2019-04-24 10:51:54 +02:00
2019-05-30 10:58:12 +01:00
2019-04-24 10:51:54 +02:00
2018-12-18 15:30:30 +00:00
2018-07-23 18:18:32 +01:00
2018-12-19 17:34:58 +01:00
2018-06-27 10:51:47 +01:00
2019-05-09 16:59:02 +01:00
2018-11-26 19:26:22 +01:00
2019-06-18 11:05:44 +01:00
2019-04-24 10:51:54 +02:00
2019-05-30 10:58:12 +01:00
2019-02-22 12:51:51 +01:00
2019-01-10 10:52:08 +02:00
2018-12-19 09:48:50 +00:00
2019-04-24 10:51:54 +02:00
2019-04-24 10:51:54 +02:00
2018-11-06 13:12:47 +00:00
2018-04-17 10:00:21 -05:00
2019-06-03 13:01:21 +01:00
2018-12-19 17:32:19 +01:00
2019-04-24 10:51:54 +02:00
2018-07-23 10:34:47 -07:00
2018-11-26 19:26:22 +01:00
2019-04-25 11:00:41 +03:00
2018-04-17 10:00:21 -05:00
2019-04-24 10:52:53 +02:00
2019-04-24 10:52:45 +02:00
2018-01-22 11:54:42 +01:00
2018-04-17 10:00:21 -05:00
2018-06-12 16:56:04 +01:00
2018-07-24 17:20:17 +01:00
2018-12-20 12:15:40 +01:00
2019-06-18 11:05:44 +01:00
2015-09-04 14:21:07 +02:00
2018-06-12 18:25:09 +03:00
2018-10-15 15:27:49 +02:00
2018-12-20 12:37:13 +00:00
2018-10-16 13:39:40 +01:00
2015-09-04 14:21:07 +02:00
2018-10-16 13:39:40 +01:00
2019-06-18 11:31:59 +02:00
2018-12-19 17:03:28 +01:00
2018-12-11 12:28:56 +01:00
2018-10-11 11:04:20 +01:00
2019-04-24 10:51:54 +02:00
2019-04-24 10:51:54 +02:00
2018-10-09 16:36:53 +01:00
2018-12-20 12:37:13 +00:00
2019-04-24 10:52:45 +02:00
2019-04-24 10:52:45 +02:00
2019-04-24 10:52:53 +02:00
2019-06-19 10:25:01 +01:00
2019-03-01 10:29:13 +01:00
2019-06-19 16:56:51 +01:00
2018-04-17 10:00:21 -05:00
2019-06-25 09:00:25 +01:00
2019-06-03 09:51:08 +02:00
2019-06-24 18:12:00 +02:00
2018-09-06 12:09:56 +01:00
2018-11-04 18:51:36 +00:00
2019-06-19 10:25:01 +01:00
2016-11-04 23:05:56 +01:00
2018-11-02 10:52:38 +00:00
2019-06-25 09:06:26 +01:00
2019-06-25 09:06:26 +01:00
2019-06-25 09:06:26 +01:00
2019-06-25 09:06:26 +01:00
2019-02-11 21:13:33 +00:00
2019-02-11 21:13:33 +00:00
2018-04-17 10:00:21 -05:00