Document the bizarre fact that {CMS,PCKS7}_get0_signers() needs some
authortb <tb@openbsd.org>
Wed, 19 Jan 2022 20:28:06 +0000 (20:28 +0000)
committertb <tb@openbsd.org>
Wed, 19 Jan 2022 20:28:06 +0000 (20:28 +0000)
commit8a8c7d5cf6199fff6a9661022048f09172d6779e
tree9ead73e229bd67fc49f013771a7a7c7938a49f19
parente1c2dbc7e0caae89526ea1ea599dc1ec35c00c8a
Document the bizarre fact that {CMS,PCKS7}_get0_signers() needs some
freeing of what they return despite being get0 functions: the stack
of X509s that they return must be freed with sk_X509_free(). The get0
thus probably refers to the individual certs, but not to the stack
itself.

The libcrypto and libssl APIs never cease to amaze with new traps.

ok inoguchi
lib/libcrypto/man/CMS_verify.3
lib/libcrypto/man/PKCS7_verify.3