d2i_OCSP_REQUEST
,
i2d_OCSP_REQUEST
,
d2i_OCSP_SIGNATURE
,
i2d_OCSP_SIGNATURE
,
d2i_OCSP_REQINFO
,
i2d_OCSP_REQINFO
,
d2i_OCSP_ONEREQ
,
i2d_OCSP_ONEREQ
,
d2i_OCSP_CERTID
,
i2d_OCSP_CERTID
,
d2i_OCSP_SERVICELOC
,
i2d_OCSP_SERVICELOC
— decode
and encode OCSP requests
#include
<openssl/ocsp.h>
OCSP_REQUEST *
d2i_OCSP_REQUEST
(OCSP_REQUEST
**val_out, const unsigned char **der_in,
long length);
int
i2d_OCSP_REQUEST
(OCSP_REQUEST
*val_in, unsigned char **der_out);
OCSP_SIGNATURE *
d2i_OCSP_SIGNATURE
(OCSP_SIGNATURE
**val_out, const unsigned char **der_in,
long length);
int
i2d_OCSP_SIGNATURE
(OCSP_SIGNATURE
*val_in, unsigned char **der_out);
OCSP_REQINFO *
d2i_OCSP_REQINFO
(OCSP_REQINFO
**val_out, const unsigned char **der_in,
long length);
int
i2d_OCSP_REQINFO
(OCSP_REQINFO
*val_in, unsigned char **der_out);
OCSP_ONEREQ *
d2i_OCSP_ONEREQ
(OCSP_ONEREQ
**val_out, const unsigned char **der_in,
long length);
int
i2d_OCSP_ONEREQ
(OCSP_ONEREQ
*val_in, unsigned char **der_out);
OCSP_CERTID *
d2i_OCSP_CERTID
(OCSP_CERTID
**val_out, const unsigned char **der_in,
long length);
int
i2d_OCSP_CERTID
(OCSP_CERTID
*val_in, unsigned char **der_out);
OCSP_SERVICELOC *
d2i_OCSP_SERVICELOC
(OCSP_SERVICELOC
**val_out, const unsigned char **der_in,
long length);
int
i2d_OCSP_SERVICELOC
(OCSP_SERVICELOC
*val_in, unsigned char **der_out);
d2i_OCSP_REQUEST
(),
d2i_OCSP_SIGNATURE
(),
d2i_OCSP_REQINFO
(),
d2i_OCSP_ONEREQ
(),
d2i_OCSP_CERTID
(), and
d2i_OCSP_SERVICELOC
() return an object of the
respective type or NULL
if an error occurs.
i2d_OCSP_REQUEST
(),
i2d_OCSP_SIGNATURE
(),
i2d_OCSP_REQINFO
(),
i2d_OCSP_ONEREQ
(),
i2d_OCSP_CERTID
(), and
i2d_OCSP_SERVICELOC
() return the number of bytes
successfully encoded or a negative value if an error occurs.
RFC 6960: X.509 Internet Public Key Infrastructure Online
Certificate Status Protocol, section 4.1: Request Syntax
These functions first appeared in OpenSSL 0.9.7 and have been
available since OpenBSD 3.2.