diff options
Diffstat (limited to 'src/widget-otp.c')
| -rw-r--r-- | src/widget-otp.c | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/widget-otp.c b/src/widget-otp.c index 079f035..02a8d41 100644 --- a/src/widget-otp.c +++ b/src/widget-otp.c | |||
| @@ -227,57 +227,6 @@ otputil_widget_otp( | |||
| 227 | 227 | ||
| 228 | 228 | ||
| 229 | int | 229 | int |
| 230 | otputil_widget_otp_md4( | ||
| 231 | otputil_config_t * cnf ) | ||
| 232 | { | ||
| 233 | int rc; | ||
| 234 | int hash; | ||
| 235 | assert(cnf != NULL); | ||
| 236 | hash = OTPUTIL_MD_MD4; | ||
| 237 | if ((rc = otputil_set_param(NULL, OTPUTIL_OPT_OTP_HASH, &hash)) == -1) | ||
| 238 | { | ||
| 239 | fprintf(stderr, "%s: otputil_set_param(OTP_HASH): %s\n", cnf->prog_name, otputil_err2string(rc)); | ||
| 240 | return(1); | ||
| 241 | }; | ||
| 242 | return(otputil_widget_otp(cnf)); | ||
| 243 | } | ||
| 244 | |||
| 245 | |||
| 246 | int | ||
| 247 | otputil_widget_otp_md5( | ||
| 248 | otputil_config_t * cnf ) | ||
| 249 | { | ||
| 250 | int rc; | ||
| 251 | int hash; | ||
| 252 | assert(cnf != NULL); | ||
| 253 | hash = OTPUTIL_MD_MD5; | ||
| 254 | if ((rc = otputil_set_param(NULL, OTPUTIL_OPT_OTP_HASH, &hash)) == -1) | ||
| 255 | { | ||
| 256 | fprintf(stderr, "%s: otputil_set_param(OTP_HASH): %s\n", cnf->prog_name, otputil_err2string(rc)); | ||
| 257 | return(1); | ||
| 258 | }; | ||
| 259 | return(otputil_widget_otp(cnf)); | ||
| 260 | } | ||
| 261 | |||
| 262 | |||
| 263 | int | ||
| 264 | otputil_widget_otp_sha1( | ||
| 265 | otputil_config_t * cnf ) | ||
| 266 | { | ||
| 267 | int rc; | ||
| 268 | int hash; | ||
| 269 | assert(cnf != NULL); | ||
| 270 | hash = OTPUTIL_MD_SHA1; | ||
| 271 | if ((rc = otputil_set_param(NULL, OTPUTIL_OPT_OTP_HASH, &hash)) == -1) | ||
| 272 | { | ||
| 273 | fprintf(stderr, "%s: otputil_set_param(OTP_HASH): %s\n", cnf->prog_name, otputil_err2string(rc)); | ||
| 274 | return(1); | ||
| 275 | }; | ||
| 276 | return(otputil_widget_otp(cnf)); | ||
| 277 | } | ||
| 278 | |||
| 279 | |||
| 280 | int | ||
| 281 | otputil_widget_otp_usage( | 230 | otputil_widget_otp_usage( |
| 282 | otputil_config_t * cnf ) | 231 | otputil_config_t * cnf ) |
| 283 | { | 232 | { |
