From 099c55e90aa61f6910b78d90cc72d28e52fa6f62 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 4 May 2016 23:27:17 +0200 Subject: [PATCH] Fix various errors messages --- lib/ykpiv.c | 2 +- tool/util.c | 4 ++-- tool/yubico-piv-tool.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ykpiv.c b/lib/ykpiv.c index adcbb0c..c712af6 100644 --- a/lib/ykpiv.c +++ b/lib/ykpiv.c @@ -192,7 +192,7 @@ ykpiv_rc ykpiv_connect(ykpiv_state *state, const char *wanted) { if(*reader_ptr == '\0') { if(state->verbose) { - fprintf(stderr, "error: no useable reader found.\n"); + fprintf(stderr, "error: no usable reader found.\n"); } SCardReleaseContext(state->context); state->context = SCARD_E_INVALID_HANDLE; diff --git a/tool/util.c b/tool/util.c index 48434e3..783a9ba 100644 --- a/tool/util.c +++ b/tool/util.c @@ -71,7 +71,7 @@ unsigned char get_algorithm(EVP_PKEY *key) { } else if(size == 128) { return YKPIV_ALGO_RSA1024; } else { - fprintf(stderr, "Unuseable key of %d bits, only 1024 and 2048 is supported.\n", size * 8); + fprintf(stderr, "Unusable key of %d bits, only 1024 and 2048 are supported.\n", size * 8); return 0; } } @@ -102,7 +102,7 @@ X509_NAME *parse_name(const char *orig_name) { char *part; if(strlen(orig_name) > 1024) { - fprintf(stderr, "Name is to long!\n"); + fprintf(stderr, "Name is too long!\n"); return NULL; } strcpy(name, orig_name); diff --git a/tool/yubico-piv-tool.c b/tool/yubico-piv-tool.c index 934d8d1..5f4a36f 100644 --- a/tool/yubico-piv-tool.c +++ b/tool/yubico-piv-tool.c @@ -149,7 +149,7 @@ static bool generate_key(ykpiv_state *state, const char *slot, *in_ptr++ = 1; *in_ptr++ = get_piv_algorithm(algorithm); if(in_data[4] == 0) { - fprintf(stderr, "Unexepcted algorithm.\n"); + fprintf(stderr, "Unexpected algorithm.\n"); goto generate_out; } if(pin_policy != pin_policy__NULL) { @@ -558,7 +558,7 @@ static bool import_cert(ykpiv_state *state, enum enum_key_format cert_format, ykpiv_rc res; if(4 + cert_len + 5 > 3072) { /* 4 is prefix size, 5 is postfix size */ - fprintf(stderr, "Certificate is to large to fit in buffer.\n"); + fprintf(stderr, "Certificate is too large to fit in buffer.\n"); goto import_cert_out; }