}
/**
- * 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;
#define GNUTLS_TLS1 0
#define GNUTLS_SSL3 1
+#define LIST ...
+
struct GNUTLS_STATE_INT;
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);
}
/**
- * 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.
*
* 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;
#define DEBUG
*/
+#define LIST ...
+
#define MAX32 4294967295
#define MAX24 16777215
#define MAX16 65535
/**
* 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.
* 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;
/**
* 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.
* 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;
/**
* 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.
* 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;
/**
* 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.
* 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;
* 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);
-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