[asterisk-scf-commits] asterisk-scf/integration/slice.git branch "client-auth" created.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Thu Sep 1 18:14:55 CDT 2011
branch "client-auth" has been created
at e1d7bec2ebf996566cdf548790c8e4b8d6f7af70 (commit)
- Log -----------------------------------------------------------------
commit e1d7bec2ebf996566cdf548790c8e4b8d6f7af70
Author: Mark Michelson <mmichelson at digium.com>
Date: Thu Sep 1 18:15:17 2011 -0500
Add extension point for client authentication.
diff --git a/slice/AsteriskSCF/SIP/SIPExtensionPointIf.ice b/slice/AsteriskSCF/SIP/SIPExtensionPointIf.ice
index 2b85aa2..accefb4 100644
--- a/slice/AsteriskSCF/SIP/SIPExtensionPointIf.ice
+++ b/slice/AsteriskSCF/SIP/SIPExtensionPointIf.ice
@@ -201,6 +201,29 @@ module V1
void clearAuthHooks();
};
+ struct ClientAuth
+ {
+ string realm;
+ string user;
+ string password;
+ };
+
+ sequence<ClientAuth> ClientAuthSeq;
+
+ interface AuthClientHook
+ {
+ AsteriskSCF::System::Hook::V1::HookResult getCredentials(string endpointName, Ice::StringSeq realms, out ClientAuthSeq auths);
+ };
+
+ sequence<AuthClientHook*> AuthClientHookSeq;
+
+ interface AuthClientExtensionPoint
+ {
+ void addAuthClientHook(AuthClientHook *hook, int priority, RequestTypeSeq requestTypes);
+ void removeAuthClientHook(AudhClientHook *hook);
+ void clearAuthClientHooks();
+ }
+
}; /* End of module V1 */
}; /* End of module ExtensionPoint */
-----------------------------------------------------------------------
--
asterisk-scf/integration/slice.git
More information about the asterisk-scf-commits
mailing list