vacman_controller 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fce504ca9d9b8547daf3e1128c4af63031fc2c6afaf1d3be4168d1f5a1b3c576
|
4
|
+
data.tar.gz: 0b132f6163d3e08661c395afc34ca3aa8224ec5baf109a81c753d1ce723aeca7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87fe5eccf3e5209b802f492ac4446db85d3746e97c3c3a4b5edb7ac2cfaab6ecf3838fd6031ee9dd57a5601207766b39f212de54c7b3b8559a7158cbda081e76
|
7
|
+
data.tar.gz: 3d02b3b57c7f790b6aeb5e54e132ee57faea4c399af0a94aa6b8a4d2f764dced873bce73cad10371fd1248f5db50952e7a48dfc99de8950f421183e8f343df87
|
@@ -32,6 +32,7 @@ void Init_vacman_low_level(void) {
|
|
32
32
|
rb_define_singleton_method(lowlevel, "get_token_property", vacman_token_get_property, 2);
|
33
33
|
rb_define_singleton_method(lowlevel, "set_token_property", vacman_token_set_property, 3);
|
34
34
|
rb_define_singleton_method(lowlevel, "set_token_pin", vacman_token_set_pin, 2);
|
35
|
+
rb_define_singleton_method(lowlevel, "reset!", vacman_token_reset_info, 1);
|
35
36
|
rb_define_singleton_method(lowlevel, "verify_password", vacman_token_verify_password, 2);
|
36
37
|
rb_define_singleton_method(lowlevel, "generate_password", vacman_token_generate_password, 1);
|
37
38
|
|
@@ -164,6 +164,27 @@ VALUE vacman_token_set_pin(VALUE module, VALUE token, VALUE pin) {
|
|
164
164
|
}
|
165
165
|
|
166
166
|
|
167
|
+
/*
|
168
|
+
* Resets the token error count and the time window shift.
|
169
|
+
*/
|
170
|
+
VALUE vacman_token_reset_info(VALUE module, VALUE token) {
|
171
|
+
TDigipassBlob dpdata;
|
172
|
+
|
173
|
+
vacman_rbhash_to_digipass(token, &dpdata);
|
174
|
+
|
175
|
+
aat_int32 result = AAL2ResetTokenInfo(&dpdata, &g_KernelParms);
|
176
|
+
|
177
|
+
vacman_digipass_to_rbhash(&dpdata, token);
|
178
|
+
|
179
|
+
if (result == 0) {
|
180
|
+
return Qtrue;
|
181
|
+
} else {
|
182
|
+
vacman_library_error("AAL2ResetTokenInfo", result);
|
183
|
+
return Qnil;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
|
187
|
+
|
167
188
|
/*
|
168
189
|
* Verifies the given OTP against the given token.
|
169
190
|
*/
|
@@ -33,6 +33,7 @@ VALUE vacman_token_get_property_names();
|
|
33
33
|
VALUE vacman_token_get_property(VALUE module, VALUE token, VALUE property);
|
34
34
|
VALUE vacman_token_set_property(VALUE module, VALUE token, VALUE property, VALUE rbval);
|
35
35
|
VALUE vacman_token_set_pin(VALUE module, VALUE token, VALUE pin);
|
36
|
+
VALUE vacman_token_reset_info(VALUE module, VALUE token);
|
36
37
|
VALUE vacman_token_verify_password(VALUE module, VALUE token, VALUE password);
|
37
38
|
VALUE vacman_token_generate_password(VALUE module, VALUE token);
|
38
39
|
|
@@ -121,6 +121,13 @@ module VacmanController
|
|
121
121
|
end
|
122
122
|
|
123
123
|
|
124
|
+
# Resets error count and time window
|
125
|
+
#
|
126
|
+
def reset!
|
127
|
+
VacmanController::LowLevel.reset!(@token_hash)
|
128
|
+
end
|
129
|
+
|
130
|
+
|
124
131
|
####################################################################
|
125
132
|
##### Properties Management
|
126
133
|
####################################################################
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vacman_controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcus Lankenau
|
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
137
|
version: '0'
|
138
138
|
requirements: []
|
139
139
|
rubyforge_project:
|
140
|
-
rubygems_version: 2.
|
140
|
+
rubygems_version: 2.7.6.2
|
141
141
|
signing_key:
|
142
142
|
specification_version: 4
|
143
143
|
summary: Ruby layer to access VASCO Vacman Controller functions
|