diff options
author | tb <> | 2023-10-09 16:03:57 +0000 |
---|---|---|
committer | tb <> | 2023-10-09 16:03:57 +0000 |
commit | 54a81b9e7be0eccb2197e86698f8ed9a9000b046 (patch) | |
tree | ed572206365cdd923495da951c81dc4054218bbf /src/lib/libc/stdlib | |
parent | 70724bb12c878f2cfe14beeac390e4f2867ba008 (diff) | |
download | openbsd-54a81b9e7be0eccb2197e86698f8ed9a9000b046.tar.gz openbsd-54a81b9e7be0eccb2197e86698f8ed9a9000b046.tar.bz2 openbsd-54a81b9e7be0eccb2197e86698f8ed9a9000b046.zip |
Clarify documentation of X509_ALGOR_{set0,set_md}()
The X509_ALGOR_set0() and X509_ALGOR_set_md() documentation comes from
upstream, which means it is as sloppy as the code and as vague as your
average upstream manpage. Be precise on what X509_ALGOR_set0() does on
different inputs and document return values and failure modes.
X509_ALGOR_set_md() is a void function that calls X509_ALGOR_set0() in a
way that can fail, leaving alg in a corrupted state. Document when that
can occur and how to avoid or detect that, but do not go too far, because
EVP_MD_meth_new(), one potential source of failures, is a whole another
can of worms.
joint work with schwarze
Diffstat (limited to 'src/lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions