From ff976aa653c83c8bd56d71360e840b7aab020d63 Mon Sep 17 00:00:00 2001 From: "David M. Syzdek" Date: Tue, 17 Jan 2023 09:38:39 -0900 Subject: otputil: removing unused functions --- src/otputil.h | 15 --------------- src/widget-otp.c | 51 --------------------------------------------------- 2 files changed, 66 deletions(-) (limited to 'src') diff --git a/src/otputil.h b/src/otputil.h index a937b57..961d4ee 100644 --- a/src/otputil.h +++ b/src/otputil.h @@ -133,21 +133,6 @@ otputil_widget_otp( otputil_config_t * cnf ); -extern int -otputil_widget_otp_md4( - otputil_config_t * cnf ); - - -extern int -otputil_widget_otp_md5( - otputil_config_t * cnf ); - - -extern int -otputil_widget_otp_sha1( - otputil_config_t * cnf ); - - extern int otputil_widget_otp_usage( otputil_config_t * cnf ); 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 @@ -226,57 +226,6 @@ otputil_widget_otp( } -int -otputil_widget_otp_md4( - otputil_config_t * cnf ) -{ - int rc; - int hash; - assert(cnf != NULL); - hash = OTPUTIL_MD_MD4; - if ((rc = otputil_set_param(NULL, OTPUTIL_OPT_OTP_HASH, &hash)) == -1) - { - fprintf(stderr, "%s: otputil_set_param(OTP_HASH): %s\n", cnf->prog_name, otputil_err2string(rc)); - return(1); - }; - return(otputil_widget_otp(cnf)); -} - - -int -otputil_widget_otp_md5( - otputil_config_t * cnf ) -{ - int rc; - int hash; - assert(cnf != NULL); - hash = OTPUTIL_MD_MD5; - if ((rc = otputil_set_param(NULL, OTPUTIL_OPT_OTP_HASH, &hash)) == -1) - { - fprintf(stderr, "%s: otputil_set_param(OTP_HASH): %s\n", cnf->prog_name, otputil_err2string(rc)); - return(1); - }; - return(otputil_widget_otp(cnf)); -} - - -int -otputil_widget_otp_sha1( - otputil_config_t * cnf ) -{ - int rc; - int hash; - assert(cnf != NULL); - hash = OTPUTIL_MD_SHA1; - if ((rc = otputil_set_param(NULL, OTPUTIL_OPT_OTP_HASH, &hash)) == -1) - { - fprintf(stderr, "%s: otputil_set_param(OTP_HASH): %s\n", cnf->prog_name, otputil_err2string(rc)); - return(1); - }; - return(otputil_widget_otp(cnf)); -} - - int otputil_widget_otp_usage( otputil_config_t * cnf ) -- cgit v1.2.3