aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tlsv1_record.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-09-25 14:11:52 (GMT)
committerJouni Malinen <j@w1.fi>2011-09-25 14:11:52 (GMT)
commit3bff59f8571cd2ef63a18e0b4c43a0bbb5baf564 (patch)
tree4fe1ae3dc63d9799fdb3373822f7ba63167d47ee /src/tls/tlsv1_record.h
parent85b7187ffc086a4e034d0cc0f1db5b1e051e43b1 (diff)
downloadhostap-3bff59f8571cd2ef63a18e0b4c43a0bbb5baf564.zip
hostap-3bff59f8571cd2ef63a18e0b4c43a0bbb5baf564.tar.gz
hostap-3bff59f8571cd2ef63a18e0b4c43a0bbb5baf564.tar.bz2
TLS: Do not enforce in-place processing in tlsv1_record_send()
In preparation for record layer format changes, modify tlsv1_record_send() to use separate buffers for payload and the output message.
Diffstat (limited to 'src/tls/tlsv1_record.h')
-rw-r--r--src/tls/tlsv1_record.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tls/tlsv1_record.h b/src/tls/tlsv1_record.h
index 9c7c0a4..acbdcca 100644
--- a/src/tls/tlsv1_record.h
+++ b/src/tls/tlsv1_record.h
@@ -66,7 +66,8 @@ int tlsv1_record_set_cipher_suite(struct tlsv1_record_layer *rl,
int tlsv1_record_change_write_cipher(struct tlsv1_record_layer *rl);
int tlsv1_record_change_read_cipher(struct tlsv1_record_layer *rl);
int tlsv1_record_send(struct tlsv1_record_layer *rl, u8 content_type, u8 *buf,
- size_t buf_size, size_t payload_len, size_t *out_len);
+ size_t buf_size, const u8 *payload, size_t payload_len,
+ size_t *out_len);
int tlsv1_record_receive(struct tlsv1_record_layer *rl,
const u8 *in_data, size_t in_len,
u8 *out_data, size_t *out_len, u8 *alert);