aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tlsv1_client.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-11-13 08:47:04 (GMT)
committerJouni Malinen <j@w1.fi>2011-11-13 08:47:04 (GMT)
commitdbdcfa397932df90170a449acc48f71b8122a51a (patch)
treef927c888c724b89e716c9294546113adf31b4011 /src/tls/tlsv1_client.h
parent613522a40ac91ec64f81af850d4c50caa3129748 (diff)
downloadhostap-dbdcfa397932df90170a449acc48f71b8122a51a.zip
hostap-dbdcfa397932df90170a449acc48f71b8122a51a.tar.gz
hostap-dbdcfa397932df90170a449acc48f71b8122a51a.tar.bz2
TLS: Add preliminary support for partial message processing
Reassemble partial TLS records to make the internal TLS client implementation more convenient for stream sockets. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/tls/tlsv1_client.h')
-rw-r--r--src/tls/tlsv1_client.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tls/tlsv1_client.h b/src/tls/tlsv1_client.h
index a620d62..8043dad 100644
--- a/src/tls/tlsv1_client.h
+++ b/src/tls/tlsv1_client.h
@@ -29,13 +29,13 @@ int tlsv1_client_prf(struct tlsv1_client *conn, const char *label,
u8 * tlsv1_client_handshake(struct tlsv1_client *conn,
const u8 *in_data, size_t in_len,
size_t *out_len, u8 **appl_data,
- size_t *appl_data_len);
+ size_t *appl_data_len, int *need_more_data);
int tlsv1_client_encrypt(struct tlsv1_client *conn,
const u8 *in_data, size_t in_len,
u8 *out_data, size_t out_len);
-int tlsv1_client_decrypt(struct tlsv1_client *conn,
- const u8 *in_data, size_t in_len,
- u8 *out_data, size_t out_len);
+struct wpabuf * tlsv1_client_decrypt(struct tlsv1_client *conn,
+ const u8 *in_data, size_t in_len,
+ int *need_more_data);
int tlsv1_client_get_cipher(struct tlsv1_client *conn, char *buf,
size_t buflen);
int tlsv1_client_shutdown(struct tlsv1_client *conn);