Lines Matching refs:ret
49 OM_uint32 ret;
52 ret = gss_inquire_cred_by_oid(minor_status,
56 if (ret)
57 return ret;
95 return ret;
108 krb5_error_code ret;
115 ret = krb5_init_context(&context);
116 if (ret) {
117 *minor_status = ret;
129 ret = krb5_cc_get_full_name(context, id, &str);
130 if (ret == 0) {
131 ret = krb5_store_string(sp, str);
135 ret = krb5_store_string(sp, "");
136 if (ret) {
137 *minor_status = ret;
143 ret = krb5_unparse_name(context, keytab_principal, &str);
144 if (ret == 0) {
145 ret = krb5_store_string(sp, str);
150 if (ret) {
151 *minor_status = ret;
158 ret = krb5_kt_get_full_name(context, keytab, &str);
159 if (ret == 0) {
160 ret = krb5_store_string(sp, str);
165 if (ret) {
166 *minor_status = ret;
171 ret = krb5_storage_to_data(sp, &data);
172 if (ret) {
173 *minor_status = ret;
253 krb5_error_code ret;
264 ret = EINVAL;
282 ret = krb5_init_context(&context);
283 if (ret)
288 ret = ENOMEM;
295 ret = ENOMEM;
299 ret = krb5_ret_uint32(sp, &num);
300 if (ret) goto out;
302 ret = EINVAL;
307 ret = krb5_ret_uint32(sp, &ctx->initiate);
308 if (ret) goto out;
310 ret = krb5_ret_uint32(sp, &ctx->endtime);
311 if (ret) goto out;
313 ret = krb5_ret_uint32(sp, &num);
314 if (ret) goto out;
316 ret = krb5_ret_uint32(sp, &num);
317 if (ret) goto out;
320 ret = krb5_ret_uint32(sp, &num);
321 if (ret) goto out;
323 ret = krb5_ret_uint32(sp, &num);
324 if (ret) goto out;
327 ret = krb5_ret_uint32(sp, &ctx->protocol);
328 if (ret) goto out;
333 ret = krb5_ret_uint32(sp, &ctx->rfc1964_kd.sign_alg);
334 if (ret) goto out;
336 ret = krb5_ret_uint32(sp, &ctx->rfc1964_kd.seal_alg);
337 if (ret) goto out;
339 ret = krb5_ret_keyblock(sp, &key);
340 if (ret) goto out;
341 ret = set_key(&key, &ctx->rfc1964_kd.ctx_key);
343 if (ret) goto out;
348 ret = krb5_ret_uint32(sp, &ctx->cfx_kd.have_acceptor_subkey);
349 if (ret) goto out;
351 ret = krb5_ret_keyblock(sp, &key);
352 if (ret) goto out;
353 ret = set_key(&key, &ctx->cfx_kd.ctx_key);
355 if (ret) goto out;
358 ret = krb5_ret_keyblock(sp, &key);
359 if (ret) goto out;
360 ret = set_key(&key, &ctx->cfx_kd.acceptor_subkey);
362 if (ret) goto out;
365 ret = EINVAL;
378 if (ret) {
382 *minor_status = ret;
423 krb5_error_code ret;
438 ret = krb5_store_int32(sp, enctypes[i]);
439 if (ret) {
440 *minor_status = ret;
446 ret = krb5_storage_to_data(sp, &data);
447 if (ret) {
448 *minor_status = ret;
680 krb5_error_code ret;
687 ret = EINVAL;
691 ret = krb5_init_context(&context);
692 if(ret) {
693 *minor_status = ret;
714 ret = ENOMEM;
720 ret = ENOMEM;
724 ret = krb5_ret_keyblock(sp, *keyblock);
730 if (ret && keyblock) {
737 *minor_status = ret;
738 if (ret)