aboutsummaryrefslogtreecommitdiffstats
path: root/ossl_ssl.c
diff options
context:
space:
mode:
authorMichal Rokos <m.rokos@sh.cvut.cz>2002-06-11 00:48:37 +0000
committerMichal Rokos <m.rokos@sh.cvut.cz>2002-06-11 00:48:37 +0000
commit5b064ff9925f1bd3c9b76b7102788645546d1dfa (patch)
treeda449acc1e40d223eab8942d1f91d96e709abee8 /ossl_ssl.c
parentc2f2861d25a515d04ae2ffcfd440af008ab0413c (diff)
downloadruby-openssl-history-5b064ff9925f1bd3c9b76b7102788645546d1dfa.tar.gz
New debug interface that can be directed from Ruby-space
Diffstat (limited to 'ossl_ssl.c')
-rw-r--r--ossl_ssl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ossl_ssl.c b/ossl_ssl.c
index bb94a72..ddb17c5 100644
--- a/ossl_ssl.c
+++ b/ossl_ssl.c
@@ -32,7 +32,10 @@
#include "ossl.h"
#include <rubysig.h>
#include <rubyio.h>
-#include <unistd.h> /* for read(), and write() */
+
+#if defined(HAVE_UNISTD_H)
+# include <unistd.h> /* for read(), and write() */
+#endif
#define numberof(ary) (sizeof(ary)/sizeof((ary)[0]))
@@ -209,7 +212,7 @@ ssl_ctx_setup(VALUE self)
}
if ((!SSL_CTX_load_verify_locations(p->ctx, ca_file, ca_path) ||
!SSL_CTX_set_default_verify_paths(p->ctx))) {
- OSSL_Warning("can't set verify locations");
+ rb_warning("can't set verify locations");
}
val = ssl_get_verify_mode(self);