diff options
| -rw-r--r-- | src/otputil.h | 15 | ||||
| -rw-r--r-- | src/widget-otp.c | 51 |
2 files changed, 0 insertions, 66 deletions
diff --git a/src/otputil.h b/src/otputil.h index a937b57..961d4ee 100644 --- a/src/otputil.h +++ b/src/otputil.h | |||
| @@ -134,21 +134,6 @@ otputil_widget_otp( | |||
| 134 | 134 | ||
| 135 | 135 | ||
| 136 | extern int | 136 | extern int |
| 137 | otputil_widget_otp_md4( | ||
| 138 | otputil_config_t * cnf ); | ||
| 139 | |||
| 140 | |||
| 141 | extern int | ||
| 142 | otputil_widget_otp_md5( | ||
| 143 | otputil_config_t * cnf ); | ||
| 144 | |||
| 145 | |||
| 146 | extern int | ||
| 147 | otputil_widget_otp_sha1( | ||
| 148 | otputil_config_t * cnf ); | ||
| 149 | |||
| 150 | |||
| 151 | extern int | ||
| 152 | otputil_widget_otp_usage( | 137 | otputil_widget_otp_usage( |
| 153 | otputil_config_t * cnf ); | 138 | otputil_config_t * cnf ); |
| 154 | 139 | ||
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 | { |
