/[resiprocate]/main/resip/dum/RADIUSServerAuthManager.hxx
ViewVC logotype

Contents of /main/resip/dum/RADIUSServerAuthManager.hxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9493 - (show annotations) (download)
Sat Apr 7 10:56:50 2012 UTC (7 years, 9 months ago) by dpocock
File size: 1515 byte(s)
Include config.h from even more places where it may be needed
1
2 #ifndef __RADIUSServerAuthManager_h
3 #define __RADIUSServerAuthManager_h
4
5 #ifdef HAVE_CONFIG_H
6 #include "config.h"
7 #endif
8
9 #ifdef USE_RADIUS_CLIENT
10
11 #include "rutil/RADIUSDigestAuthenticator.hxx"
12 #include "resip/dum/ServerAuthManager.hxx"
13
14 namespace resip
15 {
16
17 class RADIUSServerAuthManager : public resip::ServerAuthManager {
18
19 private:
20 resip::DialogUsageManager& dum;
21
22 public:
23 RADIUSServerAuthManager(resip::DialogUsageManager& dum);
24 virtual ~RADIUSServerAuthManager();
25
26 protected:
27 resip::ServerAuthManager::AsyncBool requiresChallenge(const resip::SipMessage& msg);
28 void requestCredential(const resip::Data& user, const resip::Data& realm, const resip::SipMessage& msg, const resip::Auth& auth, const resip::Data& transactionId);
29 bool useAuthInt() const;
30
31 bool authorizedForThisIdentity(const resip::Data &user, const resip::Data &realm, resip::Uri &fromUri);
32
33 void onAuthSuccess(const resip::SipMessage& msg);
34 void onAuthFailure(resip::ServerAuthManager::AuthFailureReason reason, const resip::SipMessage& msg);
35
36 };
37
38 class MyRADIUSDigestAuthListener : public RADIUSDigestAuthListener {
39 private:
40 resip::Data user;
41 resip::Data realm;
42 resip::TransactionUser& tu;
43 resip::Data transactionId;
44 public:
45 MyRADIUSDigestAuthListener(const resip::Data& user, const resip::Data& realm, resip::TransactionUser& tu, const resip::Data& transactionId);
46 virtual ~MyRADIUSDigestAuthListener();
47 void onSuccess(const resip::Data& rpid);
48 void onAccessDenied();
49 void onError();
50 };
51
52 }
53
54 #endif
55
56 #endif
57

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27