<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>thanks :)</p>
<p>But can you explain how i got the <span>concrete data like QCStatement? Because there is no defined structure in OpenSSL like for example CRLDistributionPoints. So which structure and functions i have to use, to get the matching data?</p>
<pre style="font-size: 16px; word-wrap: break-word; white-space: pre-wrap;">QCStatement ::= SEQUENCE {<br></pre>
</span>
<p></p>
<p><span></p>
<pre style="word-wrap: break-word; white-space: pre-wrap;">          statementId   QC-STATEMENT.&Id({SupportedStatements}),
          statementInfo QC-STATEMENT.&Type
          ({SupportedStatements}{@statementId}) OPTIONAL }</pre>
thanks again!</span>
<p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> openssl-users <openssl-users-bounces@openssl.org> im Auftrag von lists <lists@rustichelli.net><br>
<b>Gesendet:</b> Mittwoch, 26. April 2017 17:06:58<br>
<b>An:</b> openssl-users@openssl.org<br>
<b>Betreff:</b> Re: [openssl-users] QcStatements with OpenSSL (C++)?</font>
<div> </div>
</div>
<div>
<div class="moz-cite-prefix">On 04/17/2017 06:40 PM, Matthias Ballreich wrote:<br>
</div>
<blockquote cite="mid:DB6P195MB019722D3D4CF1CE91F3F682DFB060@DB6P195MB0197.EURP195.PROD.OUTLOOK.COM" type="cite">
<meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
<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:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi there,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">can OpenSSL pasre QcStatement X509v3 Extension btw. Did OpenSSL Support these?</p>
<p class="MsoNormal">Any Piece of example Code of how can i parse the data?</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</blockquote>
<br>
To my knowledge, there is direct support for the qcStatements, you must parse it yourself.<br>
I asked for some help on the list more or less a month ago, I was trying to develop the required structures but apparently I got lost in the OpenSSL macro jungle, finally I had to quit working on it.<br>
What you can do is search for specific statements of interest to you (there are quite a bit) by parsing the attribute.<br>
Get the attribute NID of the object in the extension and see if it matches the NID of qcStatements:<br>
<br>
oneObj = X509_EXTENSION_get_object(oneExt);<br>
objnid = OBJ_obj2nid(theObj);<br>
if (objnid == NID_qcStatements)<br>
  { printf("DEBUG:ext:GOTCHA!:this is qcStatements!\n"); }<br>
<br>
you then extract the data from the object and parse it.<br>
For the moment I have this ugly quick way of doing it, for instance for a simple one:<br>
<br>
#define UC_id_etsi_qcs_QcCompliance "0.4.0.1862.1.1"<br>
<br>
  if (strstr(extdump, UC_id_etsi_qcs_QcCompliance) == NULL)<br>
    { printf("INFO:QcCompliance:no:\n"); }<br>
  else<br>
    { printf("INFO:QcCompliance:yes:\n"); }<br>
<br>
<br>
<br>
<blockquote cite="mid:DB6P195MB019722D3D4CF1CE91F3F682DFB060@DB6P195MB0197.EURP195.PROD.OUTLOOK.COM" type="cite">
<div class="WordSection1">
<p class="MsoNormal">Thanks</p>
<p class="MsoNormal">Matthias</p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> </blockquote>
</div>
</body>
</html>