Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. diff wsseCriticalImpl/wssedemo.c wsseOriginal/wssedemo.c
  2. 514d513
  3. <
  4. 558d556
  5. < /* Edit #1 - removed x509 from sign*/
  6. 560c558
  7. < soap_wsse_sign_only(soap, "Time User ns1:add");
  8. ---
  9. > soap_wsse_sign_only(soap, "Time User X509Token ns1:add");
  10. 625,626d622
  11. < /* Edit #2 - Should use received cert to encrypt response */
  12. < X509 *cert2 = soap_wsse_get_BinarySecurityTokenX509(soap, "X509Token");
  13. 714c710
  14. < if (soap_wsse_add_EncryptedKey(soap, SOAP_MEC_ENV_ENC_AES256_CBC | SOAP_MEC_OAEP, "Cert", cert2, NULL, NULL, NULL))
  15. ---
  16. > if (soap_wsse_add_EncryptedKey(soap, SOAP_MEC_ENV_ENC_AES256_CBC | SOAP_MEC_OAEP, "Cert", cert, NULL, NULL, NULL))
  17. 721c717
  18. < if (soap_wsse_add_EncryptedKey(soap, SOAP_MEC_ENV_ENC_AES256_GCM, "Cert", cert2, NULL, NULL, NULL))
  19. ---
  20. > if (soap_wsse_add_EncryptedKey(soap, SOAP_MEC_ENV_ENC_AES256_GCM, "Cert", cert, NULL, NULL, NULL))
  21. 726c722
  22. < if (soap_wsse_add_EncryptedKey(soap, SOAP_MEC_ENV_ENC_AES256_CBC, "Cert", cert2, NULL, NULL, NULL))
  23. ---
  24. > if (soap_wsse_add_EncryptedKey(soap, SOAP_MEC_ENV_ENC_AES256_CBC, "Cert", cert, NULL, NULL, NULL))
  25. 732c728
  26. < if (soap_wsse_add_EncryptedKey(soap, SOAP_MEC_ENV_ENC_DES_CBC, "Cert", cert2, NULL, NULL, NULL))
  27. ---
  28. > if (soap_wsse_add_EncryptedKey(soap, SOAP_MEC_ENV_ENC_DES_CBC, "Cert", cert, NULL, NULL, NULL))
  29. 735d730
  30. < X509_free(cert2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement