summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/asn1_lib.c
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2006-03-04 14:55:02 +0100
committerNils Larsch <nils@openssl.org>2006-03-04 14:55:02 +0100
commit6384e46da3ded92c113b429e9650b10e0d1ab92f (patch)
treee6fd7e3cf414c20bc23152839f03b9079dea304d /crypto/asn1/asn1_lib.c
parentMake shorter TS symbols for OpenVMS. (diff)
downloadopenssl-6384e46da3ded92c113b429e9650b10e0d1ab92f.tar.xz
openssl-6384e46da3ded92c113b429e9650b10e0d1ab92f.zip
make some parameters const
Diffstat (limited to 'crypto/asn1/asn1_lib.c')
-rw-r--r--crypto/asn1/asn1_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/asn1/asn1_lib.c b/crypto/asn1/asn1_lib.c
index bb94257cee..69ad869c97 100644
--- a/crypto/asn1/asn1_lib.c
+++ b/crypto/asn1/asn1_lib.c
@@ -340,7 +340,7 @@ int asn1_GetSequence(ASN1_const_CTX *c, long *length)
return(1);
}
-ASN1_STRING *ASN1_STRING_dup(ASN1_STRING *str)
+ASN1_STRING *ASN1_STRING_dup(const ASN1_STRING *str)
{
ASN1_STRING *ret;
@@ -423,7 +423,7 @@ void ASN1_STRING_free(ASN1_STRING *a)
OPENSSL_free(a);
}
-int ASN1_STRING_cmp(ASN1_STRING *a, ASN1_STRING *b)
+int ASN1_STRING_cmp(const ASN1_STRING *a, const ASN1_STRING *b)
{
int i;
@@ -449,7 +449,7 @@ void asn1_add_error(const unsigned char *address, int offset)
ERR_add_error_data(4,"address=",buf1," offset=",buf2);
}
-int ASN1_STRING_length(ASN1_STRING *x)
+int ASN1_STRING_length(const ASN1_STRING *x)
{ return M_ASN1_STRING_length(x); }
void ASN1_STRING_length_set(ASN1_STRING *x, int len)