From: Klas Lindfors Date: Mon, 15 Oct 2012 16:49:01 +0000 (+0200) Subject: ykchalresp doesn't need to depend on libykpers X-Git-Tag: v1.8.1~4 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=947e50df4512fc35c32abb090862b3fa10b54d71;p=yubikey-personalization ykchalresp doesn't need to depend on libykpers --- 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,