Initialize cert either to null or to a valid X509_REQ object
(X509_REQ_new()) before d2i.
If null a new object will be allocated and the pointer set; if nonnull the
object will be reused.
See the man page for d2i_X509 especially under WARNINGS. Lots of info about
d2i_x and i2d_x
routines for
You need to initialize cert to either NULL or a valid pointer.
On Mar 18, 2014, at 8:21 AM, Nikita Koptelov wrote:
> Good day,
> I'm trying to use openSSL libs to parse certificate request, but something
> goes wrong.
> The thread throws segfault around:
>
>
> 0x777fee0a <+0x007a>