diff options
Diffstat (limited to 'lib/gnutls_auth.h')
-rw-r--r-- | lib/gnutls_auth.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/gnutls_auth.h b/lib/gnutls_auth.h index bffd973ff5..8017c50eb8 100644 --- a/lib/gnutls_auth.h +++ b/lib/gnutls_auth.h @@ -1,23 +1,23 @@ #ifndef GNUTLS_AUTH_H - #define GNUTLS_AUTH_H -typedef struct { +# define GNUTLS_AUTH_H + +typedef struct MOD_AUTH_STRUCT_INT { char* name; /* null terminated */ - int (*gnutls_generate_certificate)( GNUTLS_KEY, opaque**); - int (*gnutls_generate_server_kx)( GNUTLS_KEY, opaque**); - int (*gnutls_generate_server_kx2)( GNUTLS_KEY, opaque**); /* used in SRP */ - int (*gnutls_generate_client_kx0)( GNUTLS_KEY, opaque**); - int (*gnutls_generate_client_kx)( GNUTLS_KEY, opaque**); /* used in SRP */ - int (*gnutls_generate_client_cert_vrfy) ( GNUTLS_KEY, opaque**); - int (*gnutls_generate_server_cert_vrfy) ( GNUTLS_KEY, opaque**); + int (*gnutls_generate_certificate)( GNUTLS_STATE, opaque**); + int (*gnutls_generate_server_kx)( GNUTLS_STATE, opaque**); + int (*gnutls_generate_server_kx2)( GNUTLS_STATE, opaque**); /* used in SRP */ + int (*gnutls_generate_client_kx0)( GNUTLS_STATE, opaque**); + int (*gnutls_generate_client_kx)( GNUTLS_STATE, opaque**); /* used in SRP */ + int (*gnutls_generate_client_cert_vrfy) ( GNUTLS_STATE, opaque**); + int (*gnutls_generate_server_certificate_request) ( GNUTLS_STATE, opaque**); - int (*gnutls_process_certificate)( GNUTLS_KEY, opaque*, int); - int (*gnutls_process_server_kx)( GNUTLS_KEY, opaque*, int); - int (*gnutls_process_server_kx2)( GNUTLS_KEY, opaque*, int); - int (*gnutls_process_client_kx0)( GNUTLS_KEY, opaque*, int); - int (*gnutls_process_client_kx)( GNUTLS_KEY, opaque*, int); - int (*gnutls_process_client_cert_vrfy) ( GNUTLS_KEY, opaque*, int); - int (*gnutls_process_server_cert_vrfy) ( GNUTLS_KEY, opaque*, int); + int (*gnutls_process_certificate)( GNUTLS_STATE, opaque*, int); + int (*gnutls_process_server_kx)( GNUTLS_STATE, opaque*, int); + int (*gnutls_process_server_kx2)( GNUTLS_STATE, opaque*, int); + int (*gnutls_process_client_kx0)( GNUTLS_STATE, opaque*, int); + int (*gnutls_process_client_kx)( GNUTLS_STATE, opaque*, int); + int (*gnutls_process_client_cert_vrfy) ( GNUTLS_STATE, opaque*, int); + int (*gnutls_process_server_certificate_request) ( GNUTLS_STATE, opaque*, int); } MOD_AUTH_STRUCT; - #endif |