From: Alan T. DeKok Date: Wed, 26 Feb 2025 12:54:38 +0000 (-0500) Subject: tweak error messages X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5addb5d512782d1275febfd7e4ab27f0bdd9a3eb;p=thirdparty%2Ffreeradius-server.git tweak error messages --- diff --git a/src/protocols/der/decode.c b/src/protocols/der/decode.c index 9249e558b0e..905a9fe2056 100644 --- a/src/protocols/der/decode.c +++ b/src/protocols/der/decode.c @@ -1964,7 +1964,8 @@ static ssize_t fr_der_decode_x509_extensions(TALLOC_CTX *ctx, fr_pair_list_t *ou } if (tag != FR_DER_TAG_SEQUENCE) { - fr_strerror_printf("Expected SEQUENCE tag as the first item in an extensions list. Got tag %u", tag); + fr_strerror_printf("Expected 'sequence' tag as the first item in an extensions list. Got tag %s", + fr_der_tag_to_str(tag)); slen = -1; goto error; } @@ -1989,8 +1990,8 @@ static ssize_t fr_der_decode_x509_extensions(TALLOC_CTX *ctx, fr_pair_list_t *ou } if (tag != FR_DER_TAG_SEQUENCE) { - fr_strerror_printf("Expected SEQUENCE tag as the first tag in an extension. Got tag %u", - tag); + fr_strerror_printf("Expected 'sequence' tag as the first tag in an extension. Got tag %s", + fr_der_tag_to_str(tag)); slen = -1; goto error; } @@ -2003,7 +2004,8 @@ static ssize_t fr_der_decode_x509_extensions(TALLOC_CTX *ctx, fr_pair_list_t *ou } if (tag != FR_DER_TAG_OID) { - fr_strerror_printf("Expected OID tag as the first item in an extension. Got tag %u", tag); + fr_strerror_printf("Expected OID tag as the first item in an extension. Got tag %s", + fr_der_tag_to_str(tag)); slen = -1; goto error; }