Update to 0.2.0-pre2.
This commit is contained in:
parent
a3f84a35f0
commit
34f868ff07
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82472
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= openssl
|
||||
PORTVERSION= 0.2.0.p0
|
||||
PORTVERSION= 0.2.0.p2
|
||||
CATEGORIES= security ruby
|
||||
MASTER_SITES= http://savannah.nongnu.org/download/rubypki/
|
||||
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
||||
|
@ -1 +1 @@
|
||||
MD5 (ruby/ossl-0.2.0-pre0.tgz) = fd2466bf1535fd9e5113c1b37979b9a1
|
||||
MD5 (ruby/ossl-0.2.0-pre2.tgz) = 9cf162b1e53c464300ec9b84b43e1d6b
|
||||
|
@ -1,42 +0,0 @@
|
||||
Index: ossl.c
|
||||
===================================================================
|
||||
RCS file: /cvsroot/rubypki/ossl2/ossl.c,v
|
||||
retrieving revision 1.23
|
||||
retrieving revision 1.24
|
||||
diff -u -r1.23 -r1.24
|
||||
--- ossl.c 21 Feb 2003 14:14:29 -0000 1.23
|
||||
+++ ossl.c 24 Feb 2003 16:23:10 -0000 1.24
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
- * $Id: ossl.c,v 1.23 2003/02/21 14:14:29 majkl Exp $
|
||||
+ * $Id: ossl.c,v 1.24 2003/02/24 16:23:10 majkl Exp $
|
||||
* 'OpenSSL for Ruby' project
|
||||
* Copyright (C) 2001-2002 Michal Rokos <m.rokos@sh.cvut.cz>
|
||||
* All rights reserved.
|
||||
@@ -44,7 +44,8 @@
|
||||
asn1time_to_time(ASN1_TIME *time)
|
||||
{
|
||||
struct tm tm;
|
||||
-
|
||||
+ VALUE argv[6];
|
||||
+
|
||||
if (!time) {
|
||||
ossl_raise(rb_eTypeError, "ASN1_TIME is NULL!");
|
||||
}
|
||||
@@ -64,8 +65,16 @@
|
||||
default:
|
||||
ossl_raise(rb_eTypeError, "unknown time format");
|
||||
}
|
||||
- return rb_time_new(mktime(&tm) - timezone, 0);
|
||||
+// return rb_time_new(mktime(&tm) - timezone, 0);
|
||||
+ argv[0] = INT2NUM(tm.tm_year);
|
||||
+ argv[1] = INT2NUM(tm.tm_mon+1);
|
||||
+ argv[2] = INT2NUM(tm.tm_mday);
|
||||
+ argv[3] = INT2NUM(tm.tm_hour);
|
||||
+ argv[4] = INT2NUM(tm.tm_min);
|
||||
+ argv[5] = INT2NUM(tm.tm_sec);
|
||||
+
|
||||
+ return rb_funcall2(rb_cTime, rb_intern("utc"), 6, argv);
|
||||
}
|
||||
|
||||
/*
|
Loading…
Reference in New Issue
Block a user