Lines Matching defs:code

11  *	this source code.  Do *NOT* create a derivative of this
12 * source code before consulting with your legal department.
13 * Do *NOT* integrate *ANY* of this source code into another
45 const char *chpw_error_message(kadm5_ret_t code);
71 * <return value> exit status of 0 for success, else the com err code
93 int code, code2;
111 if ((code = (int) kadm5_init_krb5_context(&context)) == 0) {
113 code = krb5_read_password(context, KADM5_PW_FIRST_PROMPT,
119 if (code == 0)
125 if (code == KRB5_LIBOS_BADPWDMATCH) {
129 return(code);
131 (void) strncpy(msg_ret, error_message(code), msg_len - 1);
138 return(code);
162 code = kadm5_chpass_principal_v2(server_handle, princ,
175 return (code);
178 code = kadm5_chpass_principal(server_handle, princ,
186 if (code == KADM5_OK) {
192 if ((code != KADM5_PASS_Q_TOOSHORT) &&
193 (code != KADM5_PASS_REUSE) &&(code != KADM5_PASS_Q_CLASS) &&
194 (code != KADM5_PASS_Q_DICT) && (code != KADM5_PASS_TOOSOON)) {
196 sprintf(buffer, "%s %s", error_message(code),
200 return(code);
205 if (code == KADM5_PASS_REUSE) {
208 return(code);
211 if (code == KADM5_PASS_Q_DICT) {
215 return(code);
227 strncat(msg_ret, error_message(code), msg_len - 1 - strlen(msg_ret));
236 return(code);
240 strncpy(msg_ret, error_message(code), msg_len - 1 - strlen(msg_ret));
250 return(code);
258 error_message(code),
262 return(code);
265 if (code == KADM5_PASS_Q_TOOSHORT) {
270 return(code);
274 if (code == KADM5_PASS_Q_CLASS) {
279 return(code);
282 if (code == KADM5_PASS_TOOSOON) {
296 return(code);
300 sprintf(buffer, "%s %s", error_message(code),
306 return(code);
319 * convert the return code received from the password server