aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1/t_pkey.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-11-06 23:04:15 +0000
committerRichard Levitte <levitte@openssl.org>2000-11-06 23:04:15 +0000
commit7081f3bd89e465a07f04b12467533e004d617f9a (patch)
treeff3c3ef5dbb1c2826d531c45fa9a4fb622794e28 /crypto/asn1/t_pkey.c
parent0413ba429c9dd4a49668da7c6d696720480aa4f1 (diff)
downloadopenssl-7081f3bd89e465a07f04b12467533e004d617f9a.tar.gz
Constify the RSA parts of the ASN.1 library. Note some ugly casts
that are needed in the ASN.1 macros. Hopefully, we can get rid of those in an elegant way in the future.
Diffstat (limited to 'crypto/asn1/t_pkey.c')
-rw-r--r--crypto/asn1/t_pkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/asn1/t_pkey.c b/crypto/asn1/t_pkey.c
index ae18da96e3..f204326386 100644
--- a/crypto/asn1/t_pkey.c
+++ b/crypto/asn1/t_pkey.c
@@ -74,7 +74,7 @@ static int print(BIO *fp,const char *str,BIGNUM *num,
unsigned char *buf,int off);
#ifndef NO_RSA
#ifndef NO_FP_API
-int RSA_print_fp(FILE *fp, RSA *x, int off)
+int RSA_print_fp(FILE *fp, const RSA *x, int off)
{
BIO *b;
int ret;
@@ -91,7 +91,7 @@ int RSA_print_fp(FILE *fp, RSA *x, int off)
}
#endif
-int RSA_print(BIO *bp, RSA *x, int off)
+int RSA_print(BIO *bp, const RSA *x, int off)
{
char str[128];
const char *s;