[prev in list] [next in list] [prev in thread] [next in thread]
List: ms-capicom
Subject: CRL files.
From: Robert Rolls <Robert.Rolls () DEVNET ! ATO ! GOV ! AU>
Date: 2003-03-13 22:29:14
[Download RAW message or body]
I've downloaded a crl from versign; and through PInvike into a c# app
I've called CertCreateCRLContext with success and managed to retrieve
the CRL_INFO held within; the other way I achieved the exact same was by
creating an in-memory certificate store then calling CertQueryObject
passing in the name of the CRL file.
My simple question is there any way to retrieve better error information
if I call GetLastError if any call fails I get error code 126 the
documentation states the following
call GetLastError. GetLastError might return an ASN.1
<ms-help://MS.MSDNQTR.2002JUL.1033/security/security/a_gly.htm#_security
_abstract_syntax_notation_one_gly> encoding/decoding error (Windows
2000 or later) or an OSS encoding/decoding error (Windows 95, Windows 98
or Windows NT 4.0 or earlier). For information on these errors see ASN.1
Encoding/Decoding Error Codes
<ms-help://MS.MSDNQTR.2002JUL.1033/security/security/asn1_encoding_decod
ing_error_codes.htm> . One possible error codes follows.
What does this mean and how can I use this information?
Robert.
[Attachment #3 (text/html)]
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:windowtext;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-AU link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I’ve downloaded a crl from versign; and through PInvike
into a c# app I’ve called CertCreateCRLContext with success and managed
to retrieve the CRL_INFO held within; the other way I achieved the exact same
was by creating an in-memory certificate store then calling CertQueryObject
passing in the name of the CRL file.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>My simple question is there any way to retrieve better error
information if I call GetLastError if any call fails I get error code 126 the
documentation states the following </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>call <b><span style='font-weight:bold'><MSHelp:link tabIndex="0" \
keywords="_win32_getlasterror" \
errorURL="../common/badjump.htm">GetLastError</span></b></MSHelp:link>. <b><span \
style='font-weight:bold'>GetLastError</span></b> might return an <a \
href="ms-help://MS.MSDNQTR.2002JUL.1033/security/security/a_gly.htm#_security_abstract_syntax_notation_one_gly"><i><span
style='font-style:italic'>ASN.1</span></i></a> encoding/decoding error
(Windows 2000 or later) or an </span></font>OSS encoding/decoding error
(Windows 95, Windows 98 or Windows NT 4.0 or earlier). For
information on these errors see <a
href="ms-help://MS.MSDNQTR.2002JUL.1033/security/security/asn1_encoding_decoding_error_codes.htm">ASN.1
Encoding/Decoding Error Codes</a>. One possible error codes follows.</p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>What does this mean and how can I use this information?</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Robert.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
</div>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic