summaryrefslogtreecommitdiff
path: root/libextra/auth_srp_passwd.h
blob: a6adf875b8aa78cd1b79883acc058ade9b48685f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifdef ENABLE_SRP

typedef struct {
	char* username;
	
	gnutls_datum salt;
	gnutls_datum v;
	gnutls_datum g;
	gnutls_datum n;
} SRP_PWD_ENTRY;

/* this is locally allocated. It should be freed using the provided function */
int _gnutls_srp_pwd_read_entry( gnutls_session state, char* username, SRP_PWD_ENTRY**);
void _gnutls_srp_entry_free( SRP_PWD_ENTRY * entry);
int _gnutls_sbase64_encode(uint8 * data, size_t data_size, uint8 ** result);
int _gnutls_sbase64_decode(uint8 * data, size_t data_size, uint8 ** result);

#endif /* ENABLE_SRP */