diff options
| author | tb <> | 2025-08-26 17:57:10 +0000 |
|---|---|---|
| committer | tb <> | 2025-08-26 17:57:10 +0000 |
| commit | d5ede21d288464fdc86b0e6705bf42f4c08f8962 (patch) | |
| tree | e5ef0b24f6fdbc201257d8100edc6077fcfa2d59 /src | |
| parent | ff41d4a1a0047b7ca45864e52827d01de7a395c5 (diff) | |
| download | openbsd-d5ede21d288464fdc86b0e6705bf42f4c08f8962.tar.gz openbsd-d5ede21d288464fdc86b0e6705bf42f4c08f8962.tar.bz2 openbsd-d5ede21d288464fdc86b0e6705bf42f4c08f8962.zip | |
ec_asn1_test: fix error message
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/ec/ec_asn1_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/ec/ec_asn1_test.c b/src/regress/lib/libcrypto/ec/ec_asn1_test.c index c59325a0f7..c89ab0e7ab 100644 --- a/src/regress/lib/libcrypto/ec/ec_asn1_test.c +++ b/src/regress/lib/libcrypto/ec/ec_asn1_test.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_asn1_test.c,v 1.38 2025/08/26 16:18:15 tb Exp $ */ | 1 | /* $OpenBSD: ec_asn1_test.c,v 1.39 2025/08/26 17:57:10 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 | * Copyright (c) 2024, 2025 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2024, 2025 Theo Buehler <tb@openbsd.org> |
| @@ -1047,7 +1047,7 @@ ec_group_check_prime_order(EC_builtin_curve *curve, BN_CTX *ctx) | |||
| 1047 | errx(1, "order = BN_CTX_get()"); | 1047 | errx(1, "order = BN_CTX_get()"); |
| 1048 | 1048 | ||
| 1049 | if (!EC_GROUP_get_order(group, order, ctx)) | 1049 | if (!EC_GROUP_get_order(group, order, ctx)) |
| 1050 | errx(1, "EC_GROUP_get_curve"); | 1050 | errx(1, "EC_GROUP_get_order"); |
| 1051 | 1051 | ||
| 1052 | if ((rv = BN_is_prime_ex(order, 0, ctx, NULL)) != 1) { | 1052 | if ((rv = BN_is_prime_ex(order, 0, ctx, NULL)) != 1) { |
| 1053 | fprintf(stderr, "%s: nid %d: BN_is_prime_ex() returned %d, want 1\n", | 1053 | fprintf(stderr, "%s: nid %d: BN_is_prime_ex() returned %d, want 1\n", |
