summaryrefslogtreecommitdiff
path: root/lib/auth_srp_passwd.h
blob: 3bec65f61f7f294e47783e98bd511a3a2a970c07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
typedef struct {
	char* username;
	int algorithm;
	
	opaque *salt;
	int salt_size;
	
	MPI v;
	MPI g;
	MPI n;
} GNUTLS_SRP_PWD_ENTRY;

/* this is localy alocated. It should be freed using the provided function */
GNUTLS_SRP_PWD_ENTRY *_gnutls_srp_pwd_read_entry( GNUTLS_KEY key, char* username, int* err);
void _gnutls_srp_clear_pwd_entry( GNUTLS_SRP_PWD_ENTRY * entry);
GNUTLS_SRP_PWD_ENTRY* _gnutls_randomize_pwd_entry();
int _gnutls_sbase64_encode(uint8 * data, int data_size, uint8 ** result);
int _gnutls_sbase64_decode(uint8 * data, int data_size, uint8 ** result);