Remi Tricot-Le Breton
cc346678dc
MEDIUM: ssl: Add ocsp_certid in ckch structure and discard ocsp buffer early
...
The ocsp_response member of the cert_key_and_chain structure is only
used temporarily. During a standard init process where an ocsp response
is provided, this ocsp file is first copied into the ocsp_response
buffer without any ocsp-related parsing (see
ssl_sock_load_ocsp_response_from_file), and then the contents are
actually interpreted and inserted into the actual ocsp tree
(cert_ocsp_tree) later in the process (see ssl_sock_load_ocsp). If the
response was deemed valid, it is then copied into the actual
ocsp_response structure's 'response' field (see
ssl_sock_load_ocsp_response). From this point, the ocsp_response field
of the cert_key_and_chain object could be discarded since actual ocsp
operations will be based of the certificate_ocsp object.
The only remaining runtime use of the ckch's ocsp_response field was in
the CLI, and more precisely in the 'show ssl cert' mechanism.
This constraint could be removed by adding an OCSP_CERTID directly in
the ckch because the buffer was only used to get this id.
This patch then adds the OCSP_CERTID pointer in the ckch, it clears the
ocsp_response buffer early and simplifies the ckch_store_build_certid
function.
2022-12-21 11:21:07 +01:00
..
2022-10-30 17:17:56 +01:00
2022-03-29 18:01:37 +02:00
2021-12-16 17:31:57 +01:00
2022-03-30 11:19:22 +02:00
2022-09-08 16:21:22 +02:00
2022-09-08 16:21:22 +02:00
2022-09-17 11:27:09 +02:00
2022-09-08 14:30:38 +02:00
2021-09-02 19:43:20 +02:00
2021-07-16 19:18:41 +02:00
2022-12-08 08:36:24 +01:00
2022-04-25 16:09:26 +02:00
2022-02-24 11:00:03 +01:00
2022-10-13 16:45:28 +02:00
2022-11-14 11:12:49 +01:00
2022-03-04 08:58:32 +01:00
2022-03-04 08:58:32 +01:00
2021-10-13 11:28:08 +02:00
2021-07-20 18:03:08 +02:00
2021-09-15 11:07:18 +02:00
2022-11-18 16:03:45 +01:00
2022-09-09 16:15:10 +02:00
2022-05-27 19:33:34 +02:00
2022-12-07 17:03:55 +01:00
2022-05-27 19:33:35 +02:00
2022-08-17 10:45:22 +02:00
2022-11-30 14:02:36 +01:00
2022-11-30 14:02:36 +01:00
2022-09-21 09:06:28 +02:00
2022-05-08 10:35:39 +02:00
2022-11-24 08:30:48 +01:00
2022-10-03 12:06:36 +02:00
2022-10-03 12:06:36 +02:00
2022-07-15 19:43:10 +02:00
2022-07-15 19:43:10 +02:00
2022-07-01 19:26:35 +02:00
2022-12-08 17:45:08 +01:00
2022-05-11 15:20:10 +02:00
2022-03-04 08:58:32 +01:00
2022-03-04 08:58:32 +01:00
2021-11-03 17:16:46 +01:00
2022-11-16 11:44:26 +01:00
2022-10-13 16:50:22 +02:00
2022-12-07 09:08:18 +01:00
2022-12-02 09:40:52 +01:00
2021-10-07 01:41:14 +02:00
2022-09-12 19:33:07 +02:00
2022-10-04 08:38:47 +02:00
2022-12-20 14:51:12 +01:00
2022-12-20 14:51:12 +01:00
2022-07-01 19:15:14 +02:00
2021-09-23 16:13:17 +02:00
2022-01-28 19:04:02 +01:00
2022-05-30 09:59:26 +02:00
2022-05-30 09:59:26 +02:00
2022-09-16 13:53:30 +02:00
2022-10-20 18:47:15 +02:00
2022-06-19 17:58:32 +02:00
2021-11-18 10:50:58 +01:00
2022-10-30 17:17:56 +01:00
2022-05-27 19:33:35 +02:00
2022-12-21 11:21:07 +01:00
2022-09-14 14:34:39 +02:00
2022-08-18 16:13:33 +02:00
2022-03-02 14:50:38 +01:00
2021-10-14 16:38:07 +02:00
2022-12-14 11:34:18 +01:00
2022-09-09 16:59:29 +02:00
2022-05-30 16:25:16 +02:00
2022-04-22 15:45:47 +02:00
2022-04-22 15:45:47 +02:00
2022-04-14 16:57:12 +02:00
2022-06-21 20:29:57 +02:00
2021-10-18 16:02:29 +02:00
2021-10-14 16:38:14 +02:00
2021-10-07 01:41:14 +02:00
2021-10-07 01:41:14 +02:00
2021-10-07 01:41:14 +02:00
2021-10-07 01:41:14 +02:00
2022-10-30 17:17:56 +01:00
2022-12-02 11:48:30 +01:00
2022-09-09 17:23:01 +02:00
2022-03-17 19:53:46 +01:00
2022-03-22 09:25:52 +01:00
2022-11-30 14:02:36 +01:00
2022-11-30 14:02:36 +01:00
2022-11-17 14:33:15 +01:00
2022-10-26 18:18:26 +02:00
2022-12-21 08:58:04 +01:00
2021-11-10 15:53:01 +01:00
2022-01-28 23:52:36 +01:00
2021-10-07 01:41:14 +02:00
2022-08-06 17:12:51 +02:00
2022-11-29 15:14:39 +01:00
2021-09-23 15:27:25 +02:00
2022-05-27 19:33:35 +02:00
2022-05-27 19:33:35 +02:00
2022-11-24 11:29:03 +01:00
2022-10-30 17:17:56 +01:00
2022-12-16 15:51:44 +01:00
2021-10-07 01:41:14 +02:00
2022-12-08 17:32:57 +01:00
2022-12-20 14:51:12 +01:00
2022-12-08 17:32:40 +01:00
2022-03-04 08:58:32 +01:00
2022-03-04 08:58:32 +01:00
2022-05-20 18:39:43 +02:00
2021-10-27 17:41:07 +02:00
2022-09-13 17:12:38 +02:00
2022-09-09 17:23:01 +02:00
2022-09-20 15:35:33 +02:00
2022-09-20 15:35:09 +02:00
2022-08-17 11:04:53 +02:00
2021-09-23 15:27:25 +02:00
2022-03-04 08:58:32 +01:00
2022-03-04 08:58:32 +01:00
2022-03-04 08:58:32 +01:00
2021-10-07 01:41:14 +02:00
2022-10-30 17:17:56 +01:00
2022-07-29 17:32:05 +02:00
2022-10-03 16:25:17 +02:00
2022-12-02 14:45:43 +01:00
2022-12-21 09:27:26 +01:00
2022-10-03 16:25:17 +02:00
2022-07-15 14:57:49 +02:00
2022-10-03 16:25:17 +02:00
2022-10-30 17:17:56 +01:00
2022-11-30 14:02:36 +01:00
2022-10-13 11:06:48 +02:00
2022-12-02 14:45:43 +01:00
2022-12-02 14:45:43 +01:00
2022-05-30 09:59:26 +02:00
2022-04-21 12:03:20 +02:00
2022-08-20 19:08:31 +02:00
2022-10-13 10:12:03 +02:00
2022-12-12 11:44:34 +01:00
2022-11-21 09:22:28 +01:00
2022-11-21 09:22:28 +01:00
2022-10-13 11:06:48 +02:00
2021-08-28 12:49:58 +02:00
2022-08-24 14:56:42 +02:00
2022-05-27 19:33:35 +02:00
2022-05-06 18:13:36 +02:00
2022-10-13 16:45:28 +02:00
2022-11-14 11:14:02 +01:00
2022-05-27 19:33:35 +02:00
2022-12-06 10:22:07 +01:00
2022-11-30 14:02:36 +01:00
2022-05-02 17:51:51 +02:00
2022-10-03 12:06:36 +02:00
2021-06-15 16:52:42 +02:00
2021-06-15 16:52:42 +02:00
2022-11-24 08:32:27 +01:00
2021-09-15 11:07:18 +02:00
2022-08-12 11:18:46 +02:00
2022-09-13 17:03:30 +02:00
2022-01-28 19:04:02 +01:00
2022-01-28 19:04:02 +01:00
2021-08-05 10:07:43 +02:00
2022-12-21 11:21:07 +01:00
2022-12-02 11:48:30 +01:00
2021-10-07 01:41:14 +02:00
2022-11-10 11:45:48 +01:00
2022-12-21 11:21:07 +01:00
2022-11-10 13:28:37 +01:00
2022-12-15 16:53:49 +01:00
2022-05-20 16:57:12 +02:00
2022-09-09 16:52:08 +02:00
2022-06-17 13:25:02 +02:00
2022-11-28 18:58:06 +01:00
2022-11-29 18:06:42 +01:00
2022-09-24 16:35:23 +02:00
2022-10-03 15:04:55 +02:00
2022-09-09 16:52:09 +02:00
2022-11-22 09:10:08 +01:00
2022-10-30 17:17:56 +01:00
2022-03-02 14:54:44 +01:00
2022-07-15 19:41:26 +02:00
2022-12-21 11:21:07 +01:00
2021-10-07 01:41:14 +02:00
2021-10-08 17:22:26 +02:00
2022-11-22 09:10:08 +01:00
2022-07-01 19:15:15 +02:00
2022-12-21 11:21:07 +01:00
2021-12-21 15:53:19 +01:00
2022-03-02 14:53:00 +01:00
2022-01-03 14:40:58 +01:00
2021-09-08 15:44:45 +02:00
2022-12-01 15:25:34 +01:00
2021-09-11 20:37:50 +02:00