diff options
author | tb <> | 2018-11-09 03:42:30 +0000 |
---|---|---|
committer | tb <> | 2018-11-09 03:42:30 +0000 |
commit | 5227ed064ec75038c5fd654250b783bbf6fbc695 (patch) | |
tree | fc6b7d9a6661aa5392a7eb6157582d34c7eb49e6 /src/lib/libcrypto/asn1/asn1.h | |
parent | f9cf8173762f5500cc1d282b1069afe2e67358e5 (diff) | |
download | openbsd-5227ed064ec75038c5fd654250b783bbf6fbc695.tar.gz openbsd-5227ed064ec75038c5fd654250b783bbf6fbc695.tar.bz2 openbsd-5227ed064ec75038c5fd654250b783bbf6fbc695.zip |
Add const to the data argument of ASN1_set{,_int}_octetstring().
From Ben L bobsayshilol () live ! co ! uk
ok jsing
Diffstat (limited to 'src/lib/libcrypto/asn1/asn1.h')
-rw-r--r-- | src/lib/libcrypto/asn1/asn1.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h index 0852ce2ef1..f6c6ba8045 100644 --- a/src/lib/libcrypto/asn1/asn1.h +++ b/src/lib/libcrypto/asn1/asn1.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn1.h,v 1.51 2018/11/08 18:13:14 jsing Exp $ */ | 1 | /* $OpenBSD: asn1.h,v 1.52 2018/11/09 03:42:30 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -899,10 +899,10 @@ extern const ASN1_ITEM NETSCAPE_X509_it; | |||
899 | 899 | ||
900 | int ASN1_UNIVERSALSTRING_to_string(ASN1_UNIVERSALSTRING *s); | 900 | int ASN1_UNIVERSALSTRING_to_string(ASN1_UNIVERSALSTRING *s); |
901 | 901 | ||
902 | int ASN1_TYPE_set_octetstring(ASN1_TYPE *a, unsigned char *data, int len); | 902 | int ASN1_TYPE_set_octetstring(ASN1_TYPE *a, const unsigned char *data, int len); |
903 | int ASN1_TYPE_get_octetstring(const ASN1_TYPE *a, unsigned char *data, | 903 | int ASN1_TYPE_get_octetstring(const ASN1_TYPE *a, unsigned char *data, |
904 | int max_len); | 904 | int max_len); |
905 | int ASN1_TYPE_set_int_octetstring(ASN1_TYPE *a, long num, unsigned char *data, | 905 | int ASN1_TYPE_set_int_octetstring(ASN1_TYPE *a, long num, const unsigned char *data, |
906 | int len); | 906 | int len); |
907 | int ASN1_TYPE_get_int_octetstring(const ASN1_TYPE *a, long *num, | 907 | int ASN1_TYPE_get_int_octetstring(const ASN1_TYPE *a, long *num, |
908 | unsigned char *data, int max_len); | 908 | unsigned char *data, int max_len); |