]> err.no Git - yubikey-personalization/commitdiff
ykchalresp doesn't need to depend on libykpers
authorKlas Lindfors <klas@yubico.com>
Mon, 15 Oct 2012 16:49:01 +0000 (18:49 +0200)
committerKlas Lindfors <klas@yubico.com>
Mon, 15 Oct 2012 17:19:00 +0000 (19:19 +0200)
Makefile.am
ykchalresp.c

index 84eec952cfeee9f55c79995bb9791dd322568d3e..a85cba8e42cbfe50a115f114f03ce452b623aa19 100644 (file)
@@ -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
index 6693d538df209e836002baee990798ea90e137dc..62fb4b01993cdc99db86d9765b0fb7e4b91839c3 100644 (file)
 #include <stdio.h>
 #include <unistd.h>
 
-#include <ykpers.h>
 #include <yubikey.h>
 #include <ykdef.h>
+#include <ykcore.h>
+#include <ykstatus.h>
 
 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,