diff options
author | Ben Laurie <ben@openssl.org> | 1999-04-17 21:25:43 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-04-17 21:25:43 +0000 |
commit | e778802f53c8d47e96a6e4cbc776eb6e1d4c461a (patch) | |
tree | 719d4dd0fc69b355c6d8329af1f90b2c4f603548 /crypto/asn1/t_pkey.c | |
parent | d77b3054cd87c2b13fa0169931f74b8e0dac5252 (diff) |
Massive constification.
Diffstat (limited to 'crypto/asn1/t_pkey.c')
-rw-r--r-- | crypto/asn1/t_pkey.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/crypto/asn1/t_pkey.c b/crypto/asn1/t_pkey.c index bc518d59a2..8a960f9cb2 100644 --- a/crypto/asn1/t_pkey.c +++ b/crypto/asn1/t_pkey.c @@ -75,7 +75,7 @@ */ #ifndef NOPROTO -static int print(BIO *fp,char *str,BIGNUM *num, +static int print(BIO *fp,const char *str,BIGNUM *num, unsigned char *buf,int off); #else static int print(); @@ -108,7 +108,8 @@ BIO *bp; RSA *x; int off; { - char str[128],*s; + char str[128]; + const char *s; unsigned char *m=NULL; int i,ret=0; @@ -231,13 +232,14 @@ err: static int print(bp,number,num,buf,off) BIO *bp; -char *number; +const char *number; BIGNUM *num; unsigned char *buf; int off; { int n,i; - char str[128],*neg; + char str[128]; + const char *neg; if (num == NULL) return(1); neg=(num->neg)?"-":""; |