santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kelly Graus <>
Subject Re: Standard for embedding KeyInfo
Date Thu, 05 Apr 2007 16:35:58 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
<blockquote cite="mid001601c77799$3cd433f0$b67c9bd0$"
  <blockquote type="cite">
    <pre wrap="">By this do you mean embedding the certificate in the signature?  If
this sounds like it would work best for us.  Do you have any sample code
that does this?
  <pre wrap=""><!---->
I wrap KeyInfo myself now, I don't use this library directly for that part,
it's not as powerful as my code. My old code used it, you can look at:

<a class="moz-txt-link-freetext" href=""></a>

Look at the sign() method.

-- Scott

Thank you very much for the reply and the code.&nbsp; It's exactly what I
needed.&nbsp; There is a slight problem with calling sbStrToXMLCh() on the
safeBuffer.&nbsp; In the WinCAPICryptoX509 constructor, the buffer type in
the safeBuffer is never set, so it stays BUFFER_UNKNOWN, which causes
the sbStrToXMLCh function to throw an exception.&nbsp; Changing the type to
BUFFER_CHAR fixes the problem.&nbsp; As a certificate novice, I'm not sure
what the correct behavior is.&nbsp; I will open a new thread to address it.<br>
Thanks again for the help!<br>

View raw message