krb5: Fix spelling of error messages

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:
Joseph Sutton
2023-06-23 12:56:24 +12:00
committed by Jeffrey Altman
parent 91d54fd4c9
commit 7369cbd11c
8 changed files with 16 additions and 16 deletions

View File

@@ -558,14 +558,14 @@ krb5_cc_get_full_name(krb5_context context,
type = krb5_cc_get_type(context, id); type = krb5_cc_get_type(context, id);
if (type == NULL) { if (type == NULL) {
krb5_set_error_message(context, KRB5_CC_UNKNOWN_TYPE, krb5_set_error_message(context, KRB5_CC_UNKNOWN_TYPE,
"cache have no name of type"); "cache has no name of type");
return KRB5_CC_UNKNOWN_TYPE; return KRB5_CC_UNKNOWN_TYPE;
} }
name = krb5_cc_get_name(context, id); name = krb5_cc_get_name(context, id);
if (name == NULL) { if (name == NULL) {
krb5_set_error_message(context, KRB5_CC_BADNAME, krb5_set_error_message(context, KRB5_CC_BADNAME,
"cache of type %s have no name", type); "cache of type %s has no name", type);
return KRB5_CC_BADNAME; return KRB5_CC_BADNAME;
} }

View File

@@ -3208,7 +3208,7 @@ krb5_keytype_to_enctypes (krb5_context context,
} }
if (n == 0) { if (n == 0) {
krb5_set_error_message(context, KRB5_PROG_KEYTYPE_NOSUPP, krb5_set_error_message(context, KRB5_PROG_KEYTYPE_NOSUPP,
"Keytype have no mapping"); "Keytype has no mapping");
return KRB5_PROG_KEYTYPE_NOSUPP; return KRB5_PROG_KEYTYPE_NOSUPP;
} }

View File

