aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGOTOU Yuuzou <gotoyuzo@notwork.org>2002-12-09 11:50:27 +0000
committerGOTOU Yuuzou <gotoyuzo@notwork.org>2002-12-09 11:50:27 +0000
commitad2da96f58be5446b920f554d2ce5c7f8529411c (patch)
tree70dcc5008cf62a0fd606dd12eff89362997448fb
parent1200310d36d524a7974299f177ec6251d6b02103 (diff)
downloadruby-openssl-history-ad2da96f58be5446b920f554d2ce5c7f8529411c.tar.gz
* ossl.c: use ruby_unsetenv() instead of unsetenv().
* ssl.c: the return value of SSL_read/SSL_write is int (not size_t). This fix is suggested by matz. ([ruby-list:36721])
-rw-r--r--ChangeLog5
-rw-r--r--ossl.c2
-rw-r--r--ossl_ssl.c6
3 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 54322e4..1f19d00 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon, 9 Dec 2202 20:21:32 -0900 -- GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * ossl.c: use ruby_unsetenv() instead of unsetenv().
+ * ssl.c: the return value of SSL_read/SSL_write is int (not size_t).
+ This fix is suggested by matz. ([ruby-list:36721])
+
Mon, 28 Oct 2002 10:39:43 +0100 -- Michal Rokos <m.rokos@sh.cvut.cz>
* LICENCE: update to latest Ruby's
* extconf.rb: fix to make it work under Ruby 1.7.3
diff --git a/ossl.c b/ossl.c
index 596183f..2c573bd 100644
--- a/ossl.c
+++ b/ossl.c
@@ -89,7 +89,7 @@ asn1time_to_time(ASN1_UTCTIME *time)
tz = getenv("TZ");
putenv("TZ=UTC0");
t = mktime(&tm);
- if(!tz) unsetenv("TZ");
+ if(!tz) ruby_unsetenv("TZ");
else {
snprintf(env, sizeof(env), "TZ=%s", tz);
putenv(env);
diff --git a/ossl_ssl.c b/ossl_ssl.c
index 5836813..316ad7e 100644
--- a/ossl_ssl.c
+++ b/ossl_ssl.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2000-2002 GOTOU YUUZOU <gotoyuzo@notwork.org>
+ * Copyright (c) 2000-2002 GOTOU Yuuzou <gotoyuzo@notwork.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -343,7 +343,7 @@ static VALUE
ssl_read(VALUE self, VALUE len)
{
ssl_st *p;
- size_t ilen, nread = 0;
+ int ilen, nread = 0;
VALUE str;
OpenFile *fptr;
@@ -383,7 +383,7 @@ static VALUE
ssl_write(VALUE self, VALUE str)
{
ssl_st *p;
- size_t nwrite = 0;
+ int nwrite = 0;
OpenFile *fptr;
FILE *fp;