diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-03 13:29:42 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-03 13:29:42 +0000 |
commit | 77d3f40c90ca3c28c8fa2ad3456f49c07a535267 (patch) | |
tree | 91b7020ebefc87611e27bb84ae037b777f1364a1 | |
parent | cfc8755fafda7339ed48aba960f01e7fb9c1e560 (diff) | |
download | ruby-77d3f40c90ca3c28c8fa2ad3456f49c07a535267.tar.gz |
* lib/webrick/httpauth/digestauth.rb: use Base64.encode64 to
avoid warnings. [webrickja:128]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/webrick/httpauth/digestauth.rb | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Wed Nov 3 22:24:17 2004 GOTOU Yuuzou <gotoyuzo@notwork.org> + + * lib/webrick/httpauth/digestauth.rb: use Base64.encode64 to + avoid warnings. + Wed Nov 3 17:19:59 2004 Yukihiro Matsumoto <matz@ruby-lang.org> * array.c (rb_ary_uniq_bang): do not push frozen string from hash diff --git a/lib/webrick/httpauth/digestauth.rb b/lib/webrick/httpauth/digestauth.rb index 2b0660ed29..05a6f192c3 100644 --- a/lib/webrick/httpauth/digestauth.rb +++ b/lib/webrick/httpauth/digestauth.rb @@ -254,7 +254,7 @@ module WEBrick def generate_next_nonce(req) now = "%012d" % req.request_time.to_i pk = hexdigest(now, @instance_key)[0,32] - nonce = encode64(now + ":" + pk).chop # it has 60 length of chars. + nonce = Base64.encode64(now + ":" + pk).chop # it has 60 length of chars. nonce end @@ -262,7 +262,7 @@ module WEBrick username = auth_req['username'] nonce = auth_req['nonce'] - pub_time, pk = decode64(nonce).split(":", 2) + pub_time, pk = Base64.decode64(nonce).split(":", 2) if (!pub_time || !pk) error("%s: empty nonce is given", username) return false |