ruby-changes:19123
From: naruse <ko1@a...>
Date: Thu, 24 Mar 2011 10:25:42 +0900 (JST)
Subject: [ruby-changes:19123] Ruby:r31162 (trunk): * ext/openssl/ossl_ocsp.c (ossl_ocspreq_verify): flags is VALUE,
naruse 2011-03-24 10:25:17 +0900 (Thu, 24 Mar 2011) New Revision: 31162 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31162 Log: * 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. Modified files: trunk/ChangeLog trunk/ext/openssl/ossl_ocsp.c Index: ChangeLog =================================================================== --- ChangeLog (revision 31161) +++ ChangeLog (revision 31162) @@ -1,3 +1,10 @@ +Thu Mar 24 09:56:19 2011 NARUSE, Yui <naruse@r...> + + * 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. + Wed Mar 23 21:09:29 2011 Tanaka Akira <akr@f...> * ext/readline/readline.c: parenthesize macro arguments. Index: ext/openssl/ossl_ocsp.c =================================================================== --- ext/openssl/ossl_ocsp.c (revision 31161) +++ ext/openssl/ossl_ocsp.c (revision 31162) @@ -245,7 +245,7 @@ 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 @@ 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/