/[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

revision 4602 by derek, Thu May 12 01:27:52 2005 UTC revision 4781 by sgodin, Mon May 30 16:35:33 2005 UTC
# 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.4781

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27