[openssl-users] Get raw RSA public key from X509 certificate

Matt Caswell matt at openssl.org
Fri Apr 27 14:16:19 UTC 2018



On 27/04/18 15:01, Ken Goldman wrote:
> That was it!  What threw me off is that the documentation says:
> 
>      TYPE *d2i_TYPE(TYPE **a, unsigned char **ppin, long length);
> 
> but RSAPublicKey isn't a type.  So the pattern of TYPE being a structure
> name didn't hold.

Ahh. Interesting. In most places where we have a d2i function the name
of the function and the type is the same thing. This is one place where
it isn't.


> 
> (There is  a d2i_RSAPublicKey() function, so I didn't need the BIO.)

Duh...of course.

Matt



More information about the openssl-users mailing list