From: Dr. Stephen Henson Date: Thu, 11 Feb 2016 00:23:17 +0000 (+0000) Subject: use consistent error messages X-Git-Tag: OpenSSL_1_1_0-pre3~106 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b1a99374aec17822e924795a6a30ab306d4c46c9;p=oweals%2Fopenssl.git use consistent error messages Reviewed-by: Richard Levitte --- diff --git a/crypto/asn1/asn1_par.c b/crypto/asn1/asn1_par.c index d0de27207a..773b8b2ee3 100644 --- a/crypto/asn1/asn1_par.c +++ b/crypto/asn1/asn1_par.c @@ -219,13 +219,13 @@ static int asn1_parse2(BIO *bp, const unsigned char **pp, long length, goto end; i2a_ASN1_OBJECT(bp, o); } else { - if (BIO_write(bp, ":BAD OBJECT", 11) <= 0) + if (BIO_puts(bp, ":BAD OBJECT") <= 0) goto end; dump_cont = 1; } } else if (tag == V_ASN1_BOOLEAN) { if (len != 1) { - if (BIO_puts(bp, "BAD BOOLEAN") <= 0) + if (BIO_puts(bp, ":BAD BOOLEAN") <= 0) goto end; dump_cont = 1; } @@ -309,7 +309,7 @@ static int asn1_parse2(BIO *bp, const unsigned char **pp, long length, goto end; } } else { - if (BIO_write(bp, "BAD INTEGER", 11) <= 0) + if (BIO_puts(bp, ":BAD INTEGER") <= 0) goto end; dump_cont = 1; } @@ -335,7 +335,7 @@ static int asn1_parse2(BIO *bp, const unsigned char **pp, long length, goto end; } } else { - if (BIO_write(bp, "BAD ENUMERATED", 14) <= 0) + if (BIO_puts(bp, ":BAD ENUMERATED") <= 0) goto end; dump_cont = 1; }