From: Paul Park Date: Tue, 8 Aug 1995 22:00:55 +0000 (+0000) Subject: Handle new protocol error messages X-Git-Tag: krb5-1.0-beta6~1363 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=001d4456fd84ef0abc40cf0de913ab0f122786d6;p=krb5.git Handle new protocol error messages git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6463 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/v5server/srv_output.c b/src/kadmin/v5server/srv_output.c index 37a1a21a2..06e129f8c 100644 --- a/src/kadmin/v5server/srv_output.c +++ b/src/kadmin/v5server/srv_output.c @@ -47,6 +47,8 @@ static const char *out_adm_not_auth = "Not authorized for this operation."; static const char *out_adm_bad_option = "Bad option supplied."; static const char *out_adm_value_req = "Value required for option."; static const char *out_adm_sys_error = "Unspecified system error."; +static const char *out_adm_key_exists = "Key type already exists."; +static const char *out_adm_key_missing = "Key type does not exist."; static const char *out_adm_bad_args = "Bad argument list format for %s command."; static const char *out_adm_bad_cmd = "Command %s not supported."; static const char *out_adm_no_cmd = "No command in message."; @@ -191,6 +193,12 @@ lang_adm_message(lang, ecode, aux, nargs, alist) case KRB5_ADM_SYSTEM_ERROR: ermsg = out_adm_sys_error; break; + case KRB5_ADM_KEY_ALREADY_EXISTS: + ermsg = out_adm_key_exists; + break; + case KRB5_ADM_KEY_DOES_NOT_EXIST: + ermsg = out_adm_key_missing; + break; default: ermsg = out_adm_no_err; break; }