Lines Matching refs:client

43 struct client {
60 static struct client **clients;
64 init_sec_context(struct client *client,
72 put32(client, eInitContext);
73 put32(client, *hContext);
74 put32(client, *hCred);
75 put32(client, flags);
76 putstring(client, targetname);
77 putdata(client, *itoken);
78 ret32(client, *hContext);
79 ret32(client, val);
80 retdata(client, *otoken);
85 accept_sec_context(struct client *client,
94 put32(client, eAcceptContext);
95 put32(client, *hContext);
96 put32(client, flags);
97 putdata(client, *itoken);
98 ret32(client, *hContext);
99 ret32(client, val);
100 retdata(client, *otoken);
101 ret32(client, *hDelegCred);
106 acquire_cred(struct client *client,
113 put32(client, eAcquireCreds);
114 putstring(client, username);
115 putstring(client, password);
116 put32(client, flags);
117 ret32(client, val);
118 ret32(client, *hCred);
123 toast_resource(struct client *client,
127 put32(client, eToastResource);
128 put32(client, hCred);
129 ret32(client, val);
134 goodbye(struct client *client)
136 put32(client, eGoodBye);
141 get_targetname(struct client *client,
144 put32(client, eGetTargetName);
145 retstring(client, *target);
150 encrypt_token(struct client *client, int32_t hContext, int32_t flags,
154 put32(client, eEncrypt);
155 put32(client, hContext);
156 put32(client, flags);
157 put32(client, 0);
158 putdata(client, *in);
159 ret32(client, val);
160 retdata(client, *out);
165 decrypt_token(struct client *client, int32_t hContext, int flags,
169 put32(client, eDecrypt);
170 put32(client, hContext);
171 put32(client, flags);
172 put32(client, 0);
173 putdata(client, *in);
174 ret32(client, val);
175 retdata(client, *out);
180 get_mic(struct client *client, int32_t hContext,
184 put32(client, eSign);
185 put32(client, hContext);
186 put32(client, 0);
187 put32(client, 0);
188 putdata(client, *in);
189 ret32(client, val);
190 retdata(client, *mic);
195 verify_mic(struct client *client, int32_t hContext,
199 put32(client, eVerify);
200 put32(client, hContext);
201 put32(client, 0);
202 put32(client, 0);
203 putdata(client, *in);
204 putdata(client, *mic);
205 ret32(client, val);
211 get_version_capa(struct client *client,
215 put32(client, eGetVersionAndCapabilities);
216 ret32(client, *version);
217 ret32(client, *capa);
218 retstring(client, *version_str);
223 get_moniker(struct client *client,
226 put32(client, eGetMoniker);
227 retstring(client, *moniker);
232 wait_log(struct client *c)
278 build_context(struct client *ipeer, struct client *apeer,
374 test_mic(struct client *c1, int32_t hc1, struct client *c2, int32_t hc2)
395 test_wrap(struct client *c1, int32_t hc1, struct client *c2, int32_t hc2,
434 test_token(struct client *c1, int32_t hc1, struct client *c2, int32_t hc2)
457 struct client *c = ptr;
490 errx(1, "client send bad log command: %d", (int)cmd);
502 struct client *c = ecalloc(1, sizeof(*c));
563 printf("starting log socket to client %s\n", c->moniker);
594 static struct client *
601 errx(1, "failed to find client %s", slave);
724 struct client *c = clients[i];
783 struct client *client, *server;
787 client = get_client(p[0]);
789 val = acquire_cred(client, user, password, 1, &hCred);
801 printf("%s -> %s\n", client->moniker, server->moniker);
803 val = build_context(client, server,
813 val = test_token(client, clientC, server, serverC);
817 toast_resource(client, clientC);
823 toast_resource(client, hCred);
825 client = server;
828 toast_resource(client, hCred);