diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-03-14 19:06:59 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-03-23 14:15:07 +0100 |
commit | 564df0ddead0fbac0bf2eeec6164a81bc3fa8882 (patch) | |
tree | df3a1b3eb3433926be8c6b63a543326fbe496705 /crypto/asn1/asn1_par.c | |
parent | Remove old ASN.1 code. (diff) | |
download | openssl-564df0ddead0fbac0bf2eeec6164a81bc3fa8882.tar.xz openssl-564df0ddead0fbac0bf2eeec6164a81bc3fa8882.zip |
Remove {i2d,d2i}_ASN1_BOOLEAN
Remove {i2d,d2i}_ASN1_BOOLEAN.
Rewrite single occurrence of d2i_ASN1_BOOLEAN in asn1_parse2
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/asn1/asn1_par.c')
-rw-r--r-- | crypto/asn1/asn1_par.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/crypto/asn1/asn1_par.c b/crypto/asn1/asn1_par.c index a174dec976..20f3a88b85 100644 --- a/crypto/asn1/asn1_par.c +++ b/crypto/asn1/asn1_par.c @@ -215,15 +215,11 @@ static int asn1_parse2(BIO *bp, const unsigned char **pp, long length, goto end; } } else if (tag == V_ASN1_BOOLEAN) { - int ii; - - opp = op; - ii = d2i_ASN1_BOOLEAN(NULL, &opp, len + hl); - if (ii < 0) { + if (len != 1) { if (BIO_write(bp, "Bad boolean\n", 12) <= 0) goto end; } - BIO_printf(bp, ":%d", ii); + BIO_printf(bp, ":%u", p[0]); } else if (tag == V_ASN1_BMPSTRING) { /* do the BMP thang */ } else if (tag == V_ASN1_OCTET_STRING) { |