diff options
author | tb <> | 2023-10-10 13:59:47 +0000 |
---|---|---|
committer | tb <> | 2023-10-10 13:59:47 +0000 |
commit | 7d83d83236ad0301841bb081e03d7fbab80a432d (patch) | |
tree | 839fb7d8c6ba2e45887042205322c320300755fc /src/lib/libc/stdlib/strtol.c | |
parent | ad08f4610b201014ddf701e7ca9fbb6147a04930 (diff) | |
download | openbsd-7d83d83236ad0301841bb081e03d7fbab80a432d.tar.gz openbsd-7d83d83236ad0301841bb081e03d7fbab80a432d.tar.bz2 openbsd-7d83d83236ad0301841bb081e03d7fbab80a432d.zip |
Improve X509_ALGOR_new(3) documentation
The previous wording was misleading since the result of X509_ALGOR_new()
is not actually an empty X509_ALGOR object. Rather, it contains the
undefined ASN1_OBJECT returned by OBJ_nid2obj(NID_undef). Therefore using
X509_ALGOR_get0(3) for error checking X509_ALGOR_set_md() is not trivial.
So: change the initial paragraph into a general intro referring to the
OpenSSL API needed to interface with X509_ALGOR and write a new paragraph
documenting X509_ALGOR_new(3) and drop the incorrect suggestion of an error
check. Notably there's now a reference to the OBJ_nid2obj() family without
which one cannot really use X509_ALGOR_* for anything at all.
With and ok schwarze
Diffstat (limited to 'src/lib/libc/stdlib/strtol.c')
0 files changed, 0 insertions, 0 deletions