/[resiprocate]/main/resip/dum/test/testIdentity.cxx
ViewVC logotype

Diff of /main/resip/dum/test/testIdentity.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

main/sip/resiprocate/dum/test/testIdentity.cxx revision 4740 by daniel, Tue May 24 21:30:57 2005 UTC main/resip/dum/test/testIdentity.cxx revision 5948 by dworley, Fri Feb 17 15:30:16 2006 UTC
# Line 1  Line 1 
1  #include "resiprocate/dum/ClientAuthManager.hxx"  #include "resip/dum/ClientAuthManager.hxx"
2  #include "resiprocate/dum/ClientRegistration.hxx"  #include "resip/dum/ClientRegistration.hxx"
3  #include "resiprocate/dum/DialogUsageManager.hxx"  #include "resip/dum/DialogUsageManager.hxx"
4  #include "resiprocate/dum/MasterProfile.hxx"  #include "resip/dum/MasterProfile.hxx"
5  #include "resiprocate/dum/Profile.hxx"  #include "resip/dum/Profile.hxx"
6  #include "resiprocate/dum/UserProfile.hxx"  #include "resip/dum/UserProfile.hxx"
7  #include "resiprocate/dum/RegistrationHandler.hxx"  #include "resip/dum/RegistrationHandler.hxx"
8  #include "resiprocate/dum/ClientPagerMessage.hxx"  #include "resip/dum/ClientPagerMessage.hxx"
9  #include "resiprocate/dum/ServerPagerMessage.hxx"  #include "resip/dum/ServerPagerMessage.hxx"
10    
11  #include "resiprocate/dum/DialogUsageManager.hxx"  #include "resip/dum/DialogUsageManager.hxx"
12  #include "resiprocate/dum/AppDialogSet.hxx"  #include "resip/dum/AppDialogSet.hxx"
13  #include "resiprocate/dum/AppDialog.hxx"  #include "resip/dum/AppDialog.hxx"
14  #include "resiprocate/dum/RegistrationHandler.hxx"  #include "resip/dum/RegistrationHandler.hxx"
15  #include "resiprocate/dum/PagerMessageHandler.hxx"  #include "resip/dum/PagerMessageHandler.hxx"
16  #include "resiprocate/PlainContents.hxx"  #include "resip/stack/PlainContents.hxx"
17    
18  #include "resiprocate/external/HttpGetMessage.hxx"  #include "resip/stack/external/HttpGetMessage.hxx"
19  #include "curlHttp/CurlHttpProvider.hxx"  #include "curlHttp/CurlHttpProvider.hxx"
20    
21  #include "resiprocate/os/Log.hxx"  #include "rutil/Log.hxx"
22  #include "resiprocate/os/Logger.hxx"  #include "rutil/Logger.hxx"
23  #include "resiprocate/os/Subsystem.hxx"  #include "rutil/Subsystem.hxx"
24    
25  #ifdef WIN32  #ifdef WIN32
26  #include "resiprocate/WinSecurity.hxx"  #include "resip/stack/WinSecurity.hxx"
27  #endif  #endif
28    
29  #include <iostream>  #include <iostream>
# Line 164  Line 164 
164     // clientDum.addTransport(TCP, 10000 + rand()&0x7fff, V6);     // clientDum.addTransport(TCP, 10000 + rand()&0x7fff, V6);
165     // clientDum.addTransport(TLS, 10000 + rand()&0x7fff, V6);     // clientDum.addTransport(TLS, 10000 + rand()&0x7fff, V6);
166    
167     MasterProfile clientProfile;       SharedPtr<MasterProfile> clientProfile(new MasterProfile);  
168     auto_ptr<ClientAuthManager> clientAuth(new ClientAuthManager());       auto_ptr<ClientAuthManager> clientAuth(new ClientAuthManager());  
169     TestIdentityHandler clientHandler;     TestIdentityHandler clientHandler;
170    
171     clientDum.setMasterProfile(&clientProfile);     clientDum.setMasterProfile(clientProfile);
172     clientDum.setClientAuthManager(clientAuth);     clientDum.setClientAuthManager(clientAuth);
173     clientDum.setClientRegistrationHandler(&clientHandler);     clientDum.setClientRegistrationHandler(&clientHandler);
174     clientDum.setClientPagerMessageHandler(&clientHandler);     clientDum.setClientPagerMessageHandler(&clientHandler);
# Line 177  Line 177 
177     clientDum.getMasterProfile()->addSupportedMethod(MESSAGE);     clientDum.getMasterProfile()->addSupportedMethod(MESSAGE);
178     clientDum.getMasterProfile()->addSupportedMimeType(MESSAGE, Mime("text", "plain"));     clientDum.getMasterProfile()->addSupportedMimeType(MESSAGE, Mime("text", "plain"));
179    
180     clientProfile.setDefaultFrom(userAor);     clientProfile->setDefaultFrom(userAor);
181    
182     InfoLog( << userAor.uri().host() << " " << userAor.uri().user()     InfoLog( << userAor.uri().host() << " " << userAor.uri().user()
183              << " " << passwd );              << " " << passwd );
184    
185     clientProfile.setDigestCredential(userAor.uri().host(),     clientProfile->setDigestCredential(userAor.uri().host(),
186                                       userAor.uri().user(),                                       userAor.uri().user(),
187                                       passwd);                                       passwd);
188                    

Legend:
Removed from v.4740  
changed lines
  Added in v.5948

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27