<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hello,
<div class=""><br class="">
</div>
<div class="">First, thank you for all the help I’ve seen flowing through this list over the years. I haven’t had many questions since our code has just been sitting there working most of the time, but it has been nice to see an active community on this product.</div>
<div class=""><br class="">
</div>
<div class="">I’m working on upgrading to xmlsec 1.2.20 on CentOS 7. I’m porting a functioning usage of xmlsec from Solaris using xmlsec 1.2.16. The ported code is practically identical to the online tutorial examples, but for some reason on this updated
system, the decryption engine is not producing the data in the encCtx object, even though it is successfully decrypting the XML packet.</div>
<div class=""><br class="">
</div>
<div class="">The output of the document shows this before the decryption:</div>
<div class=""><?xml version="1.0"?><br class="">
<EncryptedData xmlns="<a href="http://www.w3.org/2001/04/xmlenc#" class="">http://www.w3.org/2001/04/xmlenc#</a>" Type="<a href="http://www.w3.org/2001/04/xmlenc#Element" class="">http://www.w3.org/2001/04/xmlenc#Element</a>"><br class="">
<EncryptionMethod Algorithm="<a href="http://www.w3.org/2001/04/xmlenc#aes128-cbc" class="">http://www.w3.org/2001/04/xmlenc#aes128-cbc</a>"/><br class="">
<KeyInfo xmlns="<a href="http://www.w3.org/2000/09/xmldsig" class="">http://www.w3.org/2000/09/xmldsig</a>#"><br class="">
<KeyName>symkey_GDS</KeyName><br class="">
</KeyInfo><br class="">
<CipherData><br class="">
<CipherValue>N6BDPUv1BIz88n1IL64aTkiShimUMWnZ+c5bVHDMxEs=</CipherValue><br class="">
</CipherData><br class="">
</EncryptedData></div>
<div class=""><br class="">
</div>
<div class="">And shows this after the decryption:</div>
<div class="">
<div class=""><?xml version="1.0"?></div>
<div class=""><Ping/></div>
</div>
<div class=""><br class="">
</div>
<div class="">But leaves this data in the encCtx object suggesting that the decryption process did not work:</div>
<div class="">encCtx->result: 0<br class="">
encCtx->encKey: 0<br class="">
encCtx->resultReplaced: 0</div>
<div class=""><br class="">
</div>
<div class="">Besides needing to see the a non-null result status, I also need a non-null encKey object so I can pull the name of the key for use later in encrypting the response packet.</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">Is there something I’m missing about this? Or maybe something peculiar to CentOS 7? Doesn’t seem like much would have changed between xmlsec 1.2.16 and 1.2.20.</div>
<div class=""><br class="">
</div>
</div>
<div class="">Thanks for any help!</div>
<div class="">Regards,</div>
<div class="">Russ.</div>
<div class=""><br class="">
<div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">
<div style="orphans: 2; widows: 2; margin: 0px;" class="">=========================</div>
<div style="orphans: 2; widows: 2; margin: 0px;" class=""><b class="">Russell Beall | </b>Systems Programmer IV </div>
<div style="orphans: 2; widows: 2; margin: 0px;" class="">Enterprise Identity Management | University of Southern California </div>
<div style="orphans: 2; widows: 2; margin: 0px;" class="">(213) 740-7221 | <a href="mailto:beall@usc.edu" class="">beall@usc.edu</a></div>
<div style="orphans: 2; widows: 2;" class=""><br class="">
</div>
</div>
<div style="orphans: 2; widows: 2;" class=""><br class="">
</div>
</div>
<br class="Apple-interchange-newline">
</div>
<br class="">
</div>
</body>
</html>