diff options
author | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-06-11 00:48:37 +0000 |
---|---|---|
committer | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-06-11 00:48:37 +0000 |
commit | 5b064ff9925f1bd3c9b76b7102788645546d1dfa (patch) | |
tree | da449acc1e40d223eab8942d1f91d96e709abee8 /ossl_ssl.c | |
parent | c2f2861d25a515d04ae2ffcfd440af008ab0413c (diff) | |
download | ruby-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.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |