summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ts/ts_lib.c
diff options
context:
space:
mode:
authortb <>2025-12-05 14:19:27 +0000
committertb <>2025-12-05 14:19:27 +0000
commit9d2d9214b79d3c58a92235befe0378b7ada96773 (patch)
tree526d0c6e6e79d5cde410d3592176246f57583320 /src/lib/libcrypto/ts/ts_lib.c
parentf3f05f0cf8c30a990193e332e26fdd8e54b3f59b (diff)
downloadopenbsd-9d2d9214b79d3c58a92235befe0378b7ada96773.tar.gz
openbsd-9d2d9214b79d3c58a92235befe0378b7ada96773.tar.bz2
openbsd-9d2d9214b79d3c58a92235befe0378b7ada96773.zip
Replace trivial uses of ASN1_STRING_data()
Almost entirely mechanical diff that ensures that for read-only accesses we use the const correct ASN1_STRING_get0_data(). Arguably, in most places the better fix would be to reach into ASN1_STRING but then we have to think and bikeshed... ok beck kenjiro
Diffstat (limited to 'src/lib/libcrypto/ts/ts_lib.c')
-rw-r--r--src/lib/libcrypto/ts/ts_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ts/ts_lib.c b/src/lib/libcrypto/ts/ts_lib.c
index 7e40101752..d497fed9d8 100644
--- a/src/lib/libcrypto/ts/ts_lib.c
+++ b/src/lib/libcrypto/ts/ts_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ts_lib.c,v 1.15 2025/01/07 14:22:19 tb Exp $ */ 1/* $OpenBSD: ts_lib.c,v 1.16 2025/12/05 14:19:27 tb Exp $ */
2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL 2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL
3 * project 2002. 3 * project 2002.
4 */ 4 */
@@ -155,7 +155,7 @@ TS_MSG_IMPRINT_print_bio(BIO *bio, TS_MSG_IMPRINT *a)
155 155
156 BIO_printf(bio, "Message data:\n"); 156 BIO_printf(bio, "Message data:\n");
157 msg = TS_MSG_IMPRINT_get_msg(a); 157 msg = TS_MSG_IMPRINT_get_msg(a);
158 BIO_dump_indent(bio, (const char *)ASN1_STRING_data(msg), 158 BIO_dump_indent(bio, (const char *)ASN1_STRING_get0_data(msg),
159 ASN1_STRING_length(msg), 4); 159 ASN1_STRING_length(msg), 4);
160 160
161 return 1; 161 return 1;