Lines Matching refs:ret
46 krb5_error_code ret;
54 ret = decode_Ticket (ticket->data, ticket->length, &tkt, &len);
55 if (ret)
56 krb5_err (context, 1, ret, "decode_Ticket");
58 ret = krb5_string_to_key (context, enctype, "foo", server, &key);
59 if (ret)
60 krb5_err (context, 1, ret, "krb5_string_to_key");
62 ret = krb5_crypto_init(context, &key, 0, &crypto);
63 if (ret)
64 krb5_err (context, 1, ret, "krb5_crypto_init");
66 ret = krb5_decrypt_EncryptedData (context, crypto, KRB5_KU_TICKET,
69 if (ret)
70 krb5_err (context, 1, ret, "krb5_decrypt_EncryptedData");
71 ret = decode_EncTicketPart (dec_data.data, dec_data.length,
74 if (ret)
75 krb5_err (context, 1, ret, "krb5_decode_EncTicketPart");
87 usage (int ret)
93 exit (ret);
99 krb5_error_code ret;
107 ret = krb5_init_context (&context);
108 if (ret)
109 errx(1, "krb5_init_context failed: %d", ret);
128 ret = krb5_cc_default(context, &cache);
129 if (ret)
130 krb5_err (context, 1, ret, "krb5_cc_default");
137 ret = krb5_string_to_enctype(context, etype_str, &enctype);
138 if (ret)
143 ret = krb5_cc_get_principal(context, cache, &in.client);
144 if (ret)
145 krb5_err (context, 1, ret, "krb5_cc_get_principal");
147 ret = krb5_parse_name(context, argv[0], &in.server);
148 if (ret)
149 krb5_err (context, 1, ret, "krb5_parse_name %s", argv[0]);
152 ret = krb5_get_credentials(context, 0, cache, &in, &out);
153 if (ret)
154 krb5_err (context, 1, ret, "krb5_get_credentials");