Lines Matching refs:ret
45 krb5_error_code ret;
50 ret = krb5_sname_to_principal (context, NULL, service, KRB5_NT_SRV_HST,
52 if(ret)
53 return ret;
58 ret = krb5_verify_init_creds(context,
65 if(ret)
66 return ret;
68 ret = krb5_cc_default (context, &id);
71 if(ret == 0){
72 ret = krb5_cc_initialize(context, id, principal);
73 if(ret == 0){
74 ret = krb5_cc_store_cred(context, id, &cred);
80 return ret;
155 krb5_error_code ret;
159 ret = krb5_get_init_creds_opt_alloc (context, &opt);
160 if (ret)
161 return ret;
165 ret = krb5_get_init_creds_password (context,
175 if(ret)
176 return ret;
190 krb5_error_code ret;
194 ret = krb5_get_default_realms (context, &realms);
195 if (ret)
196 return ret;
197 ret = KRB5_CONFIG_NODEFREALM;
199 for (r = realms; *r != NULL && ret != 0; ++r) {
200 ret = krb5_principal_set_realm(context, principal, *r);
201 if (ret) {
203 return ret;
206 ret = verify_user_opt_int(context, principal, password, opt);
209 if(ret)
210 return ret;
212 ret = verify_user_opt_int(context, principal, password, opt);
213 return ret;