summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/getopt.3
diff options
context:
space:
mode:
authortb <>2022-07-24 19:54:46 +0000
committertb <>2022-07-24 19:54:46 +0000
commit021a0df656198d44dcff8cb51f4509bc8aec75ac (patch)
treee0e2d08b866bf914e76fefcb9b310301fa5d8e0e /src/lib/libc/stdlib/getopt.3
parent6b0d6b3789b6b50cd891b1a4664051804e6a7af5 (diff)
downloadopenbsd-021a0df656198d44dcff8cb51f4509bc8aec75ac.tar.gz
openbsd-021a0df656198d44dcff8cb51f4509bc8aec75ac.tar.bz2
openbsd-021a0df656198d44dcff8cb51f4509bc8aec75ac.zip
Prepare to provide TS_VERIFY_CTX accessors
The setters make no sense since they do not free the old members and return what was passed in instead of returning the old struct member so that the caller has a chance of freeing them. This has the side effect that calling a setter a second time will likely result in a leak. TS_VERIFY_CTX_set_imprint() was "fixed" upstream by adding a free() but the other three setters were missed since discussing the contributor's CLA was more important. Also missed was that adding frees will result in double frees: careful consumers like openssl/ruby have workarounds for the strange existing semantics. Add a compat #define for TS_VERIF_CTS_set_certs() that made it into the public API with a typo. A good illustration of the amount of thought and care that went into the OpenSSL 1.1 API by both the implementers and the reviewers. Amazing job overall. We will be stuck with this nonsense for a long time. ok jsing kn
Diffstat (limited to 'src/lib/libc/stdlib/getopt.3')
0 files changed, 0 insertions, 0 deletions