<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:"Courier New";}
.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>
</head>
<body lang="DE">
<div class="WordSection1">
<p class="MsoNormal">Hi there,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">i want to contribute some more OIDs. Therefore i added the OIDs inside the „Objects.txt“ inside /crypto/objects</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Then i run these commands:</p>
<p class="MsoNormal">perl objects.pl objects.txt obj_mac.num ../../include/openssl/obj_mac.h</p>
<p class="MsoNormal">perl obj_dat.pl ../../include/openssl/obj_mac.h obj_dat.h</p>
<p class="MsoNormal">perl objxref.pl obj_mac.num obj_xref.txt > obj_xref.h</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The files are generated / updated. Then i build the source which builds fine without any exceptions. Then i tried to use the generated NIDs in my Code. For test purposes i tried to print out the short and Long Name of my new oid with OBJ_nid2sn(MY_NID)
 and OBJ_nid2(MY_NID). But here it prints out an empty string.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When o try to use my NID with X509_get_ext_by_NID(cert,<span style="color:silver">
</span><span style="color:navy">MY_NID</span>,<span style="color:silver"> </span>
-<span style="color:navy">1</span>) the Output is -2.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">So where is the Problem or what i’m doing wrong here? Thanks!</p>
</div>
</body>
</html>