Skip to content

Commit 061fd36

Browse files
committed
* ext/openssl/ossl_ssl_session.c (ossl_ssl_session_initialize):
Add a null check for ssl; submitted by akira yamada in [ruby-dev:34950]. * ext/openssl/ossl_ssl.c (Init_ossl_ssl): Define OP_NO_TICKET if SSL_OP_NO_TICKET is present; submitted by akira yamada in [ruby-dev:34944]. * test/openssl/test_ssl.rb (OpenSSL#test_server_session): Add a workaround for the case where OpenSSL is configured with --enable-tlsext; submitted by akira yamada in [ruby-dev:34944]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 70bde7a commit 061fd36

36 files changed

+87
-49
lines changed

ChangeLog

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
Fri Jun 6 17:04:56 2008 Akinori MUSHA <knu@iDaemons.org>
2+
3+
* ext/openssl/ossl_ssl_session.c (ossl_ssl_session_initialize):
4+
Add a null check for ssl; submitted by akira yamada
5+
in [ruby-dev:34950].
6+
7+
* ext/openssl/ossl_ssl.c (Init_ossl_ssl): Define OP_NO_TICKET if
8+
SSL_OP_NO_TICKET is present; submitted by akira yamada
9+
in [ruby-dev:34944].
10+
11+
* test/openssl/test_ssl.rb (OpenSSL#test_server_session): Add a
12+
workaround for the case where OpenSSL is configured with
13+
--enable-tlsext; submitted by akira yamada in [ruby-dev:34944].
14+
115
Fri Jun 6 16:58:23 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
216

317
* ext/iconv/iconv.c (iconv_iconv): fix for length argument and now

ext/openssl/ossl_ssl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,6 +1466,9 @@ Init_ossl_ssl()
14661466
ossl_ssl_def_const(OP_NO_SSLv2);
14671467
ossl_ssl_def_const(OP_NO_SSLv3);
14681468
ossl_ssl_def_const(OP_NO_TLSv1);
1469+
#if defined(SSL_OP_NO_TICKET)
1470+
ossl_ssl_def_const(OP_NO_TICKET);
1471+
#endif
14691472
ossl_ssl_def_const(OP_PKCS1_CHECK_1);
14701473
ossl_ssl_def_const(OP_PKCS1_CHECK_2);
14711474
ossl_ssl_def_const(OP_NETSCAPE_CA_DN_BUG);

ext/openssl/ossl_ssl_session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static VALUE ossl_ssl_session_initialize(VALUE self, VALUE arg1)
4747

4848
Data_Get_Struct(arg1, SSL, ssl);
4949

50-
if ((ctx = SSL_get1_session(ssl)) == NULL)
50+
if (!ssl || (ctx = SSL_get1_session(ssl)) == NULL)
5151
ossl_raise(eSSLSession, "no session available");
5252
} else {
5353
BIO *in = ossl_obj2bio(arg1);

lib/cgi/session.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def create_new_id
230230
# session_path:: the path for which this session applies. Defaults
231231
# to the directory of the CGI script.
232232
#
233-
# +option+ is also passed on to the session storage class initialiser; see
233+
# +option+ is also passed on to the session storage class initializer; see
234234
# the documentation for each session storage class for the options
235235
# they support.
236236
#
@@ -357,7 +357,7 @@ class FileStore
357357
# characters; automatically generated session ids observe
358358
# this requirement.
359359
#
360-
# +option+ is a hash of options for the initialiser. The
360+
# +option+ is a hash of options for the initializer. The
361361
# following options are recognised:
362362
#
363363
# tmpdir:: the directory to use for storing the FileStore

lib/cgi/session/pstore.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class PStore
3030
# characters; automatically generated session ids observe
3131
# this requirement.
3232
#
33-
# +option+ is a hash of options for the initialiser. The
33+
# +option+ is a hash of options for the initializer. The
3434
# following options are recognised:
3535
#
3636
# tmpdir:: the directory to use for storing the PStore

lib/delegate.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def dup
250250
# your class.
251251
#
252252
# class MyClass < DelegateClass( ClassToDelegateTo ) # Step 1
253-
# def initiaize
253+
# def initialize
254254
# super(obj_of_ClassToDelegateTo) # Step 2
255255
# end
256256
# end

lib/erb.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ class ERB
656656
#
657657
# def build
658658
# b = binding
659-
# # create and run templates, filling member data variebles
659+
# # create and run templates, filling member data variables
660660
# ERB.new(<<-'END_PRODUCT'.gsub(/^\s+/, ""), 0, "", "@product").result b
661661
# <%= PRODUCT[:name] %>
662662
# <%= PRODUCT[:desc] %>

lib/forwardable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# @q = [ ] # prepare delegate object
3939
# end
4040
#
41-
# # setup prefered interface, enq() and deq()...
41+
# # setup preferred interface, enq() and deq()...
4242
# def_delegator :@q, :push, :enq
4343
# def_delegator :@q, :shift, :deq
4444
#

lib/irb/extend-command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def self.install_extend_commands
112112
end
113113
end
114114

115-
# aliases = [commans_alias, flag], ...
115+
# aliases = [commands_alias, flag], ...
116116
def self.def_extend_command(cmd_name, cmd_class, load_file = nil, *aliases)
117117
case cmd_class
118118
when Symbol

lib/irb/help.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# irb/help.rb - print usase module
2+
# irb/help.rb - print usage module
33
# $Release Version: 0.9.5$
44
# $Revision$
55
# $Date$

0 commit comments

Comments
 (0)