<div dir="ltr">Hello,<div><br></div><div>I'm just slowly porting PHP core openssl ext to work with OpenSSL 1.1 and just came across one thing that I can't find a function for.</div><div><br></div><div>We have got a part in openssl_x509_parse where we display cert->name (cert is X509 struct) if it is not NULL:</div><div><br></div><div><a href="https://github.com/php/php-src/blob/715a198e1f4f6f79f596963727b1a1c92e7fed1b/ext/openssl/openssl.c#L1998">https://github.com/php/php-src/blob/715a198e1f4f6f79f596963727b1a1c92e7fed1b/ext/openssl/openssl.c#L1998</a><br></div><div><br></div><div>The X509 is now opaque and I can't find any function for that which I might be missing because it's quite late... :)</div><div><br></div><div>I tried to find it using</div><div><br></div><div>grep -rn '>name' crypto/x509</div><div><br></div><div>but it doesn't show any function that would return a cert name</div><div><br></div><div>Not sure if it's actually useful to show that but I see that the name is set in x509_cb when operation is ASN1_OP_D2I_POST as X509_NAME_oneline(ret->cert_info.subject, NULL, 0) .</div><div><br></div><div>Please could you let me know if there is a function for that or what I should use instead?</div><div><br></div><div>Thanks a lot</div><div><br></div><div>Jakub</div></div>