Lines Matching refs:code

14  *	this source code.  Do *NOT* create a derivative of this
15 * source code before consulting with your legal department.
16 * 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;
112 if ((code = (int) kadm5_init_krb5_context(&context)) == 0) {
114 code = krb5_read_password(context, KADM5_PW_FIRST_PROMPT,
120 if (code == 0)
126 if (code == KRB5_LIBOS_BADPWDMATCH) {
130 return(code);
132 strncpy(msg_ret, error_message(code), msg_len - 1);
139 return(code);
164 code = kadm5_chpass_principal_v2(server_handle, princ,
177 return (code);
180 code = kadm5_chpass_principal(server_handle, princ,
188 if (code == KADM5_OK) {
194 if ((code != KADM5_PASS_Q_TOOSHORT) &&
195 (code != KADM5_PASS_REUSE) &&(code != KADM5_PASS_Q_CLASS) &&
196 (code != KADM5_PASS_Q_DICT) && (code != KADM5_PASS_TOOSOON)) {
198 snprintf(buffer, sizeof(buffer), "%s %s", error_message(code),
203 return(code);
208 if (code == KADM5_PASS_REUSE) {
211 return(code);
214 if (code == KADM5_PASS_Q_DICT) {
218 return(code);
230 strncat(msg_ret, error_message(code), msg_len - 1 - strlen(msg_ret));
239 return(code);
243 strncpy(msg_ret, error_message(code), msg_len - 1 - strlen(msg_ret));
253 return(code);
261 error_message(code),
265 return(code);
268 if (code == KADM5_PASS_Q_TOOSHORT) {
273 return(code);
278 if (code == KADM5_PASS_Q_CLASS) {
283 return(code);
286 if (code == KADM5_PASS_TOOSOON) {
300 return(code);
305 sprintf(buffer, "%s %s", error_message(code),
311 return(code);
325 * convert the return code received from the password server