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

typedef struct {
    char *username;

    gnutls_datum_t salt;
    gnutls_datum_t v;
    gnutls_datum_t g;
    gnutls_datum_t n;
} SRP_PWD_ENTRY;

/* this is locally allocated. It should be freed using the provided function */
int _gnutls_srp_pwd_read_entry(gnutls_session_t 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 */