diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-02-11 00:23:17 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-02-11 00:59:48 +0000 |
commit | b1a99374aec17822e924795a6a30ab306d4c46c9 (patch) | |
tree | 38bd6c110af25d048998c05c2e7fbc51525fdac5 /crypto/asn1 | |
parent | 2ab7af7b08c5213ae85c2a4aa1c15fe8dfe92137 (diff) |
use consistent error messages
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/asn1')
-rw-r--r-- | crypto/asn1/asn1_par.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |