projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This didn't get to the 0.9.8-dev thread...
[openssl.git]
/
crypto
/
asn1
/
t_pkey.c
diff --git
a/crypto/asn1/t_pkey.c
b/crypto/asn1/t_pkey.c
index bd89c1dc11bd6a531bbaaa35b8076d1460b6c4c3..73f32ff84f9302f16cdedfd4b795569566f7afcb 100644
(file)
--- 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;
int off)
{
int n,i;
- char str[128];
const char *neg;
if (num == NULL) return(1);
neg = (BN_get_sign(num))?"-":"";
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)
if (BN_is_zero(num))
{
if (BIO_printf(bp, "%s 0\n", number) <= 0)