@@ -347,7 +347,7 @@ digest_request(krb5_context context,
if (key == NULL) { if (key == NULL) {
ret = EINVAL; ret = EINVAL;
krb5_set_error_message(context, ret, krb5_set_error_message(context, ret,
N_("Digest reply have no remote subkey", "")); N_("Digest reply has no remote subkey", ""));
goto out; goto out;
} }

View File

@@ -106,7 +106,7 @@ error_code PUBLIC_KEY_ENCRYPTION_NOT_SUPPORTED, "Public key encryption not suppo
#index 85 #index 85
#prefix KRB5_IAKERB #prefix KRB5_IAKERB
#error_code ERR_KDC_NOT_FOUND, "IAKERB proxy could not find a KDC" #error_code ERR_KDC_NOT_FOUND, "IAKERB proxy could not find a KDC"
#error_code ERR_KDC_NO_RESPONSE, "IAKERB proxy never reeived a response from a KDC" #error_code ERR_KDC_NO_RESPONSE, "IAKERB proxy never received a response from a KDC"
index 91 index 91
error_code MORE_PREAUTH_DATA_REQUIRED, "More pre-authentication data required" error_code MORE_PREAUTH_DATA_REQUIRED, "More pre-authentication data required"

View File

@@ -886,7 +886,7 @@ pk_verify_sign(krb5_context context,
ret = hx509_get_one_cert(context->hx509ctx, signer_certs, &(*signer)->cert); ret = hx509_get_one_cert(context->hx509ctx, signer_certs, &(*signer)->cert);
if (ret) { if (ret) {
pk_copy_error(context, context->hx509ctx, ret, pk_copy_error(context, context->hx509ctx, ret,
"Failed to get on of the signer certs"); "Failed to get one of the signer certs");
goto out; goto out;
} }
@@ -1086,7 +1086,7 @@ pk_verify_host(krb5_context context,
ret = KRB5_KDC_ERR_INVALID_CERTIFICATE; ret = KRB5_KDC_ERR_INVALID_CERTIFICATE;
/* XXX: Lost in translation... */ /* XXX: Lost in translation... */
krb5_set_error_message(context, ret, krb5_set_error_message(context, ret,
N_("KDC have wrong realm name in " N_("KDC has wrong realm name in "
"the certificate", "")); "the certificate", ""));
} }
} }
@@ -1929,7 +1929,7 @@ _krb5_pk_load_id(krb5_context context,
ret = hx509_revoke_init(context->hx509ctx, &id->revokectx); ret = hx509_revoke_init(context->hx509ctx, &id->revokectx);
if (ret) { if (ret) {
pk_copy_error(context, context->hx509ctx, ret, pk_copy_error(context, context->hx509ctx, ret,
"Failed init revoke list"); "Failed to init revoke list");
goto out; goto out;
} }
@@ -1939,7 +1939,7 @@ _krb5_pk_load_id(krb5_context context,
*revoke_list); *revoke_list);
if (ret) { if (ret) {
pk_copy_error(context, context->hx509ctx, ret, pk_copy_error(context, context->hx509ctx, ret,
"Failed load revoke list"); "Failed to load revoke list");
goto out; goto out;
} }
revoke_list++; revoke_list++;
@@ -1950,7 +1950,7 @@ _krb5_pk_load_id(krb5_context context,
ret = hx509_verify_init_ctx(context->hx509ctx, &id->verify_ctx); ret = hx509_verify_init_ctx(context->hx509ctx, &id->verify_ctx);
if (ret) { if (ret) {
pk_copy_error(context, context->hx509ctx, ret, pk_copy_error(context, context->hx509ctx, ret,
"Failed init verify context"); "Failed to init verify context");
goto out; goto out;
} }
@@ -2079,7 +2079,7 @@ _krb5_parse_moduli_line(krb5_context context,
m1->bits = atoi(p1); m1->bits = atoi(p1);
if (m1->bits == 0) { if (m1->bits == 0) {
krb5_set_error_message(context, ret, krb5_set_error_message(context, ret,
N_("moduli file %s have un-parsable " N_("moduli file %s has un-parsable "
"bits on line %d", ""), file, lineno); "bits on line %d", ""), file, lineno);
goto out; goto out;
} }
@@ -2293,7 +2293,7 @@ _krb5_dh_group_ok(krb5_context context, unsigned long bits,
krb5_set_error_message(context, krb5_set_error_message(context,
KRB5_KDC_ERR_DH_KEY_PARAMETERS_NOT_ACCEPTED, KRB5_KDC_ERR_DH_KEY_PARAMETERS_NOT_ACCEPTED,
N_("PKINIT: DH group parameter %s " N_("PKINIT: DH group parameter %s "
"no accepted, not enough bits " "not accepted, not enough bits "
"generated", ""), "generated", ""),
moduli[i]->name); moduli[i]->name);
return KRB5_KDC_ERR_DH_KEY_PARAMETERS_NOT_ACCEPTED; return KRB5_KDC_ERR_DH_KEY_PARAMETERS_NOT_ACCEPTED;
@@ -2305,7 +2305,7 @@ _krb5_dh_group_ok(krb5_context context, unsigned long bits,
} }
krb5_set_error_message(context, krb5_set_error_message(context,
KRB5_KDC_ERR_DH_KEY_PARAMETERS_NOT_ACCEPTED, KRB5_KDC_ERR_DH_KEY_PARAMETERS_NOT_ACCEPTED,
N_("PKINIT: DH group parameter no ok", "")); N_("PKINIT: DH group parameter not ok", ""));
return KRB5_KDC_ERR_DH_KEY_PARAMETERS_NOT_ACCEPTED; return KRB5_KDC_ERR_DH_KEY_PARAMETERS_NOT_ACCEPTED;
} }
#endif /* PKINIT */ #endif /* PKINIT */

View File

@@ -391,7 +391,7 @@ msgstr "Auswerten der Digest-Antwort fehlgeschlagen"
# FIXME s/have/has/ or s/reply/replys/ # FIXME s/have/has/ or s/reply/replys/
#: lib/krb5/digest.c:365 #: lib/krb5/digest.c:365
msgid "Digest reply have no remote subkey" msgid "Digest reply has no remote subkey"
msgstr "Digest-Antwort hat keinen fernen Unterschlüssel." msgstr "Digest-Antwort hat keinen fernen Unterschlüssel."
#: lib/krb5/digest.c:385 #: lib/krb5/digest.c:385

View File

@@ -609,7 +609,7 @@ msgid "Failed to parse digest response"
msgstr "" msgstr ""
#: lib/krb5/digest.c:365 #: lib/krb5/digest.c:365
msgid "Digest reply have no remote subkey" msgid "Digest reply has no remote subkey"
msgstr "" msgstr ""
#: lib/krb5/digest.c:385 #: lib/krb5/digest.c:385

View File

@@ -600,7 +600,7 @@ msgid "Failed to parse digest response"
msgstr "" msgstr ""
#: lib/krb5/digest.c:363 #: lib/krb5/digest.c:363
msgid "Digest reply have no remote subkey" msgid "Digest reply has no remote subkey"
msgstr "" msgstr ""
#: lib/krb5/digest.c:383 #: lib/krb5/digest.c:383