Lines Matching full:client

43 struct client {  struct
60 static struct client **clients; argument
64 init_sec_context(struct client *client, in init_sec_context() argument
72 put32(client, eInitContext); in init_sec_context()
73 put32(client, *hContext); in init_sec_context()
74 put32(client, *hCred); in init_sec_context()
75 put32(client, flags); in init_sec_context()
76 putstring(client, targetname); in init_sec_context()
77 putdata(client, *itoken); in init_sec_context()
78 ret32(client, *hContext); in init_sec_context()
79 ret32(client, val); in init_sec_context()
80 retdata(client, *otoken); in init_sec_context()
85 accept_sec_context(struct client *client, in accept_sec_context() argument
94 put32(client, eAcceptContext); in accept_sec_context()
95 put32(client, *hContext); in accept_sec_context()
96 put32(client, flags); in accept_sec_context()
97 putdata(client, *itoken); in accept_sec_context()
98 ret32(client, *hContext); in accept_sec_context()
99 ret32(client, val); in accept_sec_context()
100 retdata(client, *otoken); in accept_sec_context()
101 ret32(client, *hDelegCred); in accept_sec_context()
106 acquire_cred(struct client *client, in acquire_cred() argument
113 put32(client, eAcquireCreds); in acquire_cred()
114 putstring(client, username); in acquire_cred()
115 putstring(client, password); in acquire_cred()
116 put32(client, flags); in acquire_cred()
117 ret32(client, val); in acquire_cred()
118 ret32(client, *hCred); in acquire_cred()
123 toast_resource(struct client *client, in toast_resource() argument
127 put32(client, eToastResource); in toast_resource()
128 put32(client, hCred); in toast_resource()
129 ret32(client, val); in toast_resource()
134 goodbye(struct client *client) in goodbye() argument
136 put32(client, eGoodBye); in goodbye()
141 get_targetname(struct client *client, in get_targetname() argument
144 put32(client, eGetTargetName); in get_targetname()
145 retstring(client, *target); in get_targetname()
150 encrypt_token(struct client *client, int32_t hContext, int32_t flags, in encrypt_token() argument
154 put32(client, eEncrypt); in encrypt_token()
155 put32(client, hContext); in encrypt_token()
156 put32(client, flags); in encrypt_token()
157 put32(client, 0); in encrypt_token()
158 putdata(client, *in); in encrypt_token()
159 ret32(client, val); in encrypt_token()
160 retdata(client, *out); in encrypt_token()
165 decrypt_token(struct client *client, int32_t hContext, int flags, in decrypt_token() argument
169 put32(client, eDecrypt); in decrypt_token()
170 put32(client, hContext); in decrypt_token()
171 put32(client, flags); in decrypt_token()
172 put32(client, 0); in decrypt_token()
173 putdata(client, *in); in decrypt_token()
174 ret32(client, val); in decrypt_token()
175 retdata(client, *out); in decrypt_token()
180 wrap_token_ext(struct client *client, int32_t hContext, int32_t flags, in wrap_token_ext() argument
185 put32(client, eWrapExt); in wrap_token_ext()
186 put32(client, hContext); in wrap_token_ext()
187 put32(client, flags); in wrap_token_ext()
188 put32(client, bflags); in wrap_token_ext()
189 putdata(client, *header); in wrap_token_ext()
190 putdata(client, *in); in wrap_token_ext()
191 putdata(client, *trailer); in wrap_token_ext()
192 ret32(client, val); in wrap_token_ext()
193 retdata(client, *out); in wrap_token_ext()
198 unwrap_token_ext(struct client *client, int32_t hContext, int32_t flags, in unwrap_token_ext() argument
203 put32(client, eUnwrapExt); in unwrap_token_ext()
204 put32(client, hContext); in unwrap_token_ext()
205 put32(client, flags); in unwrap_token_ext()
206 put32(client, bflags); in unwrap_token_ext()
207 putdata(client, *header); in unwrap_token_ext()
208 putdata(client, *in); in unwrap_token_ext()
209 putdata(client, *trailer); in unwrap_token_ext()
210 ret32(client, val); in unwrap_token_ext()
211 retdata(client, *out); in unwrap_token_ext()
216 get_mic(struct client *client, int32_t hContext, in get_mic() argument
220 put32(client, eSign); in get_mic()
221 put32(client, hContext); in get_mic()
222 put32(client, 0); in get_mic()
223 put32(client, 0); in get_mic()
224 putdata(client, *in); in get_mic()
225 ret32(client, val); in get_mic()
226 retdata(client, *mic); in get_mic()
231 verify_mic(struct client *client, int32_t hContext, in verify_mic() argument
235 put32(client, eVerify); in verify_mic()
236 put32(client, hContext); in verify_mic()
237 put32(client, 0); in verify_mic()
238 put32(client, 0); in verify_mic()
239 putdata(client, *in); in verify_mic()
240 putdata(client, *mic); in verify_mic()
241 ret32(client, val); in verify_mic()
247 get_version_capa(struct client *client, in get_version_capa() argument
251 put32(client, eGetVersionAndCapabilities); in get_version_capa()
252 ret32(client, *version); in get_version_capa()
253 ret32(client, *capa); in get_version_capa()
254 retstring(client, *version_str); in get_version_capa()
259 get_moniker(struct client *client, in get_moniker() argument
262 put32(client, eGetMoniker); in get_moniker()
263 retstring(client, *moniker); in get_moniker()
268 wait_log(struct client *c) in wait_log()
314 build_context(struct client *ipeer, struct client *apeer, in build_context()
410 test_mic(struct client *c1, int32_t hc1, struct client *c2, int32_t hc2) in test_mic()
431 test_wrap(struct client *c1, int32_t hc1, struct client *c2, int32_t hc2, in test_wrap()
470 test_wrap_ext(struct client *c1, int32_t hc1, struct client *c2, int32_t hc2, in test_wrap_ext()
516 test_token(struct client *c1, int32_t hc1, struct client *c2, int32_t hc2, int wrap_ext) in test_token()
566 struct client *c = ptr; in log_function()
599 errx(1, "client send bad log command: %d", (int)cmd); in log_function()
611 struct client *c = ecalloc(1, sizeof(*c)); in connect_client()
672 printf("starting log socket to client %s\n", c->moniker); in connect_client()
703 static struct client *
710 errx(1, "failed to find client %s", slave); in get_client()
836 struct client *c = clients[i]; in main()
895 struct client *client, *server; in main() local
899 client = get_client(p[0]); in main()
901 val = acquire_cred(client, user, password, 1, &hCred); in main()
913 printf("%s -> %s\n", client->moniker, server->moniker); in main()
915 val = build_context(client, server, in main()
925 val = test_token(client, clientC, server, serverC, wrap_ext); in main()
929 toast_resource(client, clientC); in main()
935 toast_resource(client, hCred); in main()
937 client = server; in main()
940 toast_resource(client, hCred); in main()