From: Nikos Mavrogiannopoulos Date: Wed, 15 Mar 2000 17:33:49 +0000 (+0000) Subject: documentation. X-Git-Tag: gnutls0-0-4~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f375ca508ca337b1fd3583e36f7647b7f61c470e;p=thirdparty%2Fgnutls.git documentation. --- diff --git a/doc/HACKING b/doc/HACKING new file mode 100644 index 0000000000..421b87b0d4 --- /dev/null +++ b/doc/HACKING @@ -0,0 +1,34 @@ +So far, the following functions have been implemented: +(The functions prefixed by '_' are internal functions, not intended +to be included in the API) + +gnutls_init(GNUTLS_STATE*, ConnectionEnd): + This function just initializes the state to null. (null encryption, + null mac etc.) + +_gnutls_set_cipher( GNUTLS_STATE, BulkCipherAlgorithm): + This function sets the BulkCipherAlgorithm to the pending state. + +_gnutls_set_compression(GNUTLS_STATE, CompressionMethod): + This function sets the CompressionMethod to the pending state. + +_gnutls_set_mac( GNUTLS_STATE, MACAlgorithm): + This function sets the MACAlgorithm to the pending state. + +_gnutls_set_keys( GNUTLS_STATE): + This function is to be called after handshake, when master_secret, + client_random and server_random have been initialized. + This function creates the keys and stores them into pending state. + +_gnutls_connection_state_init( GNUTLS_STATE): + This function sets the current connection state to conform with the + security parameters(pending state), and initializes encryption. + +gnutls_send( int desc, GNUTLS_STATE, char* data, int datalen): +gnutls_recv( int desc, GNUTLS_STATE, char* data, int datalen): + These functions behave exactly like write()/read(). The + only difference is that they accept, the gnutls_state. + They are to transfer data, under the current state. + +gnutls_deinit( GNUTLS_STATE* state): + This functions clears all buffers associated with the state.