From 77d3f40c90ca3c28c8fa2ad3456f49c07a535267 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Wed, 3 Nov 2004 13:29:42 +0000 Subject: * 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 --- lib/webrick/httpauth/digestauth.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/webrick') 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 -- cgit v1.2.3