OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | /* Simple API for the tinysrp library. */ |
2 | |||
3 | #ifndef T_PWD_H |
||
4 | #define MAXUSERLEN 32 |
||
5 | #define SESSION_KEY_LEN 40 /* 320-bit session key */ |
||
6 | #endif |
||
7 | |||
8 | typedef struct { |
||
9 | char username[MAXUSERLEN + 1]; |
||
10 | unsigned char key[SESSION_KEY_LEN]; |
||
11 | } TSRP_SESSION; |
||
12 | |||
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. */ |
||
16 | |||
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); |