diff options
author | naruse <naruse@ruby-lang.org> | 2011-03-24 01:25:17 +0000 |
---|---|---|
committer | naruse <naruse@ruby-lang.org> | 2011-03-24 01:25:17 +0000 |
commit | 7fd91020ced94cf25144b346ebc3e9d58ddc0433 (patch) | |
tree | f693ea785040f2d9a42899d82f9cadfd86ada040 /ext | |
parent | 17a87d8de94ef0bb0173b363a490c71b926539fe (diff) | |
download | ruby-openssl-history-7fd91020ced94cf25144b346ebc3e9d58ddc0433.tar.gz |
* ext/openssl/ossl_ocsp.c (ossl_ocspreq_verify): flags is VALUE,
so it should use NUM2INT.
* ext/openssl/ossl_ocsp.c (ossl_ocspbres_verify): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/openssl/ossl_ocsp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openssl/ossl_ocsp.c b/ext/openssl/ossl_ocsp.c index dc4d4fb..aad669d 100644 --- a/ext/openssl/ossl_ocsp.c +++ b/ext/openssl/ossl_ocsp.c @@ -245,7 +245,7 @@ ossl_ocspreq_verify(int argc, VALUE *argv, VALUE self) rb_scan_args(argc, argv, "21", &certs, &store, &flags); x509st = GetX509StorePtr(store); - flg = NIL_P(flags) ? 0 : INT2NUM(flags); + flg = NIL_P(flags) ? 0 : NUM2INT(flags); x509s = ossl_x509_ary2sk(certs); GetOCSPReq(self, req); result = OCSP_request_verify(req, x509s, x509st, flg); @@ -601,7 +601,7 @@ ossl_ocspbres_verify(int argc, VALUE *argv, VALUE self) rb_scan_args(argc, argv, "21", &certs, &store, &flags); x509st = GetX509StorePtr(store); - flg = NIL_P(flags) ? 0 : INT2NUM(flags); + flg = NIL_P(flags) ? 0 : NUM2INT(flags); x509s = ossl_x509_ary2sk(certs); GetOCSPBasicRes(self, bs); result = OCSP_basic_verify(bs, x509s, x509st, flg) > 0 ? Qtrue : Qfalse; |