head 1.3; access; symbols pkgsrc-2017Q1:1.2.0.54 pkgsrc-2017Q1-base:1.2 pkgsrc-2016Q4:1.2.0.52 pkgsrc-2016Q4-base:1.2 pkgsrc-2016Q3:1.2.0.50 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.2.0.48 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.46 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.44 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.2.0.42 pkgsrc-2015Q3-base:1.2 pkgsrc-2015Q2:1.2.0.40 pkgsrc-2015Q2-base:1.2 pkgsrc-2015Q1:1.2.0.38 pkgsrc-2015Q1-base:1.2 pkgsrc-2014Q4:1.2.0.36 pkgsrc-2014Q4-base:1.2 pkgsrc-2014Q3:1.2.0.34 pkgsrc-2014Q3-base:1.2 pkgsrc-2014Q2:1.2.0.32 pkgsrc-2014Q2-base:1.2 pkgsrc-2014Q1:1.2.0.30 pkgsrc-2014Q1-base:1.2 pkgsrc-2013Q4:1.2.0.28 pkgsrc-2013Q4-base:1.2 pkgsrc-2013Q3:1.2.0.26 pkgsrc-2013Q3-base:1.2 pkgsrc-2013Q2:1.2.0.24 pkgsrc-2013Q2-base:1.2 pkgsrc-2013Q1:1.2.0.22 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.20 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.18 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.16 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.2.0.14 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.2.0.12 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.2.0.10 pkgsrc-2011Q3-base:1.2 pkgsrc-2011Q2:1.2.0.8 pkgsrc-2011Q2-base:1.2 pkgsrc-2011Q1:1.2.0.6 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.4 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.2 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.1.0.8 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.6 pkgsrc-2010Q1-base:1.1 pkgsrc-2009Q4:1.1.0.4 pkgsrc-2009Q4-base:1.1 pkgsrc-2009Q3:1.1.0.2 pkgsrc-2009Q3-base:1.1; locks; strict; comment @# @; 1.3 date 2017.04.22.18.23.55; author taca; state dead; branches; next 1.2; commitid tDoWtAVFTjPkJyOz; 1.2 date 2010.09.10.03.29.00; author taca; state Exp; branches; next 1.1; 1.1 date 2009.08.11.14.26.59; author taca; state Exp; branches; next ; desc @@ 1.3 log @Remove ruby18 which is EOL almost 4 years ago. @ text @$NetBSD: patch-dt,v 1.2 2010/09/10 03:29:00 taca Exp $ * r18172: suppress warnings. * r26838: backport the commit from trunk. --- ext/openssl/ossl_x509crl.c.orig 2010-06-21 09:18:59.000000000 +0000 +++ ext/openssl/ossl_x509crl.c @@@@ -91,7 +91,7 @@@@ static VALUE ossl_x509crl_initialize(int argc, VALUE *argv, VALUE self) { BIO *in; - X509_CRL *crl; + X509_CRL *crl, *x = DATA_PTR(self); VALUE arg; if (rb_scan_args(argc, argv, "01", &arg) == 0) { @@@@ -99,10 +99,12 @@@@ ossl_x509crl_initialize(int argc, VALUE } arg = ossl_to_der_if_possible(arg); in = ossl_obj2bio(arg); - crl = PEM_read_bio_X509_CRL(in, (X509_CRL **)&DATA_PTR(self), NULL, NULL); + crl = PEM_read_bio_X509_CRL(in, &x, NULL, NULL); + DATA_PTR(self) = x; if (!crl) { - BIO_reset(in); - crl = d2i_X509_CRL_bio(in, (X509_CRL **)&DATA_PTR(self)); + (void)BIO_reset(in); + crl = d2i_X509_CRL_bio(in, &x); + DATA_PTR(self) = x; } BIO_free(in); if (!crl) ossl_raise(eX509CRLError, NULL); @ 1.2 log @Update ruby18-base to 1.8.7.302 (Ruby 1.8.7 patchlevel 302). Since many changes from previous release, please refer http://www.ruby-lang.org/en/news/2010/08/16/ruby-1-8-7-p302-is-released/. Note: Since all security updates are already in previous package, This update dosen't include any securify fix. @ text @d1 1 a1 1 $NetBSD: patch-dt,v 1.1 2009/08/11 14:26:59 taca Exp $ @ 1.1 log @ * Make Ruby's OpenSSL library compatible with OpenSSL 1.0.0 and later, focusing to PR pkg/41829. * Add comments to patches. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 1 * Use proper funcition assosiated type. d6 1 a6 1 --- ext/openssl/ossl_x509crl.c.orig 2007-06-09 00:02:04.000000000 +0900 d8 7 a14 2 @@@@ -262,7 +262,7 @@@@ ossl_x509crl_get_revoked(VALUE self) VALUE ary, revoked; d16 2 a17 14 GetX509CRL(self, crl); - num = sk_X509_CRL_num(X509_CRL_get_REVOKED(crl)); + num = sk_X509_REVOKED_num(X509_CRL_get_REVOKED(crl)); if (num < 0) { OSSL_Debug("num < 0???"); return rb_ary_new(); @@@@ -270,7 +270,7 @@@@ ossl_x509crl_get_revoked(VALUE self) ary = rb_ary_new2(num); for(i=0; i