Lines Matching refs:err
98 int err; in gssx_enc_option() local
100 err = gssx_enc_buffer(xdr, &opt->option); in gssx_enc_option()
101 if (err) in gssx_enc_option()
102 return err; in gssx_enc_option()
103 err = gssx_enc_buffer(xdr, &opt->value); in gssx_enc_option()
104 return err; in gssx_enc_option()
110 int err; in gssx_dec_option() local
112 err = gssx_dec_buffer(xdr, &opt->option); in gssx_dec_option()
113 if (err) in gssx_dec_option()
114 return err; in gssx_dec_option()
115 err = gssx_dec_buffer(xdr, &opt->value); in gssx_dec_option()
116 return err; in gssx_dec_option()
175 int i, err; in gssx_dec_linux_creds() local
187 err = get_host_u32(xdr, &tmp); in gssx_dec_linux_creds()
188 if (err) in gssx_dec_linux_creds()
189 return err; in gssx_dec_linux_creds()
193 err = get_host_u32(xdr, &tmp); in gssx_dec_linux_creds()
194 if (err) in gssx_dec_linux_creds()
195 return err; in gssx_dec_linux_creds()
199 err = get_host_u32(xdr, &tmp); in gssx_dec_linux_creds()
200 if (err) in gssx_dec_linux_creds()
201 return err; in gssx_dec_linux_creds()
212 err = get_host_u32(xdr, &tmp); in gssx_dec_linux_creds()
213 if (err) in gssx_dec_linux_creds()
215 err = -EINVAL; in gssx_dec_linux_creds()
226 return err; in gssx_dec_linux_creds()
235 int err; in gssx_dec_option_array() local
279 err = gssx_dec_linux_creds(xdr, creds); in gssx_dec_option_array()
280 if (err) in gssx_dec_option_array()
281 return err; in gssx_dec_option_array()
285 err = gssx_dec_buffer(xdr, &dummy); in gssx_dec_option_array()
286 if (err) in gssx_dec_option_array()
287 return err; in gssx_dec_option_array()
297 int err; in gssx_dec_status() local
306 err = gssx_dec_buffer(xdr, &status->mech); in gssx_dec_status()
307 if (err) in gssx_dec_status()
308 return err; in gssx_dec_status()
317 err = gssx_dec_buffer(xdr, &status->major_status_string); in gssx_dec_status()
318 if (err) in gssx_dec_status()
319 return err; in gssx_dec_status()
322 err = gssx_dec_buffer(xdr, &status->minor_status_string); in gssx_dec_status()
323 if (err) in gssx_dec_status()
324 return err; in gssx_dec_status()
327 err = gssx_dec_buffer(xdr, &status->server_ctx); in gssx_dec_status()
328 if (err) in gssx_dec_status()
329 return err; in gssx_dec_status()
333 err = dummy_dec_opt_array(xdr, &status->options); in gssx_dec_status()
335 return err; in gssx_dec_status()
343 int err; in gssx_enc_call_ctx() local
346 err = gssx_enc_buffer(xdr, &ctx->locale); in gssx_enc_call_ctx()
347 if (err) in gssx_enc_call_ctx()
348 return err; in gssx_enc_call_ctx()
351 err = gssx_enc_buffer(xdr, &ctx->server_ctx); in gssx_enc_call_ctx()
352 if (err) in gssx_enc_call_ctx()
353 return err; in gssx_enc_call_ctx()
365 err = gssx_enc_option(xdr, &opt); in gssx_enc_call_ctx()
372 err = gssx_enc_option(xdr, &opt); in gssx_enc_call_ctx()
374 return err; in gssx_enc_call_ctx()
380 int err; in gssx_dec_name_attr() local
383 err = gssx_dec_buffer(xdr, &attr->attr); in gssx_dec_name_attr()
384 if (err) in gssx_dec_name_attr()
385 return err; in gssx_dec_name_attr()
388 err = gssx_dec_buffer(xdr, &attr->value); in gssx_dec_name_attr()
389 if (err) in gssx_dec_name_attr()
390 return err; in gssx_dec_name_attr()
393 err = dummy_dec_opt_array(xdr, &attr->extensions); in gssx_dec_name_attr()
395 return err; in gssx_dec_name_attr()
443 int err; in gssx_enc_name() local
446 err = gssx_enc_buffer(xdr, &name->display_name); in gssx_enc_name()
447 if (err) in gssx_enc_name()
448 return err; in gssx_enc_name()
451 err = gssx_enc_buffer(xdr, &zero_netobj); in gssx_enc_name()
452 if (err) in gssx_enc_name()
453 return err; in gssx_enc_name()
456 err = gssx_enc_buffer(xdr, &zero_netobj); in gssx_enc_name()
457 if (err) in gssx_enc_name()
458 return err; in gssx_enc_name()
461 err = gssx_enc_buffer(xdr, &zero_netobj); in gssx_enc_name()
462 if (err) in gssx_enc_name()
463 return err; in gssx_enc_name()
468 err = dummy_enc_nameattr_array(xdr, &zero_name_attr_array); in gssx_enc_name()
469 if (err) in gssx_enc_name()
470 return err; in gssx_enc_name()
475 err = dummy_enc_opt_array(xdr, &zero_option_array); in gssx_enc_name()
477 return err; in gssx_enc_name()
487 int err; in gssx_dec_name() local
490 err = gssx_dec_buffer(xdr, &name->display_name); in gssx_dec_name()
491 if (err) in gssx_dec_name()
492 return err; in gssx_dec_name()
495 err = gssx_dec_buffer(xdr, &dummy_netobj); in gssx_dec_name()
496 if (err) in gssx_dec_name()
497 return err; in gssx_dec_name()
500 err = gssx_dec_buffer(xdr, &dummy_netobj); in gssx_dec_name()
501 if (err) in gssx_dec_name()
502 return err; in gssx_dec_name()
505 err = gssx_dec_buffer(xdr, &dummy_netobj); in gssx_dec_name()
506 if (err) in gssx_dec_name()
507 return err; in gssx_dec_name()
511 err = dummy_dec_nameattr_array(xdr, &dummy_name_attr_array); in gssx_dec_name()
512 if (err) in gssx_dec_name()
513 return err; in gssx_dec_name()
517 err = dummy_dec_opt_array(xdr, &dummy_option_array); in gssx_dec_name()
519 return err; in gssx_dec_name()
541 int err; in gssx_enc_cred() local
544 err = gssx_enc_name(xdr, &cred->desired_name); in gssx_enc_cred()
545 if (err) in gssx_enc_cred()
546 return err; in gssx_enc_cred()
549 err = dummy_enc_credel_array(xdr, &cred->elements); in gssx_enc_cred()
550 if (err) in gssx_enc_cred()
551 return err; in gssx_enc_cred()
554 err = gssx_enc_buffer(xdr, &cred->cred_handle_reference); in gssx_enc_cred()
555 if (err) in gssx_enc_cred()
556 return err; in gssx_enc_cred()
559 err = gssx_enc_bool(xdr, cred->needs_release); in gssx_enc_cred()
561 return err; in gssx_enc_cred()
568 int err; in gssx_enc_ctx() local
571 err = gssx_enc_buffer(xdr, &ctx->exported_context_token); in gssx_enc_ctx()
572 if (err) in gssx_enc_ctx()
573 return err; in gssx_enc_ctx()
576 err = gssx_enc_buffer(xdr, &ctx->state); in gssx_enc_ctx()
577 if (err) in gssx_enc_ctx()
578 return err; in gssx_enc_ctx()
581 err = gssx_enc_bool(xdr, ctx->need_release); in gssx_enc_ctx()
582 if (err) in gssx_enc_ctx()
583 return err; in gssx_enc_ctx()
586 err = gssx_enc_buffer(xdr, &ctx->mech); in gssx_enc_ctx()
587 if (err) in gssx_enc_ctx()
588 return err; in gssx_enc_ctx()
591 err = gssx_enc_name(xdr, &ctx->src_name); in gssx_enc_ctx()
592 if (err) in gssx_enc_ctx()
593 return err; in gssx_enc_ctx()
596 err = gssx_enc_name(xdr, &ctx->targ_name); in gssx_enc_ctx()
597 if (err) in gssx_enc_ctx()
598 return err; in gssx_enc_ctx()
610 err = gssx_enc_bool(xdr, ctx->locally_initiated); in gssx_enc_ctx()
611 if (err) in gssx_enc_ctx()
612 return err; in gssx_enc_ctx()
615 err = gssx_enc_bool(xdr, ctx->open); in gssx_enc_ctx()
616 if (err) in gssx_enc_ctx()
617 return err; in gssx_enc_ctx()
622 err = dummy_enc_opt_array(xdr, &ctx->options); in gssx_enc_ctx()
624 return err; in gssx_enc_ctx()
631 int err; in gssx_dec_ctx() local
634 err = gssx_dec_buffer(xdr, &ctx->exported_context_token); in gssx_dec_ctx()
635 if (err) in gssx_dec_ctx()
636 return err; in gssx_dec_ctx()
639 err = gssx_dec_buffer(xdr, &ctx->state); in gssx_dec_ctx()
640 if (err) in gssx_dec_ctx()
641 return err; in gssx_dec_ctx()
644 err = gssx_dec_bool(xdr, &ctx->need_release); in gssx_dec_ctx()
645 if (err) in gssx_dec_ctx()
646 return err; in gssx_dec_ctx()
649 err = gssx_dec_buffer(xdr, &ctx->mech); in gssx_dec_ctx()
650 if (err) in gssx_dec_ctx()
651 return err; in gssx_dec_ctx()
654 err = gssx_dec_name(xdr, &ctx->src_name); in gssx_dec_ctx()
655 if (err) in gssx_dec_ctx()
656 return err; in gssx_dec_ctx()
659 err = gssx_dec_name(xdr, &ctx->targ_name); in gssx_dec_ctx()
660 if (err) in gssx_dec_ctx()
661 return err; in gssx_dec_ctx()
673 err = gssx_dec_bool(xdr, &ctx->locally_initiated); in gssx_dec_ctx()
674 if (err) in gssx_dec_ctx()
675 return err; in gssx_dec_ctx()
678 err = gssx_dec_bool(xdr, &ctx->open); in gssx_dec_ctx()
679 if (err) in gssx_dec_ctx()
680 return err; in gssx_dec_ctx()
684 err = dummy_dec_opt_array(xdr, &ctx->options); in gssx_dec_ctx()
686 return err; in gssx_dec_ctx()
692 int err; in gssx_enc_cb() local
701 err = gssx_enc_buffer(xdr, &cb->initiator_address); in gssx_enc_cb()
702 if (err) in gssx_enc_cb()
703 return err; in gssx_enc_cb()
712 err = gssx_enc_buffer(xdr, &cb->acceptor_address); in gssx_enc_cb()
713 if (err) in gssx_enc_cb()
714 return err; in gssx_enc_cb()
717 err = gssx_enc_buffer(xdr, &cb->application_data); in gssx_enc_cb()
719 return err; in gssx_enc_cb()
727 int err; in gssx_enc_accept_sec_context() local
729 err = gssx_enc_call_ctx(xdr, &arg->call_ctx); in gssx_enc_accept_sec_context()
730 if (err) in gssx_enc_accept_sec_context()
735 err = gssx_enc_ctx(xdr, arg->context_handle); in gssx_enc_accept_sec_context()
737 err = gssx_enc_bool(xdr, 0); in gssx_enc_accept_sec_context()
738 if (err) in gssx_enc_accept_sec_context()
743 err = gssx_enc_cred(xdr, arg->cred_handle); in gssx_enc_accept_sec_context()
745 err = gssx_enc_bool(xdr, 0); in gssx_enc_accept_sec_context()
746 if (err) in gssx_enc_accept_sec_context()
750 err = gssx_enc_in_token(xdr, &arg->input_token); in gssx_enc_accept_sec_context()
751 if (err) in gssx_enc_accept_sec_context()
756 err = gssx_enc_cb(xdr, arg->input_cb); in gssx_enc_accept_sec_context()
758 err = gssx_enc_bool(xdr, 0); in gssx_enc_accept_sec_context()
759 if (err) in gssx_enc_accept_sec_context()
762 err = gssx_enc_bool(xdr, arg->ret_deleg_cred); in gssx_enc_accept_sec_context()
763 if (err) in gssx_enc_accept_sec_context()
769 err = dummy_enc_opt_array(xdr, &arg->options); in gssx_enc_accept_sec_context()
776 if (err) in gssx_enc_accept_sec_context()
777 dprintk("RPC: gssx_enc_accept_sec_context: %d\n", err); in gssx_enc_accept_sec_context()
786 int err; in gssx_dec_accept_sec_context() local
795 err = gssx_dec_status(xdr, &res->status); in gssx_dec_accept_sec_context()
796 if (err) in gssx_dec_accept_sec_context()
800 err = gssx_dec_bool(xdr, &value_follows); in gssx_dec_accept_sec_context()
801 if (err) in gssx_dec_accept_sec_context()
804 err = gssx_dec_ctx(xdr, res->context_handle); in gssx_dec_accept_sec_context()
805 if (err) in gssx_dec_accept_sec_context()
812 err = gssx_dec_bool(xdr, &value_follows); in gssx_dec_accept_sec_context()
813 if (err) in gssx_dec_accept_sec_context()
816 err = gssx_dec_buffer(xdr, res->output_token); in gssx_dec_accept_sec_context()
817 if (err) in gssx_dec_accept_sec_context()
824 err = gssx_dec_bool(xdr, &value_follows); in gssx_dec_accept_sec_context()
825 if (err) in gssx_dec_accept_sec_context()
829 err = -EINVAL; in gssx_dec_accept_sec_context()
834 err = gssx_dec_option_array(xdr, &res->options); in gssx_dec_accept_sec_context()
838 return err; in gssx_dec_accept_sec_context()