diff options
author | Richard Levitte <levitte@openssl.org> | 2002-11-13 18:09:27 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-11-13 18:09:27 +0000 |
commit | c112323dd5d107b199a6d951f8be4c882ff0fba1 (patch) | |
tree | beb7a24de5620eeba1fb7088a9c181e4444bad24 /crypto/asn1/t_pkey.c | |
parent | 0709385d3caf380d8506a16cc27573e7d2cf52b5 (diff) |
This didn't get to the 0.9.8-dev thread...
Diffstat (limited to 'crypto/asn1/t_pkey.c')
-rw-r--r-- | crypto/asn1/t_pkey.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/crypto/asn1/t_pkey.c b/crypto/asn1/t_pkey.c index bd89c1dc11..73f32ff84f 100644 --- a/crypto/asn1/t_pkey.c +++ b/crypto/asn1/t_pkey.c @@ -562,18 +562,12 @@ static int print(BIO *bp, const char *number, BIGNUM *num, unsigned char *buf, int off) { int n,i; - char str[128]; const char *neg; if (num == NULL) return(1); neg = (BN_get_sign(num))?"-":""; - if (off) - { - if (off > 128) off=128; - memset(str,' ',off); - if (BIO_write(bp,str,off) <= 0) return(0); - } - + if(!BIO_indent(bp,off,128)) + return 0; if (BN_is_zero(num)) { if (BIO_printf(bp, "%s 0\n", number) <= 0) |