aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2023-01-17 09:38:39 -0900
committerDavid M. Syzdek <david@syzdek.net>2023-01-17 09:38:39 -0900
commitff976aa653c83c8bd56d71360e840b7aab020d63 (patch)
tree7fdbcd6fad11dfc3ab8b26dc3cf888aa06e276d0
parent2986e6884bc229e347b706f76d9d655e2d2cd399 (diff)
downloadotputils-ff976aa653c83c8bd56d71360e840b7aab020d63.tar.gz
otputils-ff976aa653c83c8bd56d71360e840b7aab020d63.tar.bz2
otputils-ff976aa653c83c8bd56d71360e840b7aab020d63.tar.xz
otputils-ff976aa653c83c8bd56d71360e840b7aab020d63.zip
otputil: removing unused functions
-rw-r--r--src/otputil.h15
-rw-r--r--src/widget-otp.c51
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
136extern int 136extern int
137otputil_widget_otp_md4(
138 otputil_config_t * cnf );
139
140
141extern int
142otputil_widget_otp_md5(
143 otputil_config_t * cnf );
144
145
146extern int
147otputil_widget_otp_sha1(
148 otputil_config_t * cnf );
149
150
151extern int
152otputil_widget_otp_usage( 137otputil_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
229int 229int
230otputil_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
246int
247otputil_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
263int
264otputil_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
280int
281otputil_widget_otp_usage( 230otputil_widget_otp_usage(
282 otputil_config_t * cnf ) 231 otputil_config_t * cnf )
283{ 232{