Home
last modified time | relevance | path

Searched refs:in_buf (Results 1 – 25 of 36) sorted by relevance

12

/freebsd/crypto/krb5/src/lib/rpc/
H A Dauth_gssapi_misc.c97 gss_buffer_desc in_buf; in auth_gssapi_seal_seq() local
103 in_buf.length = sizeof(uint32_t); in auth_gssapi_seal_seq()
104 in_buf.value = (char *) &nl_seq_num; in auth_gssapi_seal_seq()
106 &in_buf, NULL, out_buf); in auth_gssapi_seal_seq()
118 gss_buffer_t in_buf, in auth_gssapi_unseal_seq() argument
125 gssstat = gss_unseal(&minor_stat, context, in_buf, &out_buf, in auth_gssapi_unseal_seq()
205 gss_buffer_desc in_buf, out_buf; in auth_gssapi_wrap_data() local
233 in_buf.length = xdr_getpos(&temp_xdrs); in auth_gssapi_wrap_data()
234 in_buf.value = xdralloc_getdata(&temp_xdrs); in auth_gssapi_wrap_data()
237 GSS_C_QOP_DEFAULT, &in_buf, &conf_state, in auth_gssapi_wrap_data()
[all …]
H A Dsvc_auth_gssapi.c165 gss_buffer_desc output_token, in_buf, out_buf; in gssrpc__svcauth_gssapi() local
516 in_buf.length = verf->oa_length; in gssrpc__svcauth_gssapi()
517 in_buf.value = verf->oa_base; in gssrpc__svcauth_gssapi()
519 if (auth_gssapi_unseal_seq(client_data->context, &in_buf, in gssrpc__svcauth_gssapi()
934 gss_buffer_desc in_buf; in svcauth_gssapi_set_names() local
959 in_buf.value = names[i].name; in svcauth_gssapi_set_names()
960 in_buf.length = strlen(in_buf.value) + 1; in svcauth_gssapi_set_names()
964 gssstat = gss_import_name(&minor_stat, &in_buf, names[i].type, in svcauth_gssapi_set_names()
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_tnc.c20 struct wpabuf *in_buf; member
63 wpabuf_free(data->in_buf); in eap_tnc_deinit()
152 if (len > wpabuf_tailroom(data->in_buf)) { in eap_tnc_process_cont()
158 wpabuf_put_data(data->in_buf, buf, len); in eap_tnc_process_cont()
161 (unsigned long) wpabuf_tailroom(data->in_buf)); in eap_tnc_process_cont()
174 if (data->in_buf == NULL && !(flags & EAP_TNC_FLAGS_LENGTH_INCLUDED)) { in eap_tnc_process_fragment()
181 if (data->in_buf == NULL) { in eap_tnc_process_fragment()
183 data->in_buf = wpabuf_alloc(message_length); in eap_tnc_process_fragment()
184 if (data->in_buf == NULL) { in eap_tnc_process_fragment()
190 wpabuf_put_data(data->in_buf, buf, len); in eap_tnc_process_fragment()
[all …]
H A Deap_ikev2.c20 struct wpabuf *in_buf; member
111 wpabuf_free(data->in_buf); in eap_ikev2_deinit()
271 if (len > wpabuf_tailroom(data->in_buf)) { in eap_ikev2_process_cont()
277 wpabuf_put_data(data->in_buf, buf, len); in eap_ikev2_process_cont()
280 (unsigned long) wpabuf_tailroom(data->in_buf)); in eap_ikev2_process_cont()
293 if (data->in_buf == NULL && !(flags & IKEV2_FLAGS_LENGTH_INCLUDED)) { in eap_ikev2_process_fragment()
300 if (data->in_buf == NULL) { in eap_ikev2_process_fragment()
309 data->in_buf = wpabuf_alloc(message_length); in eap_ikev2_process_fragment()
310 if (data->in_buf == NULL) { in eap_ikev2_process_fragment()
316 wpabuf_put_data(data->in_buf, buf, len); in eap_ikev2_process_fragment()
[all …]
H A Deap_wsc.c22 struct wpabuf *in_buf; member
301 wpabuf_free(data->in_buf); in eap_wsc_deinit()
388 if (len > wpabuf_tailroom(data->in_buf)) { in eap_wsc_process_cont()
394 wpabuf_put_data(data->in_buf, buf, len); in eap_wsc_process_cont()
397 (unsigned long) wpabuf_tailroom(data->in_buf)); in eap_wsc_process_cont()
410 if (data->in_buf == NULL && !(flags & WSC_FLAGS_LF)) { in eap_wsc_process_fragment()
417 if (data->in_buf == NULL) { in eap_wsc_process_fragment()
419 data->in_buf = wpabuf_alloc(message_length); in eap_wsc_process_fragment()
420 if (data->in_buf == NULL) { in eap_wsc_process_fragment()
427 wpabuf_put_data(data->in_buf, buf, len); in eap_wsc_process_fragment()
[all …]
/freebsd/crypto/heimdal/appl/test/
H A Dhttp_client.c196 char in_buf[1024], *in_ptr = in_buf; in http_query() local
214 ret = read (s, in_ptr, sizeof(in_buf) - in_len - 1); in http_query()
220 in_buf[ret + in_len] = '\0'; in http_query()
229 p = strstr(in_buf, "\r\n"); in http_query()
233 } else if (p == in_buf) { in http_query()
234 memmove(in_buf, in_buf + 2, sizeof(in_buf) - 2); in http_query()
240 req->response = emalloc(p - in_buf + 1); in http_query()
241 memcpy(req->response, in_buf, p - in_buf); in http_query()
242 req->response[p - in_buf] = '\0'; in http_query()
247 req->headers[req->num_headers] = emalloc(p - in_buf + 1); in http_query()
[all …]
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_tnc.c23 struct wpabuf *in_buf; member
97 wpabuf_free(data->in_buf); in eap_tnc_reset()
401 if (len > wpabuf_tailroom(data->in_buf)) { in eap_tnc_process_cont()
407 wpabuf_put_data(data->in_buf, buf, len); in eap_tnc_process_cont()
410 (unsigned long) wpabuf_tailroom(data->in_buf)); in eap_tnc_process_cont()
421 if (data->in_buf == NULL && !(flags & EAP_TNC_FLAGS_LENGTH_INCLUDED)) { in eap_tnc_process_fragment()
427 if (data->in_buf == NULL) { in eap_tnc_process_fragment()
429 data->in_buf = wpabuf_alloc(message_length); in eap_tnc_process_fragment()
430 if (data->in_buf == NULL) { in eap_tnc_process_fragment()
435 wpabuf_put_data(data->in_buf, buf, len); in eap_tnc_process_fragment()
[all …]
H A Deap_server_wsc.c22 struct wpabuf *in_buf; member
160 wpabuf_free(data->in_buf); in eap_wsc_reset()
304 if (len > wpabuf_tailroom(data->in_buf)) { in eap_wsc_process_cont()
310 wpabuf_put_data(data->in_buf, buf, len); in eap_wsc_process_cont()
313 (unsigned long) wpabuf_tailroom(data->in_buf)); in eap_wsc_process_cont()
324 if (data->in_buf == NULL && !(flags & WSC_FLAGS_LF)) { in eap_wsc_process_fragment()
330 if (data->in_buf == NULL) { in eap_wsc_process_fragment()
332 data->in_buf = wpabuf_alloc(message_length); in eap_wsc_process_fragment()
333 if (data->in_buf == NULL) { in eap_wsc_process_fragment()
339 wpabuf_put_data(data->in_buf, buf, len); in eap_wsc_process_fragment()
[all …]
H A Deap_server_ikev2.c20 struct wpabuf *in_buf; member
126 wpabuf_free(data->in_buf); in eap_ikev2_reset()
283 if (len > wpabuf_tailroom(data->in_buf)) { in eap_ikev2_process_cont()
289 wpabuf_put_data(data->in_buf, buf, len); in eap_ikev2_process_cont()
292 (unsigned long) wpabuf_tailroom(data->in_buf)); in eap_ikev2_process_cont()
303 if (data->in_buf == NULL && !(flags & IKEV2_FLAGS_LENGTH_INCLUDED)) { in eap_ikev2_process_fragment()
309 if (data->in_buf == NULL) { in eap_ikev2_process_fragment()
317 data->in_buf = wpabuf_alloc(message_length); in eap_ikev2_process_fragment()
318 if (data->in_buf == NULL) { in eap_ikev2_process_fragment()
323 wpabuf_put_data(data->in_buf, buf, len); in eap_ikev2_process_fragment()
[all …]
/freebsd/crypto/krb5/src/appl/gss-sample/
H A Dgss-client.c330 read_file(char *file_name, gss_buffer_t in_buf) in read_file() argument
344 in_buf->length = stat_buf.st_size; in read_file()
346 if (in_buf->length == 0) { in read_file()
347 in_buf->value = NULL; in read_file()
351 if ((in_buf->value = malloc(in_buf->length)) == 0) { in read_file()
353 (int) in_buf->length); in read_file()
360 count = read(fd, in_buf->value, in_buf->length); in read_file()
365 if (count < (int)in_buf->length) in read_file()
367 count, (int) in_buf->length); in read_file()
406 gss_buffer_desc in_buf, out_buf; in call_server() local
[all …]
/freebsd/contrib/dialog/
H A Dtextbox.c48 long in_buf; /* ending index into buf[] for page */ member
286 while (obj->buf[obj->in_buf] != '\n') { in get_line()
287 if (obj->buf[obj->in_buf] == '\0') { /* Either end of file or end of buffer reached */ in get_line()
295 obj->in_buf = 0; in get_line()
302 obj->line[i++] = obj->buf[obj->in_buf++]; in get_line()
306 obj->in_buf++; in get_line()
313 obj->in_buf++; /* move past '\n' */ in get_line()
344 if (obj->in_buf == 0) { in back_lines()
364 obj->in_buf = tabize(obj, val_to_tabize, (long *) 0); in back_lines()
371 obj->in_buf--; in back_lines()
[all …]
/freebsd/contrib/xz/src/xz/
H A Dcoder.c56 static io_buf in_buf; variable
736 && memcmp(in_buf.u8, magic, sizeof(magic)) == 0; in is_format_xz()
750 if (lzma_properties_decode(&filter, NULL, in_buf.u8, 5) != LZMA_OK) in is_format_lzma()
778 uncompressed_size |= (uint64_t)(in_buf.u8[5 + i]) << (i * 8); in is_format_lzma()
795 && memcmp(in_buf.u8, magic, sizeof(magic)) == 0; in is_format_lzip()
1196 strm.next_in = in_buf.u8; in coder_normal()
1203 strm.avail_in = io_read(pair, &in_buf, read_size); in coder_normal()
1300 pair, &in_buf, 1); in coder_normal()
1365 if (io_write(pair, &in_buf, strm.avail_in)) in coder_passthru()
1372 strm.avail_in = io_read(pair, &in_buf, IO_BUFFER_SIZE); in coder_passthru()
[all …]
/freebsd/sys/dev/firmware/arm/
H A Dscmi_clk.c
/freebsd/crypto/krb5/src/util/profile/
H A Dargv_parse.c50 int argv_parse(char *in_buf, int *ret_argc, char ***ret_argv) in argv_parse() argument
57 buf = malloc(strlen(in_buf)+1); in argv_parse()
63 for (cp = in_buf; (ch = *cp); cp++) { in argv_parse()
H A Dargv_parse.h45 extern int argv_parse(char *in_buf, int *ret_argc, char ***ret_argv);
/freebsd/crypto/heimdal/appl/push/
H A Dpush.c216 char *in_buf; in doit() local
234 in_buf = emalloc(PUSH_BUFSIZ + 1); in doit()
235 in_ptr = in_buf; in doit()
320 char *tmp = erealloc(in_buf, in_buf_size + PUSH_BUFSIZ + 1); in doit()
321 in_ptr = tmp + (in_ptr - in_buf); in doit()
322 in_buf = tmp; in doit()
336 beg = in_buf; in doit()
475 memmove (in_buf, beg, rem); in doit()
477 in_ptr = in_buf + rem; in doit()
/freebsd/share/examples/libusb20/
H A Dbulk.c120 uint8_t in_buf[BUFLEN]; in doit() local
133 if ((rv = libusb20_tr_bulk_intr_sync(xfr_in, in_buf, BUFLEN, &rlen, TIMEOUT)) in doit()
140 print_formatted(in_buf, rlen); in doit()
H A Dcontrol.c164 uint8_t in_buf[BUFLEN]; in doit() local
167 if ((rv = libusb20_tr_bulk_intr_sync(xfr_intr, in_buf, BUFLEN, &rlen, TIMEOUT)) in doit()
174 print_formatted(in_buf, rlen); in doit()
/freebsd/usr.sbin/config/
H A Dlang.l46 YY_BUFFER_STATE in_buf; /* previous lex state */ member
303 in->in_buf = YY_CURRENT_BUFFER;
329 yy_switch_to_buffer(in->in_buf);
/freebsd/contrib/xz/src/xzdec/
H A Dxzdec.c188 uint8_t in_buf[BUFSIZ]; in uncompress() local
199 strm->next_in = in_buf; in uncompress()
200 strm->avail_in = fread(in_buf, 1, BUFSIZ, file); in uncompress()
256 || fread(in_buf, 1, 1, file) in uncompress()
/freebsd/sys/dev/xilinx/
H A Daxi_quad_spi.c164 uint8_t *in_buf, int bufsz, int cs) in spi_txrx() argument
176 if (in_buf) in spi_txrx()
177 in_buf[i] = (data & 0xff); in spi_txrx()
/freebsd/tests/sys/fs/fusefs/
H A Dioctl.cc66 uint8_t *in_buf = in.body.bytes + sizeof(in.body.ioctl); in expect_ioctl_rw() local
75 memcpy(&result, in_buf, sizeof(int)); in expect_ioctl_rw()
79 if (0 != strncmp(INPUT_DATA, (char *)in_buf, arg_len)) { in expect_ioctl_rw()
/freebsd/sys/dev/cxgbe/cudbg/
H A Dfastlz_api.c84 int write_to_buf(void *out_buf, u32 out_buf_size, u32 *offset, void *in_buf, in write_to_buf() argument
94 memcpy((char *)out_buf + *offset, in_buf, in_buf_size); in write_to_buf()
101 int read_from_buf(void *in_buf, u32 in_buf_size, u32 *offset, void *out_buf, in read_from_buf() argument
107 memcpy((char *)out_buf, (char *)in_buf + *offset, out_buf_size); in read_from_buf()
/freebsd/crypto/krb5/src/kadmin/server/
H A Dovsec_kadmd.c339 gss_buffer_desc in_buf; in main() local
481 in_buf.value = names[1].name; in main()
482 in_buf.length = strlen(names[1].name) + 1; in main()
483 (void)gss_import_name(&minor_status, &in_buf, nt_krb5_name_oid, in main()
/freebsd/sys/arm/freescale/vybrid/
H A Dvf_spi.c206 uint8_t *in_buf, int bufsz, int cs) in spi_txrx() argument
241 in_buf[i] = READ1(sc, SPI_POPR); in spi_txrx()

12