<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <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 http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <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>
  </body>
</html>