From 947e50df4512fc35c32abb090862b3fa10b54d71 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Mon, 15 Oct 2012 18:49:01 +0200 Subject: [PATCH] ykchalresp doesn't need to depend on libykpers --- Makefile.am | 2 +- ykchalresp.c | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index 84eec95..a85cba8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -68,7 +68,7 @@ ykpersonalize_SOURCES = ykpersonalize.c ykpers-args.h ykpers-args.c ykpersonalize_LDADD = ./libykpers-1.la ./ykcore/libykcore.la ykchalresp_SOURCES = ykchalresp.c -ykchalresp_LDADD = ./libykpers-1.la ./ykcore/libykcore.la +ykchalresp_LDADD = ./ykcore/libykcore.la ykinfo_SOURCES = ykinfo.c ykinfo_LDADD = ./ykcore/libykcore.la diff --git a/ykchalresp.c b/ykchalresp.c index 6693d53..62fb4b0 100644 --- a/ykchalresp.c +++ b/ykchalresp.c @@ -35,9 +35,10 @@ #include #include -#include #include #include +#include +#include const char *usage = "Usage: ykchalresp [options] challenge\n" @@ -60,9 +61,6 @@ const char *optstring = "12xvhHYN"; static void report_yk_error(void) { - if (ykp_errno) - fprintf(stderr, "Yubikey personalization error: %s\n", - ykp_strerror(ykp_errno)); if (yk_errno) { if (yk_errno == YK_EUSBERR) { fprintf(stderr, "USB error: %s\n", @@ -241,7 +239,6 @@ int main(int argc, char **argv) unsigned int challenge_len; int slot = 1; - ykp_errno = 0; yk_errno = 0; if (! parse_args(argc, argv, -- 2.39.5