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

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

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

revision 5037 by daniel, Thu Jul 7 18:33:00 2005 UTC revision 5051 by daniel, Tue Jul 12 23:45:49 2005 UTC
# Line 1  Line 1 
1  #include "resiprocate/PlainContents.hxx"  #include "resiprocate/PlainContents.hxx"
2  #include "resiprocate/Pkcs7Contents.hxx"  #include "resiprocate/Pkcs7Contents.hxx"
3  #include "resiprocate/MultipartSignedContents.hxx"  #include "resiprocate/MultipartSignedContents.hxx"
4    #include "resiprocate/MultipartAlternativeContents.hxx"
5  #include "resiprocate/Mime.hxx"  #include "resiprocate/Mime.hxx"
6    
7  #include "resiprocate/SecurityAttributes.hxx"  #include "resiprocate/SecurityAttributes.hxx"
# Line 36  Line 37 
37     Security* security = new Security;     Security* security = new Security;
38  #endif  #endif
39    
40     Data aor = "daniel@internal.xten.net";     Data aor("jdoe@internal.xten.net");
41    
42     security->preload();     security->preload();
43     security->hasUserPrivateKey(aor);     security->hasUserPrivateKey(aor);
# Line 54  Line 55 
55                          "a=rtpmap:97 speex/8000\r\n"                          "a=rtpmap:97 speex/8000\r\n"
56                          "a=rtpmap:101 telephone-event/8000\r\n"                          "a=rtpmap:101 telephone-event/8000\r\n"
57                          "a=fmtp:101 0-15\r\n"));                          "a=fmtp:101 0-15\r\n"));
58    
59     //Pkcs7Contents* encrypted = security->encrypt(contents, aor);     //Pkcs7Contents* encrypted = security->encrypt(contents, aor);
60     //InfoLog(<< "Encrytped content: " << *encrypted );     //InfoLog(<< "Encrytped content: " << *encrypted );
61     //Contents* decrypted = security->decrypt(aor, encrypted);     //Contents* decrypted = security->decrypt(aor, encrypted);

Legend:
Removed from v.5037  
changed lines
  Added in v.5051

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27