<span class="gmail_quote"></span>
<div style="DIRECTION: ltr">
<div>Hi,</div>
<div> </div>
<div>I think I have encountered a problem using xmlsec library.</div>
<div>I've made new user (administrator) on W2k3. After running xmlsec tool to encrypt I get:</div>
<div> </div>
<div>func=xmlSecMSCryptoBlockCipherInitialize:file=..\src\mscrypto\ciphers.c:line=556:obj=tripledes-cbc:subj=CryptAcquireContext:error=4:crypto library function failed: ;last error=-2146893802 (0x80090016);last error msg=Keyset does not exist
</div>
<div> </div>
<div>The problem is that a new user doesn't have a key container. </div>
<div> </div>
<div>I think that code should check for <strong>NTE_BAD_KEYSET</strong> and if this is true flag <strong>CRYPT_NEWKEYSET</strong> should be used to create a new key container.</div>
<div> </div>
<div>Is this true and/or is there any other way aroud it?</div>
<div> </div>
<div>Regards,</div></div>
<div style="DIRECTION: ltr"><span class="sg">
<div> Daniel</div></span></div>