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_ocsp.c | |
parent | 908a62cc0cff25f1861fcb69b70e10a31590e3d2 (diff) | |
download | ruby-openssl-cc36e11b6621281e2f3e700a1b38327adcff2b71.tar.gz |
Merge trunk upstream
Diffstat (limited to 'ext/openssl/ossl_ocsp.c')
-rw-r--r-- | ext/openssl/ossl_ocsp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/openssl/ossl_ocsp.c b/ext/openssl/ossl_ocsp.c index af32d99e..02b67429 100644 --- a/ext/openssl/ossl_ocsp.c +++ b/ext/openssl/ossl_ocsp.c @@ -671,9 +671,9 @@ ossl_ocspbres_add_status(VALUE self, VALUE cid, VALUE status, OCSP_BASICRESP *bs; OCSP_SINGLERESP *single; OCSP_CERTID *id; - int st, rsn; ASN1_TIME *ths, *nxt, *rev; - int error, i, rstatus = 0; + int st, rsn, error, rstatus = 0; + long i; VALUE tmp; st = NUM2INT(status); @@ -682,7 +682,7 @@ ossl_ocspbres_add_status(VALUE self, VALUE cid, VALUE status, /* All ary's members should be X509Extension */ Check_Type(ext, T_ARRAY); for (i = 0; i < RARRAY_LEN(ext); i++) - OSSL_Check_Kind(RARRAY_PTR(ext)[i], cX509Ext); + OSSL_Check_Kind(RARRAY_AREF(ext, i), cX509Ext); } error = 0; @@ -711,7 +711,7 @@ ossl_ocspbres_add_status(VALUE self, VALUE cid, VALUE status, sk_X509_EXTENSION_pop_free(single->singleExtensions, X509_EXTENSION_free); single->singleExtensions = NULL; for(i = 0; i < RARRAY_LEN(ext); i++){ - x509ext = DupX509ExtPtr(RARRAY_PTR(ext)[i]); + x509ext = DupX509ExtPtr(RARRAY_AREF(ext, i)); if(!OCSP_SINGLERESP_add_ext(single, x509ext, -1)){ X509_EXTENSION_free(x509ext); error = 1; |