diff options
Diffstat (limited to 'lib/gnutls_handshake.h')
-rw-r--r-- | lib/gnutls_handshake.h | 44 |
1 files changed, 26 insertions, 18 deletions
diff --git a/lib/gnutls_handshake.h b/lib/gnutls_handshake.h index 5a86c9be74..52bb61dc9d 100644 --- a/lib/gnutls_handshake.h +++ b/lib/gnutls_handshake.h @@ -20,24 +20,32 @@ typedef enum Optional { OPTIONAL_PACKET, MANDATORY_PACKET } Optional; -int _gnutls_send_handshake( gnutls_session session, void* i_data, uint32 i_datasize, HandshakeType type); -int gnutls_send_hello_request( gnutls_session session); -int _gnutls_recv_hello_request( gnutls_session session, void* data, uint32 data_size); -int _gnutls_send_hello( gnutls_session session, int again); -int _gnutls_recv_hello( gnutls_session session, opaque* data, int datalen); -int gnutls_handshake( gnutls_session session); -int _gnutls_recv_handshake( gnutls_session session, uint8**, int*, HandshakeType, Optional optional); -int _gnutls_generate_session_id( opaque* session_id, uint8* len); -int _gnutls_handshake_common( gnutls_session session); -int _gnutls_handshake_client( gnutls_session session); -int _gnutls_handshake_server( gnutls_session session); -void _gnutls_set_server_random( gnutls_session session, uint8* random); -void _gnutls_set_client_random( gnutls_session session, uint8* random); -int _gnutls_tls_create_random( opaque* dst); -int _gnutls_remove_unwanted_ciphersuites( gnutls_session session, cipher_suite_st ** cipherSuites, int numCipherSuites, gnutls_pk_algorithm); -void gnutls_handshake_set_max_packet_length( gnutls_session session, int max); -int _gnutls_find_pk_algos_in_ciphersuites( opaque* data, int datalen); -int _gnutls_server_select_suite(gnutls_session session, opaque *data, int datalen); +int _gnutls_send_handshake(gnutls_session session, void *i_data, + uint32 i_datasize, HandshakeType type); +int gnutls_send_hello_request(gnutls_session session); +int _gnutls_recv_hello_request(gnutls_session session, void *data, + uint32 data_size); +int _gnutls_send_hello(gnutls_session session, int again); +int _gnutls_recv_hello(gnutls_session session, opaque * data, int datalen); +int gnutls_handshake(gnutls_session session); +int _gnutls_recv_handshake(gnutls_session session, uint8 **, int *, + HandshakeType, Optional optional); +int _gnutls_generate_session_id(opaque * session_id, uint8 * len); +int _gnutls_handshake_common(gnutls_session session); +int _gnutls_handshake_client(gnutls_session session); +int _gnutls_handshake_server(gnutls_session session); +void _gnutls_set_server_random(gnutls_session session, uint8 * random); +void _gnutls_set_client_random(gnutls_session session, uint8 * random); +int _gnutls_tls_create_random(opaque * dst); +int _gnutls_remove_unwanted_ciphersuites(gnutls_session session, + cipher_suite_st ** cipherSuites, + int numCipherSuites, + gnutls_pk_algorithm); +void gnutls_handshake_set_max_packet_length(gnutls_session session, + int max); +int _gnutls_find_pk_algos_in_ciphersuites(opaque * data, int datalen); +int _gnutls_server_select_suite(gnutls_session session, opaque * data, + int datalen); #define STATE session->internals.handshake_state /* This returns true if we have got there |