summaryrefslogtreecommitdiff
path: root/lib/gnutls_handshake.h
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2005-11-07 23:27:56 +0000
committerSimon Josefsson <simon@josefsson.org>2005-11-07 23:27:56 +0000
commita5891d75997c9529b9fc5c273df8bd0df4093cd0 (patch)
treefd6eec448a88c5eb891cc145921c5793662da604 /lib/gnutls_handshake.h
parentaf21484a8daf15da48f7d00c4fe632708a757a64 (diff)
downloadgnutls-a5891d75997c9529b9fc5c273df8bd0df4093cd0.tar.gz
Use GNU coding style.
Diffstat (limited to 'lib/gnutls_handshake.h')
-rw-r--r--lib/gnutls_handshake.h50
1 files changed, 26 insertions, 24 deletions
diff --git a/lib/gnutls_handshake.h b/lib/gnutls_handshake.h
index f684b70ee3..3067084b86 100644
--- a/lib/gnutls_handshake.h
+++ b/lib/gnutls_handshake.h
@@ -22,31 +22,33 @@
*
*/
-typedef enum Optional { OPTIONAL_PACKET, MANDATORY_PACKET } Optional;
+typedef enum Optional
+{ OPTIONAL_PACKET, MANDATORY_PACKET } Optional;
-int _gnutls_send_handshake(gnutls_session_t session, void *i_data,
- uint32 i_datasize, gnutls_handshake_description_t type);
-int _gnutls_recv_hello_request(gnutls_session_t session, void *data,
- uint32 data_size);
-int _gnutls_send_hello(gnutls_session_t session, int again);
-int _gnutls_recv_hello(gnutls_session_t session, opaque * data,
- int datalen);
-int _gnutls_recv_handshake(gnutls_session_t session, uint8 **, int *,
- gnutls_handshake_description_t, Optional optional);
-int _gnutls_generate_session_id(opaque * session_id, uint8 * len);
-int _gnutls_handshake_common(gnutls_session_t session);
-int _gnutls_handshake_client(gnutls_session_t session);
-int _gnutls_handshake_server(gnutls_session_t session);
-void _gnutls_set_server_random(gnutls_session_t session, uint8 * rnd);
-void _gnutls_set_client_random(gnutls_session_t session, uint8 * rnd);
-int _gnutls_tls_create_random(opaque * dst);
-int _gnutls_remove_unwanted_ciphersuites(gnutls_session_t session,
- cipher_suite_st ** cipherSuites,
- int numCipherSuites,
- gnutls_pk_algorithm_t);
-int _gnutls_find_pk_algos_in_ciphersuites(opaque * data, int datalen);
-int _gnutls_server_select_suite(gnutls_session_t session, opaque * data,
- int datalen);
+int _gnutls_send_handshake (gnutls_session_t session, void *i_data,
+ uint32 i_datasize,
+ gnutls_handshake_description_t type);
+int _gnutls_recv_hello_request (gnutls_session_t session, void *data,
+ uint32 data_size);
+int _gnutls_send_hello (gnutls_session_t session, int again);
+int _gnutls_recv_hello (gnutls_session_t session, opaque * data, int datalen);
+int _gnutls_recv_handshake (gnutls_session_t session, uint8 **, int *,
+ gnutls_handshake_description_t,
+ Optional optional);
+int _gnutls_generate_session_id (opaque * session_id, uint8 * len);
+int _gnutls_handshake_common (gnutls_session_t session);
+int _gnutls_handshake_client (gnutls_session_t session);
+int _gnutls_handshake_server (gnutls_session_t session);
+void _gnutls_set_server_random (gnutls_session_t session, uint8 * rnd);
+void _gnutls_set_client_random (gnutls_session_t session, uint8 * rnd);
+int _gnutls_tls_create_random (opaque * dst);
+int _gnutls_remove_unwanted_ciphersuites (gnutls_session_t session,
+ cipher_suite_st ** cipherSuites,
+ int numCipherSuites,
+ gnutls_pk_algorithm_t);
+int _gnutls_find_pk_algos_in_ciphersuites (opaque * data, int datalen);
+int _gnutls_server_select_suite (gnutls_session_t session, opaque * data,
+ int datalen);
#define STATE session->internals.handshake_state
/* This returns true if we have got there