<div dir="ltr"><span style="font-size:12.8px">Hi,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I'm working on ENGINE development, and I have the need to add an NID for a custom message digest, and eventually for ciphers and PKEY methods.</div><div style="font-size:12.8px">Some of the associated object don't (and won't ever) have an associated OID, but I need to add them dynamically to avoid requiring patches to the upstream OpenSSL code before being able to use my engine.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I'm currently (ab)using OBJ_create() [0], but it looks like it requires to specify a valid OID.</div><div style="font-size:12.8px">I know it is possible to have NIDs associated with objects without OID (e.g. NID_siphash) when they are statically defined in OpenSSL source code, but I cannot find a way to declare similar objects without OID dynamically.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Before 1.1.0, when structures weren't opaque, I could manipulate the contents of the created object directly and somehow work around this limitation, but in 1.1.0 this is not possible.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Does anyone know of the right way to dynamically create an NID associated with an object without OID?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Nicola</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">[0] : <a href="https://github.com/openssl/openssl/blob/master/include/openssl/objects.h#L157" target="_blank">https://github.com/openssl/o<wbr>penssl/blob/master/include/ope<wbr>nssl/objects.h#L157</a></div></div>