]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
updated documentation and functions
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 5 Jun 2001 08:34:13 +0000 (08:34 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 5 Jun 2001 08:34:13 +0000 (08:34 +0000)
lib/gnutls.c
lib/gnutls.h.in
lib/gnutls_handshake.c
lib/gnutls_int.h
lib/gnutls_priority.c
lib/gnutls_priority.h
src/Makefile.am

index 6c934611068d7896978ec5bfac0f2913cdab81ef..9c32fb32045689af2bac17728f2df5cd31356645 100644 (file)
@@ -401,14 +401,15 @@ int _gnutls_send_alert(int cd, GNUTLS_STATE state, AlertLevel level, AlertDescri
 }
 
 /**
-  * gnutls_close - This function terminates the current TLS/SSL connection.
+  * gnutls_bye - This function terminates the current TLS/SSL connection.
   * @cd: is a connection descriptor.
   * @state: is a &GNUTLS_STATE structure.
   *
   * Terminates the current TLS/SSL connection. If the return value is 0
-  * you may continue using the TCP connection.
+  * you may continue using the TCP connection. The connection should
+  * have been initiated using gnutls_handshake() or similar function.
   **/
-int gnutls_close(int cd, GNUTLS_STATE state)
+int gnutls_bye(int cd, GNUTLS_STATE state)
 {
        int ret;
 
index 157224a70380bb69a836480fddbaab1373be7938..24f7862cca933a1ce406cb593e41f7ec5a4b0077 100644 (file)
@@ -41,6 +41,8 @@ typedef enum AlertDescription { GNUTLS_CLOSE_NOTIFY, GNUTLS_UNEXPECTED_MESSAGE=1
 #define GNUTLS_TLS1 0
 #define GNUTLS_SSL3 1
 
+#define LIST ...
+
 struct GNUTLS_STATE_INT;
 typedef struct GNUTLS_STATE_INT* GNUTLS_STATE;
 
@@ -48,10 +50,10 @@ typedef struct GNUTLS_STATE_INT* GNUTLS_STATE;
 
 int gnutls_init(GNUTLS_STATE * state, ConnectionEnd con_end);
 int gnutls_deinit(GNUTLS_STATE state);
-int gnutls_close(int cd, GNUTLS_STATE state);
+int gnutls_bye(int cd, GNUTLS_STATE state);
 int gnutls_handshake(int cd, GNUTLS_STATE state);
 int gnutls_check_pending(GNUTLS_STATE state);
-int gnutls_send_hello_request(int cd, GNUTLS_STATE state);
+int gnutls_rehandshake(int cd, GNUTLS_STATE state);
 
 AlertDescription gnutls_get_last_alert( GNUTLS_STATE state);
 
index 3a30045ae962ef13f5218633cb7a33805a4e062c..976a775a0039798d1c63d0b1663f33d70ffca0ee 100644 (file)
@@ -673,7 +673,7 @@ int _gnutls_recv_handshake(int cd, GNUTLS_STATE state, uint8 ** data,
 }
 
 /**
-  * gnutls_send_hello_request - This function will renegotiate security parameters
+  * gnutls_rehandshake - This function will renegotiate security parameters
   * @cd: is a connection descriptor, as returned by socket().
   * @state: is a a &GNUTLS_STATE structure.
   *
@@ -684,7 +684,7 @@ int _gnutls_recv_handshake(int cd, GNUTLS_STATE state, uint8 ** data,
   * GNUTLS_E_WARNING_ALERT_RECEIVED and the alert will be
   * GNUTLS_NO_RENEGOTIATION.
   **/
-int gnutls_send_hello_request(int cd, GNUTLS_STATE state)
+int gnutls_rehandshake(int cd, GNUTLS_STATE state)
 {
 int    ret;
 
index 9350f19c37ff20d7d28b4885d75c09432c29600f..b7167613a17b09164ab922c58042a70aea100cd7 100644 (file)
@@ -31,6 +31,8 @@
 #define DEBUG
 */
 
+#define LIST ...
+
 #define MAX32 4294967295
 #define MAX24 16777215
 #define MAX16 65535
index c07060f93a437263fab72b42d4dff5e78d4714dd..0679ecc4e1e59c46220c5015ce44e741413d8d49 100644 (file)
@@ -27,7 +27,7 @@
 /**
   * gnutls_set_cipher_priority - Sets the priority on the ciphers supported by gnutls.
   * @state: is a &GNUTLS_STATE structure.
-  * @...: is a 0 terminated list of BulkCipherAlgorithm elements.
+  * @LIST: is a 0 terminated list of BulkCipherAlgorithm elements.
   *
   * Sets the priority on the ciphers supported by gnutls.
   * Priority is higher for ciphers specified before others.
@@ -36,7 +36,7 @@
   * not use the algorithm's priority except for disabling
   * algorithms that were not specified.
   **/
-void gnutls_set_cipher_priority( GNUTLS_STATE state, ...) {
+void gnutls_set_cipher_priority( GNUTLS_STATE state, LIST) {
        
        va_list ap;
        int i, num=0;
@@ -66,7 +66,7 @@ void gnutls_set_cipher_priority( GNUTLS_STATE state, ...) {
 /**
   * gnutls_set_kx_priority - Sets the priority on the key exchange algorithms supported by gnutls.
   * @state: is a &GNUTLS_STATE structure.
-  * @...: is a 0 terminated list of KXAlgorithm elements.
+  * @LIST: is a 0 terminated list of KXAlgorithm elements.
   *
   * Sets the priority on the key exchange algorithms supported by gnutls.
   * Priority is higher for algorithms specified before others.
@@ -75,7 +75,7 @@ void gnutls_set_cipher_priority( GNUTLS_STATE state, ...) {
   * not use the algorithm's priority except for disabling
   * algorithms that were not specified.
   **/
-void gnutls_set_kx_priority( GNUTLS_STATE state, ...) {
+void gnutls_set_kx_priority( GNUTLS_STATE state, LIST) {
        
        va_list ap;
        int i, num=0;
@@ -105,7 +105,7 @@ void gnutls_set_kx_priority( GNUTLS_STATE state, ...) {
 /**
   * gnutls_set_mac_priority - Sets the priority on the mac algorithms supported by gnutls.
   * @state: is a &GNUTLS_STATE structure.
-  * @...: is a 0 terminated list of MACAlgorithm elements.
+  * @LIST: is a 0 terminated list of MACAlgorithm elements.
   *
   * Sets the priority on the mac algorithms supported by gnutls.
   * Priority is higher for algorithms specified before others.
@@ -114,7 +114,7 @@ void gnutls_set_kx_priority( GNUTLS_STATE state, ...) {
   * not use the algorithm's priority except for disabling
   * algorithms that were not specified.
   **/
-void gnutls_set_mac_priority( GNUTLS_STATE state, ...) {
+void gnutls_set_mac_priority( GNUTLS_STATE state, LIST) {
        
        va_list ap;
        int i, num=0;
@@ -144,7 +144,7 @@ void gnutls_set_mac_priority( GNUTLS_STATE state, ...) {
 /**
   * gnutls_set_compression_priority - Sets the priority on the compression algorithms supported by gnutls.
   * @state: is a &GNUTLS_STATE structure.
-  * @...: is a 0 terminated list of CompressionMethod elements.
+  * @LIST: is a 0 terminated list of CompressionMethod elements.
   *
   * Sets the priority on the compression algorithms supported by gnutls.
   * Priority is higher for algorithms specified before others.
@@ -153,7 +153,7 @@ void gnutls_set_mac_priority( GNUTLS_STATE state, ...) {
   * not use the algorithm's priority except for disabling
   * algorithms that were not specified.
   **/
-void gnutls_set_compression_priority( GNUTLS_STATE state, ...) {
+void gnutls_set_compression_priority( GNUTLS_STATE state, LIST) {
        
        va_list ap;
        int i, num=0;
index 500c35c4e08614475305c6c3000df1ff021e9da7..fe01235ce859c7237375f1057e3fc6d15888bc8f 100644 (file)
@@ -18,7 +18,7 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  */
 
-void gnutls_set_cipher_priority( GNUTLS_STATE state, ...);
-void gnutls_set_kx_priority( GNUTLS_STATE state, ...); 
-void gnutls_set_mac_priority( GNUTLS_STATE state, ...);
-void gnutls_set_compression_priority( GNUTLS_STATE state, ...);
+void gnutls_set_cipher_priority( GNUTLS_STATE state, LIST);
+void gnutls_set_kx_priority( GNUTLS_STATE state, LIST); 
+void gnutls_set_mac_priority( GNUTLS_STATE state, LIST);
+void gnutls_set_compression_priority( GNUTLS_STATE state, LIST);
index a8478f3fe4355a8901909f710167d00d0137a4a3..780b912648f4efb67ca705b520439fc63ce95eaa 100644 (file)
@@ -1,4 +1,4 @@
-EXTRA_DIST = port.h prime.gaa crypt.gaa crypt-gaa.h README.crypt prime-gaa.h README
+EXTRA_DIST = port.h prime.gaa crypt.gaa crypt-gaa.h README.crypt prime-gaa.h README tpasswd tpasswd.conf
 INCLUDES = -I../lib
 noinst_PROGRAMS = serv cli crypt prime
 serv_SOURCES = serv.c