diff options
author | Martin Willi <martin@revosec.ch> | 2010-08-23 16:21:49 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-08-24 08:45:49 +0200 |
commit | 1475800080d605abb1995bfba1ce8ca98637917c (patch) | |
tree | 973c91fcd5dd8bcb6c2970227a806516479742f5 /src/libtls/tls.h | |
parent | 477650005599ffb63c9833daf34be93471eba437 (diff) | |
download | strongswan-1475800080d605abb1995bfba1ce8ca98637917c.tar.bz2 strongswan-1475800080d605abb1995bfba1ce8ca98637917c.tar.xz |
Moved TLS record parsing/generation to tls.c
Diffstat (limited to 'src/libtls/tls.h')
-rw-r--r-- | src/libtls/tls.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/libtls/tls.h b/src/libtls/tls.h index 5c06686b7..36ca59201 100644 --- a/src/libtls/tls.h +++ b/src/libtls/tls.h @@ -106,29 +106,26 @@ enum tls_purpose_t { struct tls_t { /** - * Process a TLS record, pass it to upper layers. + * Process one or more TLS records, pass it to upper layers. * - * @param type type of the TLS record to process - * @param data associated TLS record data + * @param data TLS record data, including headers * @return * - SUCCESS if TLS negotiation complete * - FAILED if TLS handshake failed * - NEED_MORE if more invocations to process/build needed */ - status_t (*process)(tls_t *this, tls_content_type_t type, chunk_t data); + status_t (*process)(tls_t *this, chunk_t data); /** * Query upper layer for TLS record, build protected record. * - * @param type type of the built TLS record * @param data allocated data of the built TLS record * @return * - SUCCESS if TLS negotiation complete * - FAILED if TLS handshake failed - * - NEED_MORE if upper layers have more records to send - * - INVALID_STATE if more input records required + * - NEED_MORE if more input records required */ - status_t (*build)(tls_t *this, tls_content_type_t *type, chunk_t *data); + status_t (*build)(tls_t *this, chunk_t *data); /** * Check if TLS stack is acting as a server. |