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

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

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

revision 4816 by daniel, Fri Jun 3 17:13:09 2005 UTC revision 4817 by daniel, Fri Jun 3 18:45:59 2005 UTC
# Line 1  Line 1 
1    #include "resiprocate/SipStack.hxx"
2  #include "resiprocate/TransactionUser.hxx"  #include "resiprocate/TransactionUser.hxx"
3  #include "resiprocate/Security.hxx"  #include "resiprocate/Security.hxx"
4  #include "resiprocate/dum/Handles.hxx"  #include "resiprocate/dum/Handles.hxx"
# Line 95  Line 95 
95  int main(int argc, char *argv[])  int main(int argc, char *argv[])
96  {  {
97    
98     if ( argc < 4 ) {     if ( argc < 3 ) {
99        cout << "usage: " << argv[0] << " sip:user passwd\n";       cout << "usage: " << argv[0] <<"sip:sender sip:recip" << endl;
100        return 0;        return 0;
101     }     }
102    
# Line 104  Line 104 
104    
105     NameAddr senderAor(argv[1]);     NameAddr senderAor(argv[1]);
106     NameAddr recipAor(argv[2]);     NameAddr recipAor(argv[2]);
107     Data passwd(argv[3]);     //Data passwd(argv[3]);
108    
109     InfoLog(<< "sender: " << senderAor << ", passwd: " << passwd << endl);     InfoLog(<< "sender: " << senderAor << endl);
110     InfoLog(<< "recipient: " << recipAor << endl);     InfoLog(<< "recipient: " << recipAor << endl);
111    
112  #ifdef WIN32  #ifdef WIN32
# Line 116  Line 116 
116  #endif  #endif
117    
118     assert(security);     assert(security);
119       SipStack stack(security);
120     Tu tu(security, senderAor.uri().getAor(), recipAor.uri().getAor());     Tu tu(security, senderAor.uri().getAor(), recipAor.uri().getAor());
121     BaseUsageHandle handle;     BaseUsageHandle handle;
122     PayloadEncrypter encrypter(tu, security);     PayloadEncrypter encrypter(tu, security);
# Line 132  Line 133 
133     {     {
134     }     }
135    
136    
137     return 0;     return 0;
138  }  }
139    

Legend:
Removed from v.4816  
changed lines
  Added in v.4817

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27