pyu-ruby-sasl 0.0.3.2 → 0.0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/sasl/digest_md5.rb +10 -10
  2. metadata +3 -15
@@ -50,7 +50,7 @@ module SASL
50
50
  ['response', encode_response(response)]
51
51
  else
52
52
  rspauth_expected = response_value(@nonce, @nc, @cnonce, @qop, '')
53
- p :rspauth_received=>c['rspauth'], :rspauth_expected=>rspauth_expected
53
+ #p :rspauth_received=>c['rspauth'], :rspauth_expected=>rspauth_expected
54
54
  if c['rspauth'] == rspauth_expected
55
55
  ['response', nil]
56
56
  else
@@ -104,12 +104,12 @@ module SASL
104
104
  end
105
105
  challenge[key] = value unless key == ''
106
106
 
107
- p :decode_challenge => challenge
107
+ #p :decode_challenge => challenge
108
108
  challenge
109
109
  end
110
110
 
111
111
  def encode_response(response)
112
- p :encode_response => response
112
+ #p :encode_response => response
113
113
  response.collect do |k,v|
114
114
  if ['username', 'cnonce', 'digest-uri', 'authzid','realm','qop'].include? k
115
115
  v.sub!('\\', '\\\\')
@@ -140,13 +140,13 @@ module SASL
140
140
  ##
141
141
  # Calculate the value for the response field
142
142
  def response_value(nonce, nc, cnonce, qop, realm, a2_prefix='AUTHENTICATE')
143
- p :response_value => {:nonce=>nonce,
144
- :cnonce=>cnonce,
145
- :qop=>qop,
146
- :username=>preferences.username,
147
- :realm=>preferences.realm,
148
- :password=>preferences.password,
149
- :authzid=>preferences.authzid}
143
+ #p :response_value => {:nonce=>nonce,
144
+ # :cnonce=>cnonce,
145
+ # :qop=>qop,
146
+ # :username=>preferences.username,
147
+ # :realm=>preferences.realm,
148
+ # :password=>preferences.password,
149
+ # :authzid=>preferences.authzid}
150
150
  a1_h = h("#{preferences.username}:#{realm}:#{preferences.password}")
151
151
  a1 = "#{a1_h}:#{nonce}:#{cnonce}"
152
152
  if preferences.authzid
metadata CHANGED
@@ -1,14 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pyu-ruby-sasl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 71
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 0
9
- - 3
10
- - 2
11
- version: 0.0.3.2
4
+ prerelease:
5
+ version: 0.0.3.3
12
6
  platform: ruby
13
7
  authors:
14
8
  - Stephan Maka
@@ -55,23 +49,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
55
49
  requirements:
56
50
  - - ">="
57
51
  - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 0
61
52
  version: "0"
62
53
  required_rubygems_version: !ruby/object:Gem::Requirement
63
54
  none: false
64
55
  requirements:
65
56
  - - ">="
66
57
  - !ruby/object:Gem::Version
67
- hash: 3
68
- segments:
69
- - 0
70
58
  version: "0"
71
59
  requirements: []
72
60
 
73
61
  rubyforge_project:
74
- rubygems_version: 1.3.7
62
+ rubygems_version: 1.6.2
75
63
  signing_key:
76
64
  specification_version: 3
77
65
  summary: SASL client library