1 /* Simple API for the tinysrp library. */
5 #define SESSION_KEY_LEN 40 /* 320-bit session key */
9 char username[MAXUSERLEN + 1];
10 unsigned char key[SESSION_KEY_LEN];
13 /* These functions are passed a connected socket, and return true for a
14 successful authentication. If tsrp is not NULL, the username and key
15 fields are filled in. */
17 extern int tsrp_server_authenticate(int s, TSRP_SESSION *tsrp);
18 extern int tsrp_client_authenticate(int s, char *user, char *pass, TSRP_SESSION *tsrp);