]> git.stg.codes - stg.git/blobdiff - projects/rlm_stg/iface.h
Merge branch 'stg-2.409-radius'
[stg.git] / projects / rlm_stg / iface.h
index e4504b6c1337ce3b0ee0e2376633e7f51cc0ca80..e863e939ce650d525c85bddf527138bd36f1b32f 100644 (file)
@@ -9,16 +9,12 @@
 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);
-
-void deletePairs(const STG_PAIR* pairs);
-STG_PAIR* fromValuePairs(const VALUE_PAIR* pairs);
-int countValuePairs(const VALUE_PAIR* pairs);
+int stgInstantiateImpl(const char* address);
+STG_RESULT stgAuthorizeImpl(const char* userName, const char* password, const STG_PAIR* vps);
+STG_RESULT stgAuthenticateImpl(const char* userName, const char* password, const STG_PAIR* vps);
+STG_RESULT stgPostAuthImpl(const char* userName, const char* password, const STG_PAIR* vps);
+STG_RESULT stgPreAcctImpl(const char* userName, const char* password, const STG_PAIR* vps);
+STG_RESULT stgAccountingImpl(const char* userName, const char* password, const STG_PAIR* vps);
 
 #ifdef __cplusplus
 }