Lines Matching +full:input +full:- +full:value

2  * Copyright (c) 1998 - 2005 Kungliga Tekniska Högskolan
59 d->context_hdl = GSS_C_NO_CONTEXT; in gss_init()
60 d->delegated_cred_handle = GSS_C_NO_CREDENTIAL; in gss_init()
77 return -1; in gss_check_prot()
85 gss_buffer_desc input, output; in gss_decode() local
91 input.length = len; in gss_decode()
92 input.value = buf; in gss_decode()
94 d->context_hdl, in gss_decode()
95 &input, in gss_decode()
100 return -1; in gss_decode()
101 memmove(buf, output.value, output.length); in gss_decode()
118 gss_buffer_desc input, output; in gss_encode() local
122 input.length = length; in gss_encode()
123 input.value = from; in gss_encode()
125 d->context_hdl, in gss_encode()
128 &input, in gss_encode()
131 *to = output.value; in gss_encode()
140 switch (sa->sa_family) { in sockaddr_to_gss_address()
145 gss_addr->length = 16; in sockaddr_to_gss_address()
146 gss_addr->value = &sin6->sin6_addr; in sockaddr_to_gss_address()
154 gss_addr->length = 4; in sockaddr_to_gss_address()
155 gss_addr->value = &sin4->sin_addr; in sockaddr_to_gss_address()
160 errx (1, "unknown address family %d", sa->sa_family); in sockaddr_to_gss_address()
185 &bindings->initiator_addrtype, in gss_adat()
186 &bindings->initiator_address); in gss_adat()
188 &bindings->acceptor_addrtype, in gss_adat()
189 &bindings->acceptor_address); in gss_adat()
191 bindings->application_data.length = 0; in gss_adat()
192 bindings->application_data.value = NULL; in gss_adat()
196 input_token.value = buf; in gss_adat()
200 &d->context_hdl, in gss_adat()
209 &d->delegated_cred_handle); in gss_adat()
215 if(base64_encode(output_token.value, output_token.length, &p) < 0) { in gss_adat()
216 reply(535, "Out of memory base64-encoding."); in gss_adat()
217 return -1; in gss_adat()
222 d->client_name = client_name; in gss_adat()
247 (char*)status_string.value); in gss_adat()
295 name.value = str; in import_name()
314 (char *)name.value, in import_name()
316 (char *)status_string.value); in import_name()
317 free(name.value); in import_name()
321 free(name.value); in import_name()
331 gss_buffer_desc input, output_token; in gss_auth() local
345 input.length = 0; in gss_auth()
346 input.value = NULL; in gss_auth()
354 &bindings->initiator_addrtype, in gss_auth()
355 &bindings->initiator_address); in gss_auth()
357 &bindings->acceptor_addrtype, in gss_auth()
358 &bindings->acceptor_address); in gss_auth()
360 bindings->application_data.length = 0; in gss_auth()
361 bindings->application_data.value = NULL; in gss_auth()
371 &d->context_hdl, in gss_auth()
377 &input, in gss_auth()
387 d->context_hdl = GSS_C_NO_CONTEXT; in gss_auth()
412 (char*)status_string.value); in gss_auth()
417 if (input.value) { in gss_auth()
418 free(input.value); in gss_auth()
419 input.value = NULL; in gss_auth()
420 input.length = 0; in gss_auth()
423 base64_encode(output_token.value, output_token.length, &p); in gss_auth()
429 if (d->context_hdl != GSS_C_NO_CONTEXT) in gss_auth()
431 &d->context_hdl, in gss_auth()
445 input.value = malloc(strlen(p)); in gss_auth()
446 input.length = base64_decode(p, input.value); in gss_auth()
463 if (input.value) in gss_auth()
464 free(input.value); in gss_auth()
470 d->context_hdl, in gss_auth()
487 (char *)name.value); in gss_auth()