<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:等线;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"\@等线";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:等线;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:等线;
color:windowtext;
text-decoration:none none;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:等线;}
.MsoPapDefault
{mso-style-type:export-only;
text-align:justify;
text-justify:inter-ideograph;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-CN" link="#0563C1" vlink="#954F72" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi all:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> I want to add new algorithm to xmlsec (EC algorithm with new curve, and new digest algorithm),
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">the openssl have modified yet, and use normally.But when I add algorithm to xmlsec, and add new
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">element <ECKeyValue> and <PublicKey>. I have modified include file <app.h>, <private.h>, <string.h>,
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><openssl/crypto.h>, <openssl/symbols.h>. And C file app.c, dl.c, string.c, openssl/crypto.c, openssl/signature.c .<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Compile can pass, but can’t load “xmlsec1-openssl”.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">There are error info:<o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-US">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span lang="EN-US">loading "library openssl"...<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">name:openssl, filename:libxmlsec1-openssl, function:xmlSecCryptoGetFunctions_openssl....<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">func=xmlSecCryptoDLLibraryCreate:file=dl.c:line=138:obj=unknown:subj=lt_dlopenext:error=7:io function failed:name="libxmlsec1-openssl"; errno=2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">func=xmlSecCryptoDLGetLibraryFunctions:file=dl.c:line=444:obj=unknown:subj=xmlSecCryptoDLLibraryCreate:error=1:xmlsec library function failed:crypto=openssl<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">func=xmlSecCryptoDLLoadLibrary:file=dl.c:line=401:obj=unknown:subj=xmlSecCryptoDLGetLibraryFunctions:error=1:xmlsec library function failed:
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Error: unable to load xmlsec-openssl library. Make sure that you have<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">this it installed, check shared libraries path (LD_LIBRARY_PATH)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">envornment variable or use "--crypto" option to specify different<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">crypto engine.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Error: initialization failed<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">func=xmlSecCryptoShutdown:file=app.c:line=71:obj=unknown:subj=unknown:error=9:feature is not implemented:details=cryptoShutdown<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Error: xmlSecCryptoShutdown failed<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Error: xmlsec crypto shutdown failed.<o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-US">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span lang="EN-US">Which area should I change?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Gsealy<o:p></o:p></span></p>
</div>
</body>
</html>