diff options
author | Zachary Scott <e@zzak.io> | 2015-11-13 11:02:30 +0900 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2015-11-13 11:10:06 +0900 |
commit | cc36e11b6621281e2f3e700a1b38327adcff2b71 (patch) | |
tree | 07ff07acd6797c66a3c599a90c840206e5c81791 /ext/openssl/ossl_x509cert.c | |
parent | 908a62cc0cff25f1861fcb69b70e10a31590e3d2 (diff) | |
download | ruby-openssl-cc36e11b6621281e2f3e700a1b38327adcff2b71.tar.gz |
Merge trunk upstream
Diffstat (limited to 'ext/openssl/ossl_x509cert.c')
-rw-r--r-- | ext/openssl/ossl_x509cert.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/openssl/ossl_x509cert.c b/ext/openssl/ossl_x509cert.c index b1d57bf3..4dafae17 100644 --- a/ext/openssl/ossl_x509cert.c +++ b/ext/openssl/ossl_x509cert.c @@ -663,18 +663,18 @@ ossl_x509_set_extensions(VALUE self, VALUE ary) { X509 *x509; X509_EXTENSION *ext; - int i; + long i; Check_Type(ary, T_ARRAY); /* All ary's members should be X509Extension */ for (i=0; i<RARRAY_LEN(ary); i++) { - OSSL_Check_Kind(RARRAY_PTR(ary)[i], cX509Ext); + OSSL_Check_Kind(RARRAY_AREF(ary, i), cX509Ext); } GetX509(self, x509); sk_X509_EXTENSION_pop_free(x509->cert_info->extensions, X509_EXTENSION_free); x509->cert_info->extensions = NULL; for (i=0; i<RARRAY_LEN(ary); i++) { - ext = DupX509ExtPtr(RARRAY_PTR(ary)[i]); + ext = DupX509ExtPtr(RARRAY_AREF(ary, i)); if (!X509_add_ext(x509, ext, -1)) { /* DUPs ext - FREE it */ X509_EXTENSION_free(ext); |