aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl.h
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-08-20 21:09:54 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-08-26 02:12:36 +0900
commita3311831a1b16beea04cd716769def7bd9887bd3 (patch)
treeaac4142c17eb7249a40028fb1378955820ef4dda /ext/openssl/ossl.h
parentc3825dd99c1e9c21e01d6bad59e88569f31ff4ef (diff)
downloadruby-openssl-a3311831a1b16beea04cd716769def7bd9887bd3.tar.gz
asn1: constify functions
In order to avoid compiler warnings when build with OpenSSL 1.1.0.
Diffstat (limited to 'ext/openssl/ossl.h')
-rw-r--r--ext/openssl/ossl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h
index c15a25bc..0ba64e65 100644
--- a/ext/openssl/ossl.h
+++ b/ext/openssl/ossl.h
@@ -107,9 +107,9 @@ int string2hex(const unsigned char *, int, char **, int *);
STACK_OF(X509) *ossl_x509_ary2sk0(VALUE);
STACK_OF(X509) *ossl_x509_ary2sk(VALUE);
STACK_OF(X509) *ossl_protect_x509_ary2sk(VALUE,int*);
-VALUE ossl_x509_sk2ary(STACK_OF(X509) *certs);
-VALUE ossl_x509crl_sk2ary(STACK_OF(X509_CRL) *crl);
-VALUE ossl_x509name_sk2ary(STACK_OF(X509_NAME) *names);
+VALUE ossl_x509_sk2ary(const STACK_OF(X509) *certs);
+VALUE ossl_x509crl_sk2ary(const STACK_OF(X509_CRL) *crl);
+VALUE ossl_x509name_sk2ary(const STACK_OF(X509_NAME) *names);
VALUE ossl_buf2str(char *buf, int len);
#define ossl_str_adjust(str, p) \
do{\