Lines Matching defs:outbuf
1179 char *plaintext, *decrypted, *outbuf;
1190 outbuf = malloc(outbuf_cap);
1191 hdr = (struct tls_record_layer *)outbuf;
1233 * into outbuf. Start by reading the header
1238 rv = read(ev.ident, outbuf + outbuf_len,
1249 debug_hexdump(tc, outbuf, outbuf_len,
1263 rv = read(ev.ident, outbuf + outbuf_len,
1273 seqno, outbuf, outbuf_len,
1290 free(outbuf);
1329 char *plaintext, *decrypted, *outbuf;
1340 outbuf = malloc(outbuf_cap);
1341 hdr = (struct tls_record_layer *)outbuf;
1358 rv = read(sockets[0], outbuf, sizeof(struct tls_record_layer));
1364 rv = read(sockets[0], outbuf + sizeof(struct tls_record_layer),
1368 rv = decrypt_tls_record(tc, en, seqno, outbuf, record_len, decrypted,
1377 free(outbuf);
1389 char *outbuf;
1396 outbuf = malloc(outbuf_cap);
1397 hdr = (struct tls_record_layer *)outbuf;
1426 rv = read(sockets[0], outbuf, sizeof(struct tls_record_layer));
1432 rv = read(sockets[0], outbuf + sizeof(struct tls_record_layer),
1436 rv = decrypt_tls_record(tc, en, seqno, outbuf, record_len, NULL, 0,
1444 free(outbuf);
1498 char *plaintext, *received, *outbuf;
1507 outbuf = malloc(outbuf_cap);
1541 todo, outbuf, outbuf_cap, padding);
1551 rv = write(ev.ident, outbuf + outbuf_sent,
1582 free(outbuf);
1618 char *plaintext, *outbuf;
1627 outbuf = malloc(outbuf_cap);
1639 plaintext, len, outbuf, outbuf_cap, 0);
1644 outbuf[offset] ^= 0x01;
1646 rv = write(sockets[1], outbuf, outbuf_len);
1651 free(outbuf);
1707 char *plaintext, *outbuf;
1716 outbuf = malloc(outbuf_cap);
1728 plaintext, len, outbuf, outbuf_cap, 0);
1730 rv = write(sockets[1], outbuf, outbuf_len / 2);
1737 free(outbuf);
1748 char *plaintext, *outbuf;
1757 outbuf = malloc(outbuf_cap);
1769 plaintext, len, outbuf, outbuf_cap, 0);
1771 hdr = (void *)outbuf;
1774 rv = write(sockets[1], outbuf, outbuf_len);
1779 free(outbuf);
1790 char *plaintext, *outbuf;
1799 outbuf = malloc(outbuf_cap);
1811 plaintext, len, outbuf, outbuf_cap, 0);
1813 hdr = (void *)outbuf;
1816 rv = write(sockets[1], outbuf, outbuf_len);
1821 free(outbuf);
1832 char *plaintext, *outbuf;
1842 outbuf = malloc(outbuf_cap);
1854 plaintext, len, outbuf, outbuf_cap, 0);
1856 hdr = (void *)outbuf;
1859 rv = write(sockets[1], outbuf, outbuf_len);
1864 free(outbuf);
1875 char *outbuf;
1881 outbuf = calloc(1, outbuf_len);
1892 hdr = (void *)outbuf;
1901 rv = write(sockets[1], outbuf, outbuf_len);
1917 free(outbuf);