Bob Beck
68c0321e90
Provide ASN1_STRING_new_not_owned()
...
This function provides the ability to construct an ASN1_STRING
containing data that is not owned by the constructed ASN1_STRING. The
resulting ASN1_STRING, when freed, will not free the data, and it is
the caller's resposibility to ensure that the data lives past the
lifetime of any returned ASN1_STRING.
Why? you may ask? Many places where ->data and ->length were used
directly in the past before the opaquification of ASN1_STRING were
for this purpose, whether used for actual static data, or to turn
bytes created by and in control of the caller into an ASN1_STRING
for temporary use as an input. This function makes this easier
to do without making copies.
The function deliberately does not allow the creation of a BIT_STRING
as this would require also always providing unused bits, which is
annoying and unnecessary for almost all potential use cases.
For: https://github.com/openssl/openssl/issues/29861
For: https://github.com/openssl/openssl/issues/30162
Reviewed-by: Neil Horman <nhorman@openssl.org >
Reviewed-by: Saša Nedvědický <sashan@openssl.org >
MergeDate: Wed Jun 3 11:42:49 2026
(Merged from https://github.com/openssl/openssl/pull/30964 )
2026-06-03 13:41:32 +02:00
..
2026-05-28 10:19:38 +02:00
2025-12-09 00:28:19 -07:00
2026-06-03 13:41:32 +02:00
2026-05-07 16:10:46 -04:00
2026-05-06 13:35:41 +02:00
2026-05-11 10:07:06 +02:00
2026-06-03 09:46:03 +02:00
2025-12-09 00:28:19 -07:00
2026-05-27 11:08:08 +02:00
2026-06-03 09:46:03 +02:00
2026-05-27 11:08:08 +02:00
2025-12-09 00:28:19 -07:00
2026-06-01 08:58:00 +02:00
2026-05-08 08:15:08 -04:00
2026-05-06 13:35:41 +02:00
2026-05-06 13:35:41 +02:00
2026-03-10 14:37:52 +00:00
2026-05-06 13:35:24 +02:00
2026-06-03 09:46:03 +02:00
2026-05-06 13:35:24 +02:00
2026-05-06 13:35:24 +02:00
2026-05-26 11:34:50 +02:00
2026-06-03 09:46:03 +02:00
2026-05-06 13:35:24 +02:00
2026-05-06 13:35:24 +02:00
2026-03-10 14:37:52 +00:00
2026-06-03 09:46:03 +02:00
2026-05-11 09:21:10 +02:00
2026-05-21 11:09:28 +02:00
2026-05-10 11:53:33 +02:00
2026-06-03 13:30:02 +02:00
2026-05-11 09:42:58 +02:00
2026-05-06 13:35:24 +02:00
2026-05-06 13:35:41 +02:00
2026-03-10 14:37:52 +00:00
2026-06-03 09:46:03 +02:00
2026-05-06 13:35:24 +02:00
2026-05-10 11:53:33 +02:00
2025-12-09 00:28:19 -07:00
2026-05-14 11:29:09 +02:00
2026-05-10 11:53:33 +02:00
2026-06-03 09:46:03 +02:00
2026-05-26 10:57:56 +02:00
2026-06-01 08:58:00 +02:00
2026-05-06 13:35:24 +02:00
2026-04-03 17:17:33 +02:00
2026-06-03 09:46:03 +02:00
2026-05-18 13:00:12 +02:00
2026-05-27 11:08:08 +02:00
2026-05-06 13:35:24 +02:00
2026-06-03 09:46:03 +02:00
2026-06-03 09:46:03 +02:00
2025-12-09 00:28:19 -07:00
2026-05-06 13:35:24 +02:00
2026-05-06 13:35:24 +02:00
2026-03-31 02:07:19 +02:00
2025-12-09 00:28:19 -07:00
2026-05-10 11:53:33 +02:00
2025-12-09 00:28:19 -07:00
2026-05-29 09:45:35 +02:00
2026-05-13 09:24:09 +02:00
2026-05-10 11:53:33 +02:00
2026-05-10 11:53:33 +02:00
2025-12-09 00:28:19 -07:00
2026-05-20 11:53:32 -04:00
2026-05-06 13:35:24 +02:00
2026-04-30 13:41:56 +02:00
2026-05-06 13:35:41 +02:00
2025-12-09 00:28:19 -07:00
2026-05-07 16:10:50 -04:00
2026-05-27 11:08:08 +02:00
2026-05-26 10:51:27 +02:00
2025-12-09 00:28:19 -07:00
2025-09-02 13:05:45 +00:00
2026-05-10 11:53:33 +02:00
2026-05-10 11:53:33 +02:00
2026-05-10 11:53:33 +02:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2026-03-13 09:35:23 +01:00
2026-03-31 11:51:32 -04:00
2025-09-02 13:05:45 +00:00
2025-12-09 00:28:19 -07:00
2026-03-10 14:37:52 +00:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2026-03-24 18:47:53 +01:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2026-04-02 09:17:47 +02:00
2025-12-09 00:28:19 -07:00
2026-03-10 14:37:52 +00:00
2025-12-09 00:28:19 -07:00
2025-09-02 13:05:45 +00:00
2025-12-09 00:28:19 -07:00
2026-05-10 11:53:33 +02:00
2026-05-10 11:53:33 +02:00
2025-12-19 12:06:38 -05:00
2026-05-10 11:53:33 +02:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-12-03 14:40:56 +01:00
2025-12-09 00:28:19 -07:00
2025-12-03 14:40:56 +01:00
2026-04-30 13:41:56 +02:00
2026-04-30 06:58:48 +00:00
2025-12-03 14:40:56 +01:00
2025-12-09 00:28:19 -07:00
2026-04-06 21:39:07 +02:00
2025-12-09 00:28:19 -07:00
2026-04-26 15:35:31 +02:00
2026-04-13 09:47:42 +02:00
2025-12-09 00:28:19 -07:00
2026-03-10 14:37:52 +00:00
2025-12-09 00:28:19 -07:00
2025-09-02 13:05:45 +00:00
2025-12-09 00:28:19 -07:00
2026-05-10 11:53:33 +02:00
2025-09-02 13:05:45 +00:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2026-03-10 14:37:52 +00:00
2026-05-06 13:35:24 +02:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2026-03-10 14:37:52 +00:00
2025-12-09 00:28:19 -07:00
2026-05-06 13:35:41 +02:00
2025-09-09 11:18:42 +02:00
2025-09-09 11:18:42 +02:00
2026-05-10 11:53:33 +02:00
2026-06-01 09:49:19 +02:00
2026-05-10 11:53:33 +02:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2026-04-02 09:17:47 +02:00
2026-05-10 11:53:33 +02:00
2025-12-09 00:28:19 -07:00
2026-03-10 14:37:52 +00:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2026-05-11 10:21:48 +02:00
2026-05-11 10:21:48 +02:00
2026-05-11 10:21:48 +02:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2026-05-06 13:35:24 +02:00
2026-04-02 09:17:47 +02:00
2026-04-02 09:17:47 +02:00