From: tb Date: Thu, 12 Oct 2023 17:14:17 +0000 (+0000) Subject: x509_algor: fix error message X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=06de222456dbe7c2730955134ce81f85ea1fbd07;p=openbsd x509_algor: fix error message --- diff --git a/regress/lib/libcrypto/asn1/x509_algor.c b/regress/lib/libcrypto/asn1/x509_algor.c index 1c8705ace98..8d94e5998e1 100644 --- a/regress/lib/libcrypto/asn1/x509_algor.c +++ b/regress/lib/libcrypto/asn1/x509_algor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_algor.c,v 1.4 2023/10/12 04:53:45 tb Exp $ */ +/* $OpenBSD: x509_algor.c,v 1.5 2023/10/12 17:14:17 tb Exp $ */ /* * Copyright (c) 2023 Theo Buehler * @@ -193,32 +193,32 @@ x509_algor_set0_test(void) if ((ret = X509_ALGOR_set0(alg, oid, V_ASN1_INTEGER, aint)) != 1) { fprintf(stderr, "Fail: %s: " - "X509_ALGOR_set0(alg, oid, V_ASN1_INTEGER, anull)" + "X509_ALGOR_set0(alg, oid, V_ASN1_INTEGER, aint)" ", want: %d, got %d\n", __func__, 1, ret); goto failure; } aint = NULL; if (alg->algorithm != oid) { fprintf(stderr, "FAIL: %s: unexpected oid on alg after " - "X509_ALGOR_set0(alg, oid, V_ASN1_INTEGER, anull)" + "X509_ALGOR_set0(alg, oid, V_ASN1_INTEGER, aint)" ", want: %d, got %d\n", __func__, 1, ret); goto failure; } if (alg->parameter == NULL) { fprintf(stderr, "FAIL: %s: expected non-NULL parameter after " - "X509_ALGOR_set0(alg, oid, V_ASN1_INTEGER, anull)" + "X509_ALGOR_set0(alg, oid, V_ASN1_INTEGER, aint)" ", want: %d, got %d\n", __func__, 1, ret); goto failure; } if (alg->parameter->type != V_ASN1_INTEGER) { fprintf(stderr, "FAIL: %s: want %d parameter type after " - "X509_ALGOR_set0(alg, oid, V_ASN1_INTEGER, anull), got %d\n", + "X509_ALGOR_set0(alg, oid, V_ASN1_INTEGER, aint), got %d\n", __func__, V_ASN1_INTEGER, alg->parameter->type); goto failure; } if (alg->parameter->value.asn1_string != aint_ref) { fprintf(stderr, "FAIL: %s: unexpected parameter value after " - "X509_ALGOR_set0(alg, oid, V_ASN1_NULL, anull)\n", __func__); + "X509_ALGOR_set0(alg, oid, V_ASN1_NULL, aint)\n", __func__); goto failure; } @@ -267,7 +267,7 @@ x509_algor_get0_test(void) if ((ret = X509_ALGOR_set0(alg, oid, V_ASN1_INTEGER, aint)) != 1) { fprintf(stderr, "Fail: %s: " - "X509_ALGOR_set0(alg, oid, V_ASN1_INTEGER, anull)" + "X509_ALGOR_set0(alg, oid, V_ASN1_INTEGER, aint)" ", want: %d, got %d\n", __func__, 1, ret); goto failure; }