1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #ifndef __RADIUS_USER_H
- #define __RADIUS_USER_H
- #include "lwip/sockets.h"
- #include <stdbool.h>
- typedef enum
- {
- RC_ERROR = 0,
- RC_LOGIN_ADMIN_OK,
- RC_LOGIN_USER_OK,
- RC_NET_ERR,
- RC_ACC_DENIED,
-
- } RadiusClientResult;
- typedef struct
- {
- u8_t buf1[8];
- fd_set readset;
- u8_t buf2[8];
- fd_set writeset;
- u8_t buf3[8];
- fd_set errset;
- u8_t buf4[8];
-
- } fdsets;
- RadiusClientResult RC_Login(char* login, char* pas);
- int RD_TestInit(void);
- void initFdsets(fdsets *sets);
- bool recvSelect(fdsets *sets, int *socket, uint32_t timeout);
- int RC_GetAccessRights(char* buf);
- #endif
|