<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    FAQ, section 2.7<br>
    <br>
    <a class="moz-txt-link-freetext" href="http://www.aleksey.com/xmlsec/faq.html">http://www.aleksey.com/xmlsec/faq.html</a><br>
    <br>
    Aleksey<br>
    <br>
    <br>
    On 2/22/11 6:38 PM, Cartland, Bruce wrote:
    <blockquote
cite="mid:FB58E6A08940744C972AA8DF8D3933830849AF50@CBR07M100PCA1.prod.atonet.gov.au"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="MS Exchange Server version
        6.5.7651.53">
      <title>xmlsec crypto intialization failed (aes) [SEC=UNCLASSIFIED]</title>
      <!-- Converted from text/rtf format -->
      <br>
      <p><font face="Arial" size="2">Well, </font>
      </p>
      <p><font face="Arial" size="2">I'm building on Windows (and later
          ubunto).</font>
      </p>
      <p><font face="Arial" size="2">I've got a C app working with
          libxml2 and openssl doing cute crypto stuff. </font>
      </p>
      <p><font face="Arial" size="2">But I'm not having much luck with
          xmlsec.</font>
      </p>
      <p><font face="Arial" size="2">The win binaries from </font><a
          moz-do-not-send="true"
          href="http://www.zlatkovic.com/libxml.en.html"><u><font
              color="#0000ff" face="Arial" size="2">http://www.zlatkovic.com/libxml.en.html</font></u></a><font
          face="Arial" size="2"> don't work. In particular "xmlsec
          --sign --print-debug --privkey-pem rsakey.pem sign1-tmpl.xml"
          crashes with a "memory could not be read error" (using sample
          files provided).</font></p>
      <p><font face="Arial" size="2">I built the source using the Win32
          configure and makefile. Got failure in the exe (below).</font>
      </p>
      <p><font face="Arial" size="2">So built the source myself directly
          from VS (that took some figuring). Got same failure when
          running the exe. Any pointers would be appreciated </font></p>
      <p><font face="Arial" size="2">Error: xmlsec crypto intialization
          failed.</font>
        <br>
        <font face="Arial" size="2">Error: initialization failed</font>
        <br>
        <font face="Arial" size="2">func=xmlSecPtrListAdd:file=c:\xmlsec1-1.2.16\src\list.c:line=305:obj=unknown:subj=xmlSecPtrListIsValid(list):error=100:assertion:
        </font></p>
      <p><font face="Arial" size="2">func=xmlSecKeyDataIdsRegister:file=c:\xmlsec1-1.2.16\src\keysdata.c:line=110:obj=unknown:subj=xmlSecPtrListAdd:error=1:xmlsec
          library function failed:dataId=aes</font></p>
      <p><font face="Arial" size="2">func=xmlSecCryptoDLFunctionsRegisterKeyDataAndTransforms:file=c:\xmlsec1-1.2.16\src\dl.c:line=614:obj=aes:subj=xmlSecKeyDataIdsRegister:error=1:xmlsec
          library function failed: </font></p>
      <p><font face="Arial" size="2">func=xmlSecOpenSSLInit:file=c:\xmlsec1-1.2.16\src\openssl\crypto.c:line=285:obj=unknown:subj=xmlSecCryptoDLFunctionsRegisterKeyDataAndTransforms:error=1:xmlsec
          library function failed: </font></p>
      <p><font face="Arial" size="2">func=xmlSecAppCryptoInit:file=c:\xmlsec1-1.2.16\apps\crypto.c:line=34:obj=unknown:subj=xmlSecCryptoInit:error=1:xmlsec
          library function failed: </font></p>
      <p><font face="Arial" size="2">thanks</font>
        <br>
        <font face="Arial" size="2">bruce</font>
      </p>
      <pre>**********************************************************************
IMPORTANT
        The information transmitted is for the use of the intended
recipient only and may contain confidential and/or legally
privileged material. Any review, re-transmission, disclosure,
dissemination or other use of, or taking of any action in
reliance upon, this information by persons or entities other
than the intended recipient is prohibited and may result in
severe penalties. If you have received this e-mail in error
please notify the Privacy Hotline of the Australian Taxation
Office, telephone 13 2869 and delete all copies of this
transmission together with any attachments.
**********************************************************************
</pre>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
xmlsec mailing list
<a class="moz-txt-link-abbreviated" href="mailto:xmlsec@aleksey.com">xmlsec@aleksey.com</a>
<a class="moz-txt-link-freetext" href="http://www.aleksey.com/mailman/listinfo/xmlsec">http://www.aleksey.com/mailman/listinfo/xmlsec</a>
</pre>
    </blockquote>
  </body>
</html>