diff options
Diffstat (limited to 'src/regress/lib/libcrypto')
| -rw-r--r-- | src/regress/lib/libcrypto/asn1/asn1complex.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regress/lib/libcrypto/asn1/asn1complex.c b/src/regress/lib/libcrypto/asn1/asn1complex.c index 6f34154b7f..0e2f50212c 100644 --- a/src/regress/lib/libcrypto/asn1/asn1complex.c +++ b/src/regress/lib/libcrypto/asn1/asn1complex.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: asn1complex.c,v 1.4 2022/09/05 21:06:31 tb Exp $ */ | 1 | /* $OpenBSD: asn1complex.c,v 1.5 2025/12/07 09:35:20 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -190,7 +190,7 @@ do_asn1_constructed_test(const struct asn1_constructed_test *act) | |||
| 190 | ERR_print_errors_fp(stderr); | 190 | ERR_print_errors_fp(stderr); |
| 191 | goto failed; | 191 | goto failed; |
| 192 | } | 192 | } |
| 193 | if (!asn1_compare_bytes(act->name, ASN1_STRING_data(aos), | 193 | if (!asn1_compare_bytes(act->name, ASN1_STRING_get0_data(aos), |
| 194 | ASN1_STRING_length(aos), act->want, act->want_len)) | 194 | ASN1_STRING_length(aos), act->want, act->want_len)) |
| 195 | goto failed; | 195 | goto failed; |
| 196 | 196 | ||
| @@ -285,7 +285,7 @@ do_asn1_sequence_string_tests(void) | |||
| 285 | goto failed; | 285 | goto failed; |
| 286 | } | 286 | } |
| 287 | 287 | ||
| 288 | if (!asn1_compare_bytes("sequence", ASN1_STRING_data(astr), | 288 | if (!asn1_compare_bytes("sequence", ASN1_STRING_get0_data(astr), |
| 289 | ASN1_STRING_length(astr), asn1_sequence_content, | 289 | ASN1_STRING_length(astr), asn1_sequence_content, |
| 290 | sizeof(asn1_sequence_content))) | 290 | sizeof(asn1_sequence_content))) |
| 291 | goto failed; | 291 | goto failed; |
| @@ -299,7 +299,7 @@ do_asn1_sequence_string_tests(void) | |||
| 299 | goto failed; | 299 | goto failed; |
| 300 | } | 300 | } |
| 301 | 301 | ||
| 302 | if (!asn1_compare_bytes("sequence indefinite", ASN1_STRING_data(astr), | 302 | if (!asn1_compare_bytes("sequence indefinite", ASN1_STRING_get0_data(astr), |
| 303 | ASN1_STRING_length(astr), asn1_sequence_indefinite_content, | 303 | ASN1_STRING_length(astr), asn1_sequence_indefinite_content, |
| 304 | sizeof(asn1_sequence_indefinite_content))) | 304 | sizeof(asn1_sequence_indefinite_content))) |
| 305 | goto failed; | 305 | goto failed; |
