From f24b1d0c463c5c007e05f90808484649cd57842d Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Mon, 2 Feb 2015 10:26:12 +0100 Subject: [PATCH] report error if setting a new key fails --- tool/yubico-piv-tool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tool/yubico-piv-tool.c b/tool/yubico-piv-tool.c index 588bf63..e6ca527 100644 --- a/tool/yubico-piv-tool.c +++ b/tool/yubico-piv-tool.c @@ -1249,6 +1249,7 @@ int main(int argc, char *argv[]) { fprintf(stderr, "Failed decoding new key!\n"); ret = EXIT_FAILURE; } else if(ykpiv_set_mgmkey(state, new_key) != YKPIV_OK) { + fprintf(stderr, "Failed setting the new key!\n"); ret = EXIT_FAILURE; } else { fprintf(stderr, "Successfully set new management key.\n");