On 18 Mar 2019, at 22:27, Viktor Dukhovni <openssl-users@xxxxxxxxxxxx> wrote:
Can you confirm what structure is being encoded by i2d_re_X509_REQ_tbs, is this a X509_REQ_INFO? The man page doesn’t explicitly specify the output formats of any of the related functions: Looking at the source, we have X509_REQ_INFO being returned: int i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp) { req->req_info.enc.modified = 1; return i2d_X509_REQ_INFO(&req->req_info, pp); } What would the corresponding functions need to be in the openssl v1.0.x world to achieve the same output as i2d_re_X509_REQ_tbs? Would it just be to copy the above code in? Regards, Graham — |