<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hello,
<div><br>
</div>
<div>I have a question about how to work with this library when dealing with extended characters.</div>
<div><br>
</div>
<div>I recently upgraded from old versions of libxml and libxmlsec. </div>
<div>libxml 2.6.9 --> 2.7.7</div>
<div>libxmlsec 1.2.5 --> 1.2.16</div>
<div><br>
</div>
<div>We are using a fairly boilerplate copy of the recipe for encrypting the xml and then decrypting it on the other end of the communication line. The old version of these libraries would refrain from converting the XML encoding of characters. The new version
of these libraries seems to be translating these encodings back to their wide character format, and this then crashes the system.</div>
<div><br>
</div>
<div>What I would like to do, is figure out which API flag can be used to retain the encoding. Possibly I also need to switch to wchar buffers or something else, because calling free on the regular buffer seems to corrupt memory.</div>
<div><br>
</div>
<div>For instance, if a section of the XML has this:</div>
<div> <RoleID>á</RoleID></div>
<div><br>
</div>
<div>before going into xmlsec it gets translated into this by a perl function:</div>
<div> <RoleID>á</RoleID></div>
<div><br>
</div>
<div>At the top of the xml block, I tried specifying an encoding of "US-ASCII" and I was hoping this would keep the libraries from converting it back. I need the encoding to stay in place because it needs to be converted only at the final destination code.
I tried also setting "US-ASCII" as the encoding value on the call to xmlSecTmplEncDataCreate, but no matter what value I set on that field, even an invalid one, it doesn't seem to change the behavior.</div>
<div><br>
</div>
<div>I'm hoping someone on this list can help me with a clue to point me in the right direction.</div>
<div><br>
</div>
<div>It would also be very good to get a pointer to the documentation that specifies how to set a value for the xmlChar options, and what options are accepted. I searched through lots of documentation at:</div>
<div><a href="http://www.aleksey.com/xmlsec/api/">http://www.aleksey.com/xmlsec/api/</a></div>
<div><br>
</div>
<div>and found no reference on how to configure those options, just that they existed and expected some value in an xmlChar.</div>
<div><br>
</div>
<div>Thanks!</div>
<div>Russ.</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>
<div style="font-size: 12px; ">==============================<br>
Russell Beall<br>
Systems Programmer IV</div>
<div style="font-size: 12px; ">Enterprise Identity Management</div>
<div style="font-size: 12px; ">University of Southern California</div>
<div style="font-size: 12px; "><a href="mailto:beall@usc.edu">beall@usc.edu</a></div>
<div style="font-size: 12px; ">==============================</div>
</div>
<div><br>
</div>
</div>
</span></div>
</span></div>
</span></div>
<br class="Apple-interchange-newline">
</div>
</div>
</body>
</html>