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

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

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

main/sip/resiprocate/dum/test/certServer.cxx revision 4602 by derek, Thu May 12 01:27:52 2005 UTC main/resip/dum/test/certServer.cxx revision 5948 by dworley, Fri Feb 17 15:30:16 2006 UTC
# Line 8  Line 8 
8    
9  #include <signal.h>  #include <signal.h>
10    
11  #include "resiprocate/NameAddr.hxx"  #include "resip/stack/NameAddr.hxx"
12  #include "resiprocate/Pkcs8Contents.hxx"  #include "resip/stack/Pkcs8Contents.hxx"
13  #include "resiprocate/SipMessage.hxx"  #include "resip/stack/SipMessage.hxx"
14  #include "resiprocate/Symbols.hxx"  #include "resip/stack/Symbols.hxx"
15  #include "resiprocate/Uri.hxx"  #include "resip/stack/Uri.hxx"
16  #include "resiprocate/X509Contents.hxx"  #include "resip/stack/X509Contents.hxx"
17  #include "resiprocate/dum/AppDialogSet.hxx"  #include "resip/dum/AppDialogSet.hxx"
18  #include "resiprocate/dum/ClientAuthManager.hxx"  #include "resip/dum/ClientAuthManager.hxx"
19  #include "resiprocate/dum/DialogUsageManager.hxx"  #include "resip/dum/DialogUsageManager.hxx"
20  #include "resiprocate/dum/DumShutdownHandler.hxx"  #include "resip/dum/DumShutdownHandler.hxx"
21  #include "resiprocate/dum/OutOfDialogHandler.hxx"  #include "resip/dum/OutOfDialogHandler.hxx"
22  #include "resiprocate/dum/MasterProfile.hxx"  #include "resip/dum/MasterProfile.hxx"
23  #include "resiprocate/dum/PublicationHandler.hxx"  #include "resip/dum/PublicationHandler.hxx"
24  #include "resiprocate/dum/RegistrationHandler.hxx"  #include "resip/dum/RegistrationHandler.hxx"
25  #include "resiprocate/dum/ServerPublication.hxx"  #include "resip/dum/ServerPublication.hxx"
26  #include "resiprocate/dum/ServerSubscription.hxx"  #include "resip/dum/ServerSubscription.hxx"
27  #include "resiprocate/dum/SubscriptionHandler.hxx"  #include "resip/dum/SubscriptionHandler.hxx"
28  #include "resiprocate/os/Log.hxx"  #include "rutil/Log.hxx"
29  #include "resiprocate/os/Logger.hxx"  #include "rutil/Logger.hxx"
30  #include "resiprocate/os/Random.hxx"  #include "rutil/Random.hxx"
31  #include "resiprocate/os/Subsystem.hxx"  #include "rutil/Subsystem.hxx"
32    
33  #define RESIPROCATE_SUBSYSTEM Subsystem::TEST  #define RESIPROCATE_SUBSYSTEM Subsystem::TEST
34    
# Line 287  Line 287 
287           addTransport(TCP, 5100);           addTransport(TCP, 5100);
288           addTransport(TLS, 5101, V4, Data::Empty, me.uri().host(), Data::Empty);           addTransport(TLS, 5101, V4, Data::Empty, me.uri().host(), Data::Empty);
289                    
290           mProfile.clearSupportedMethods();           mProfile = new MasterProfile;
291           mProfile.addSupportedMethod(PUBLISH);           mProfile->clearSupportedMethods();
292           mProfile.addSupportedMethod(SUBSCRIBE);           mProfile->addSupportedMethod(PUBLISH);
293           mProfile.validateAcceptEnabled() = true;           mProfile->addSupportedMethod(SUBSCRIBE);
294           mProfile.validateContentEnabled() = true;           mProfile->validateAcceptEnabled() = true;
295           mProfile.addSupportedMimeType(PUBLISH, Pkcs8Contents::getStaticType());           mProfile->validateContentEnabled() = true;
296           mProfile.addSupportedMimeType(SUBSCRIBE, Pkcs8Contents::getStaticType());           mProfile->addSupportedMimeType(PUBLISH, Pkcs8Contents::getStaticType());
297           mProfile.addSupportedMimeType(PUBLISH, X509Contents::getStaticType());           mProfile->addSupportedMimeType(SUBSCRIBE, Pkcs8Contents::getStaticType());
298           mProfile.addSupportedMimeType(SUBSCRIBE, X509Contents::getStaticType());           mProfile->addSupportedMimeType(PUBLISH, X509Contents::getStaticType());
299             mProfile->addSupportedMimeType(SUBSCRIBE, X509Contents::getStaticType());
300                    
301           mProfile.setDefaultFrom(me);           mProfile.setDefaultFrom(me);
302           setMasterProfile(&mProfile);           setMasterProfile(mProfile);
303    
304           addServerSubscriptionHandler(Symbols::Credential, &mPrivateKeyServer);           addServerSubscriptionHandler(Symbols::Credential, &mPrivateKeyServer);
305           addServerSubscriptionHandler(Symbols::Certificate, &mCertServer);           addServerSubscriptionHandler(Symbols::Certificate, &mCertServer);
# Line 343  Line 344 
344        }        }
345    
346     private:     private:
347        MasterProfile mProfile;        SharedPtr<MasterProfile> mProfile;
348        CertSubscriptionHandler mCertServer;        CertSubscriptionHandler mCertServer;
349        PrivateKeySubscriptionHandler mPrivateKeyServer;        PrivateKeySubscriptionHandler mPrivateKeyServer;
350        CertPublicationHandler mCertUpdater;        CertPublicationHandler mCertUpdater;

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

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27