*** empty log message ***
[gnutls.git] / libextra / auth_srp.h
bloba01475b9a6dc0294e1bd3d75f01aa309900d9f82
1 #include <gnutls_auth.h>
4 typedef struct {
5 char* username;
6 char* password;
7 } SRP_CLIENT_CREDENTIALS_INT;
9 #define GNUTLS_SRP_CLIENT_CREDENTIALS SRP_CLIENT_CREDENTIALS_INT*
11 typedef struct {
12 char** password_file;
13 char** password_conf_file;
14 int password_files;
15 } SRP_SERVER_CREDENTIALS_INT;
17 #define GNUTLS_SRP_SERVER_CREDENTIALS SRP_SERVER_CREDENTIALS_INT*
19 /* these structures should not use allocated data */
20 typedef struct SRP_SERVER_AUTH_INFO_INT {
21 char username[MAX_SRP_USERNAME];
22 } *SRP_SERVER_AUTH_INFO;
24 #ifdef ENABLE_SRP
26 int proc_srp_server_hello(GNUTLS_STATE state, const opaque * data, int data_size);
27 int gen_srp_server_hello(GNUTLS_STATE state, opaque * data, int data_size);
29 typedef struct SRP_SERVER_AUTH_INFO_INT SRP_SERVER_AUTH_INFO_INT;
31 #endif /* ENABLE_SRP */