Lines Matching +full:chg +full:- +full:done

2  * Copyright (c) 1997 - 2005 Kungliga Tekniska Högskolan
54 d->length = vasprintf (&str, fmt, args); in str2data()
56 d->data = str; in str2data()
61 * draft-ietf-cat-kerb-chg-password-02.txt
90 krb5_principal_compare(context, creds->client, targprinc) != TRUE) in chgpw_send_request()
155 * Set password protocol as defined by RFC3244 --
194 chpw.targname = &targprinc->name; in setpw_send_request()
195 chpw.targrealm = &targprinc->realm; in setpw_send_request()
287 ret = recvfrom (sock, reply + len, sizeof(reply) - len, in process_reply()
348 if (error.e_data->length < 2) { in process_reply()
356 p = error.e_data->data; in process_reply()
358 if (error.e_data->length == 2) in process_reply()
363 error.e_data->length - 2); in process_reply()
395 priv_data.length = len - ap_rep_data.length - 6; in process_reply()
416 if (result_code_string->length < 2) { in process_reply()
423 p = result_code_string->data; in process_reply()
427 (unsigned char*)result_code_string->data + 2, in process_reply()
428 result_code_string->length - 2); in process_reply()
435 ret = decode_KRB_ERROR(reply + 6, len - 6, &error, &size); in process_reply()
439 if (error.e_data->length < 2) { in process_reply()
444 p = error.e_data->data; in process_reply()
448 error.e_data->length - 2); in process_reply()
520 int done = 0; in change_password_loop() local
524 realm = targprinc->realm; in change_password_loop()
526 realm = creds->client->realm; in change_password_loop()
539 while (!done && (ret = krb5_krbhst_next(context, handle, &hi)) == 0) { in change_password_loop()
543 switch (hi->proto) { in change_password_loop()
545 if ((proc->flags & SUPPORT_UDP) == 0) in change_password_loop()
550 if ((proc->flags & SUPPORT_TCP) == 0) in change_password_loop()
562 for (a = ai; !done && a != NULL; a = a->ai_next) { in change_password_loop()
565 sock = socket (a->ai_family, a->ai_socktype | SOCK_CLOEXEC, a->ai_protocol); in change_password_loop()
570 ret = connect(sock, a->ai_addr, a->ai_addrlen); in change_password_loop()
583 for (i = 0; !done && i < 5; ++i) { in change_password_loop()
590 ret = (*proc->send_req) (context, in change_password_loop()
597 hi->hostname); in change_password_loop()
625 ret = (*proc->process_rep) (context, in change_password_loop()
632 hi->hostname); in change_password_loop()
634 done = 1; in change_password_loop()
665 for (p = procs; p->name != NULL; p++) { in find_chpw_proto()
666 if (strcmp(p->name, name) == 0) in find_chpw_proto()
699 result_code_string->data = result_string->data = NULL; in krb5_change_password()
700 result_code_string->length = result_string->length = 0; in krb5_change_password()
786 result_code_string->data = result_string->data = NULL; in krb5_set_password_using_ccache()
787 result_code_string->length = result_string->length = 0; in krb5_set_password_using_ccache()