WiKID 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/WiKID.rb +13 -9
- metadata +5 -5
data/lib/WiKID.rb
CHANGED
@@ -79,7 +79,7 @@ module WiKID
|
|
79
79
|
=end
|
80
80
|
@@DEBUG = false
|
81
81
|
|
82
|
-
@@VERSION = "3.0"
|
82
|
+
@@VERSION = "3.0.1"
|
83
83
|
|
84
84
|
public
|
85
85
|
|
@@ -173,10 +173,14 @@ module WiKID
|
|
173
173
|
=end
|
174
174
|
def close()
|
175
175
|
_dprint("Closing Auth_WiKID connection ...")
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
176
|
+
unless $sslsocket.nil?
|
177
|
+
unless $sslsocket.closed?
|
178
|
+
$sslsocket.puts("QUIT");
|
179
|
+
$sslsocket.flush
|
180
|
+
$sslsocket.close
|
181
|
+
end
|
182
|
+
$sslsocket = nil
|
183
|
+
@socket.shutdown
|
180
184
|
end
|
181
185
|
@isConnected = false
|
182
186
|
end
|
@@ -255,9 +259,9 @@ module WiKID
|
|
255
259
|
_dprint("startConnection() called.");
|
256
260
|
valid_tag = "ACCEPT";
|
257
261
|
# The client initiates the transaction
|
258
|
-
mesg = "CONNECT: WiKID Ruby
|
259
|
-
mesg =
|
260
|
-
|
262
|
+
mesg = "CONNECT: WiKID Ruby Client v#{@@VERSION}"
|
263
|
+
mesg = "<transaction> <type>1</type> <data> <client-string>wClient Ruby #{@@VERSION}</client-string> <server-string>null</server-string> <result>null</result> </data> </transaction>
|
264
|
+
"
|
261
265
|
|
262
266
|
xml = _request(mesg);
|
263
267
|
result = XPath.first(xml, '//data/result')
|
@@ -375,7 +379,7 @@ module WiKID
|
|
375
379
|
if (!passcode.nil? && passcode.length > 0)
|
376
380
|
_dprint("Adding new device ...")
|
377
381
|
command = "ADDREGUSER"
|
378
|
-
type =
|
382
|
+
type = 4;
|
379
383
|
passcodeline = "<passcode>#{passcode}</passcode>";
|
380
384
|
format = "add";
|
381
385
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: WiKID
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Haygood
|
@@ -9,12 +9,12 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-04-13 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
16
|
description:
|
17
|
-
email: ghaygood @nospam@ wikidsystems
|
17
|
+
email: ghaygood @nospam@ wikidsystems(dot)com
|
18
18
|
executables: []
|
19
19
|
|
20
20
|
extensions: []
|
@@ -31,7 +31,7 @@ files:
|
|
31
31
|
- share/data
|
32
32
|
- test/ts_wikid.rb
|
33
33
|
has_rdoc: true
|
34
|
-
homepage: http://
|
34
|
+
homepage: http://sourceforge.net/projects/wikid-twofactor
|
35
35
|
post_install_message:
|
36
36
|
rdoc_options: []
|
37
37
|
|
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
52
|
requirements: []
|
53
53
|
|
54
54
|
rubyforge_project: wikid
|
55
|
-
rubygems_version: 1.0
|
55
|
+
rubygems_version: 1.1.0
|
56
56
|
signing_key:
|
57
57
|
specification_version: 2
|
58
58
|
summary: A network client module for the WiKID Strong Authentication system
|