summaryrefslogtreecommitdiffstats
path: root/ext/openssl
Commit message (Collapse)AuthorAgeFilesLines
...
* * sample/openssl: added. Sample of standard distribution library should benahi2003-09-0412-1650/+0
| | | | | | | | | locate in sample/{module_name}/*. * ext/openssl/sample/*: removed. move to sample/openssl/*. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/lib/net/protocols.rb (SSLIO#ssl_connect): warninggotoyuzo2003-09-021-0/+4
| | | | | | | for skipping server verification. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/ssl.rb: new file; SSL/TLS enhancement for GenericServer.gotoyuzo2003-08-191-5/+10
| | | | | | | | | | | | | | | | | | | | | | * lib/webrick/https.rb: SSLSocket handling is moved to webrick/ssl.rb. * lib/webrick/compat.rb (File::fnmatch): remove old migration code. * lib/webrick/httpserver.rb (HTTPServer#run): ditto. * lib/webrick/server.rb (GenericServer#listen): the body of this method is pull out as Utils::create_lisnteners. * lib/webrick/utils.rb (Utils::create_lisnteners): new method. * lib/webrick/server.rb (GenericServer#start): should not through unknown errors. and refine comments. * ext/openssl/lib/openssl/ssl.rb (SSLServer#accept): should close socket if SSLSocket raises error. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c: sync_close is moved to SSLSocket asgotoyuzo2003-08-186-38/+77
| | | | | | | | | | | | | | | | | | a builtin. * ext/openssl/lib/openssl/buffering.rb (Buffering#close): ditto. * ext/openssl/lib/openssl/buffering.rb (Buffering#puts): should add a return to the tails of each line. * ext/openssl/lib/openssl/ssl.rb: new class OpenSSL::SSL::SSLServer. * ext/openssl/lib/net/protocols.rb (SSLIO#ssl_connect): use sync_close. * ext/openssl/sample/echo_svr.rb: use SSLServer. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/extconf.rb (HAVE_VA_ARGS_MACRO): need to compile.nobu2003-08-171-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/lib/openssl/ssl.rb (SSLSocket#sync_close=): add agotoyuzo2003-08-173-2/+16
| | | | | | | | | | | | | method to specify if the underlying IO will be closed in SSLSocket#close. * ext/openssl/lib/openssl/buffering.rb: add forwarders to setsockopt, getsockopt and fcntl. * ext/openssl/lib/net/protocols.rb: enable sync for SSLSocket. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (w_symbol, w_object): get rid of warnings.nobu2003-08-163-61/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | * re.c (rb_memsearch): ditto. * time.c (time_dump): ditto. * ext/extmk.rb (extmake): not continue making when extconf.rb failed. * ext/openssl/extconf.rb: check __VA_ARGS__ macro more precisely. * ext/openssl/ossl.h: remove version.h dependency. * ext/openssl/ruby_missing.h: ditto. * lib/mkmf.rb (pkg_config): use --libs output except with only-L for other options. [ruby-list:38099] * lib/mkmf.rb (create_makefile): separate rule for static library from shared object. * win32/Makefile.sub, bcc32/Makefile.sub, wince/Makefile.sub: define exec_prefix and libdir. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/lib/openssl/buffering.rb: increase BLOCK_SIZEgotoyuzo2003-08-102-1/+2
| | | | | | | | | | from 1k to 16k bytes. [ruby-talk:78603] * ext/openssl/ossl_ssl.c (ossl_sslctx_s_alloc): enable partial write to allow interruption in SSLSocket#sysread. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (pkg_config): get configuration by pkg-config. [new]nobu2003-08-021-8/+1
| | | | | | | * ext/openssl/extconf.rb: use pkg_config. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* *** empty log message ***nobu2003-08-011-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/extconf.rb: should replace literally.nobu2003-08-011-3/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/extconf.rb: move gmake specific featuresgotoyuzo2003-07-311-26/+26
| | | | | | | into GNUmakefile. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c (ossl_sslctx_initialize): should initializegotoyuzo2003-07-301-0/+5
| | | | | | | instance variables. [ruby-talk:77362] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/lib/net/https.rb (use_ssl=): raise ProtocolError ifgotoyuzo2003-07-281-1/+10
| | | | | | | connection is set up already. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/extconf.rb: check again after pkg-config for MinGW oneban2003-07-281-1/+3
| | | | | | | Cygwin. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/extconf.rb: better support MinGW. addeban2003-07-271-10/+15
| | | | | | | dir_config("kerberos") and with_config("pkg-config). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_fdopen): set errno if it's zero on win32 platforms.usa2003-07-261-1/+1
| | | | | | | | | | * ext/openssl/ossl_ssl.c (TO_SOCKET): define special version when _WIN32 is defined. this is ruby's problem, not OpenSSL. * win32/win32.c: remove some old comments. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl.h: fix comment.gotoyuzo2003-07-252-3/+4
| | | | | | | | * ext/openssl/ossl.c (ossl_debug): should enable if no va-args macro supplied. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/extconf.rb: refine va-args macro detection.gotoyuzo2003-07-251-1/+1
| | | | | | | [ruby-talk:76983] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c (ossl_ssl_setup): need to pass the realusa2003-07-251-1/+7
| | | | | | | socket to SSL_get_fd on native win32 platforms. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Added samples.nahi2003-07-251-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/sample: Add samples.nahi2003-07-254-0/+1217
| | | | | | | | | | | | - cert2text.rb: Dump certificate file as text. - crlstore.rb: CRL store implementation. Fetch CRL via HTTP when http-access2 is installed. - certstore.rb: Certificate store implementation. - cert_store_view.rb: Certificate store viewer with FXRuby. Uses c_rehash.rb, crlstore.rb and certstore.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/extconf.rb: add check for BN_rand_range() andgotoyuzo2003-07-253-2/+21
| | | | | | | | | | | | | | | | | | BN_pseudo_rand_range(). * ext/openssl/ossl_bn.c (ossl_bn_s_rand_range): should raise NotImplementedError if BN_rand_range() wan not defined. * ext/openssl/ossl_bn.c (ossl_bn_s_pseudo_rand_range): should raise NotImplementedError if BN_pseudo_rand_range() wan not defined. * ext/openssl/ossl_pkcs7.c (ossl_pkcs7_s_encrypt): avoid compiler warning for OpenSSL-0.9.6. * ext/openssl/ossl_pkcs7.c (ossl_pkcs7si_initialize): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/extconf.rb: add check for libsocket and libnsl.gotoyuzo2003-07-241-19/+18
| | | | | | | * ext/openssl/extconf.rb: use pkg-config to build CFLAGS and LDFLAGS. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/extconf.rb: add check for win32 OpenSSL libraries.gotoyuzo2003-07-242-12/+8
| | | | | | | | | * ext/openssl/extconf.rb: add check for __VA_AEGS__. * ext/openssl/ossl.h: avoid non C99 compiler errors. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/extconf.rb: revert use of dir_config.eban2003-07-241-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ssl.h: undef X509_NAME and PKCS7_SIGNER_INFO togotoyuzo2003-07-232-3/+5
| | | | | | | | | | | | | | avoid name confliction on mswin32. * ext/openssl/ssl.c (ossl_protect_obj2bio): avoid VC++ warnings in function prototype. * ext/openssl/ssl.c (ossl_protect_membio2str): ditto. * ext/openssl/ssl.c (ossl_protect_x509_ary2sk): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Cut check for OpenSSL versionmichal2003-07-231-14/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl: imported.gotoyuzo2003-07-2362-0/+12557
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e