X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/4a89beb9494451304e34e9a8e226936ac465c536..83c4a22d73f9801ced3c29e664e2c000535a0965:/projects/rlm_stg/iface.h?ds=inline diff --git a/projects/rlm_stg/iface.h b/projects/rlm_stg/iface.h index 831c3123..e4504b6c 100644 --- a/projects/rlm_stg/iface.h +++ b/projects/rlm_stg/iface.h @@ -9,14 +9,16 @@ extern "C" { #endif -int stgInstantiateImpl(const char * server, uint16_t port, const char * password); -const STG_PAIR * stgAuthorizeImpl(const char * userName, const char * serviceType); -const STG_PAIR * stgAuthenticateImpl(const char * userName, const char * serviceType); -const STG_PAIR * stgPostAuthImpl(const char * userName, const char * serviceType); -/*const STG_PAIR * stgPreAcctImpl(const char * userName, const char * serviceType);*/ -const STG_PAIR * stgAccountingImpl(const char * userName, const char * serviceType, const char * statusType, const char * sessionId); +int stgInstantiateImpl(const char* server, uint16_t port, const char* password); +const STG_PAIR* stgAuthorizeImpl(const char* userName, const char* serviceType); +const STG_PAIR* stgAuthenticateImpl(const char* userName, const char* serviceType); +const STG_PAIR* stgPostAuthImpl(const char* userName, const char* serviceType); +const STG_PAIR* stgPreAcctImpl(const char* userName, const char* serviceType); +const STG_PAIR* stgAccountingImpl(const char* userName, const char* serviceType, const char* statusType, const char* sessionId); -void deletePairs(const STG_PAIR * pairs); +void deletePairs(const STG_PAIR* pairs); +STG_PAIR* fromValuePairs(const VALUE_PAIR* pairs); +int countValuePairs(const VALUE_PAIR* pairs); #ifdef __cplusplus }