Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff wsseCriticalImpl/wssedemo.c wsseOriginal/wssedemo.c
- 514d513
- <
- 558d556
- < /* Edit #1 - removed x509 from sign*/
- 560c558
- < soap_wsse_sign_only(soap, "Time User ns1:add");
- ---
- > soap_wsse_sign_only(soap, "Time User X509Token ns1:add");
- 625,626d622
- < /* Edit #2 - Should use received cert to encrypt response */
- < X509 *cert2 = soap_wsse_get_BinarySecurityTokenX509(soap, "X509Token");
- 714c710
- < if (soap_wsse_add_EncryptedKey(soap, SOAP_MEC_ENV_ENC_AES256_CBC | SOAP_MEC_OAEP, "Cert", cert2, NULL, NULL, NULL))
- ---
- > if (soap_wsse_add_EncryptedKey(soap, SOAP_MEC_ENV_ENC_AES256_CBC | SOAP_MEC_OAEP, "Cert", cert, NULL, NULL, NULL))
- 721c717
- < if (soap_wsse_add_EncryptedKey(soap, SOAP_MEC_ENV_ENC_AES256_GCM, "Cert", cert2, NULL, NULL, NULL))
- ---
- > if (soap_wsse_add_EncryptedKey(soap, SOAP_MEC_ENV_ENC_AES256_GCM, "Cert", cert, NULL, NULL, NULL))
- 726c722
- < if (soap_wsse_add_EncryptedKey(soap, SOAP_MEC_ENV_ENC_AES256_CBC, "Cert", cert2, NULL, NULL, NULL))
- ---
- > if (soap_wsse_add_EncryptedKey(soap, SOAP_MEC_ENV_ENC_AES256_CBC, "Cert", cert, NULL, NULL, NULL))
- 732c728
- < if (soap_wsse_add_EncryptedKey(soap, SOAP_MEC_ENV_ENC_DES_CBC, "Cert", cert2, NULL, NULL, NULL))
- ---
- > if (soap_wsse_add_EncryptedKey(soap, SOAP_MEC_ENV_ENC_DES_CBC, "Cert", cert, NULL, NULL, NULL))
- 735d730
- < X509_free(cert2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement