Skip to content

return value of i2d_re_X509_REQ_tbs() #19297

@no6v

Description

@no6v

Hello,

I found that the return value of i2d_re_X509_REQ_tbs() was changed since 8e39049.
Currently it returns 0 on some errors or 1 unexpectedly. Manpage says:

i2d_re_X509_tbs(), i2d_re_X509_CRL_tbs() and i2d_re_X509_REQ_tbs() return the length of encoded data or 0 on error.

I guess the NULL check for req parameter is enough, then returns the result of i2d_X509_REQ_INFO() straightforward.

Metadata

Metadata

Assignees

No one assigned

    Labels

    branch: 3.0Applies to openssl-3.0 branchbranch: masterApplies to master branchseverity: regressionThe issue/pr is a regression from previous released versiontriaged: bugThe issue/pr is/fixes a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions