Subject: Re: pkg/31405: security/ruby-openssl DragonFly fix (openssl 9.8)
To: None <taca@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org>
From: Takahiro Kambe <taca@back-street.net>
List: pkgsrc-bugs
Date: 09/28/2005 04:30:03
The following reply was made to PR pkg/31405; it has been noted by GNATS.
From: Takahiro Kambe <taca@back-street.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/31405: security/ruby-openssl DragonFly fix (openssl 9.8)
Date: Wed, 28 Sep 2005 13:29:42 +0900 (JST)
In message <20050927160600.E8B5D63B885@narn.netbsd.org>
on Tue, 27 Sep 2005 16:06:00 +0000 (UTC),
xtoddx@gmail.com wrote:
> >Description:
> API change in openssl >= 0.9.8
Would you please test this patch?
--
Takahiro Kambe <taca@back-street.net>
--- ext/openssl/ossl_x509store.c.orig 2004-12-19 17:28:32.000000000 +0900
+++ ext/openssl/ossl_x509store.c
@@ -535,17 +535,11 @@ static VALUE
ossl_x509stctx_set_time(VALUE self, VALUE time)
{
X509_STORE_CTX *store;
+ long t;
- if(NIL_P(time)) {
- GetX509StCtx(self, store);
- store->flags &= ~X509_V_FLAG_USE_CHECK_TIME;
- }
- else {
- long t = NUM2LONG(rb_Integer(time));
-
- GetX509StCtx(self, store);
- X509_STORE_CTX_set_time(store, 0, t);
- }
+ t = NUM2LONG(rb_Integer(time));
+ GetX509StCtx(self, store);
+ X509_STORE_CTX_set_time(store, 0, t);
return time;
}