diff options
| author | tb <> | 2026-09-02 07:08:36 +0000 |
|---|---|---|
| committer | tb <> | 2026-09-02 07:08:36 +0000 |
| commit | b5b8cb6169521cf1c75580c5beb54a0b73232716 (patch) | |
| tree | b24c13e28132bd1c15bbfdd696eb8b61852906b2 /src/lib/libssl | |
| parent | 737e77df570ee08793d343c8c1fca9ac83ac9d80 (diff) | |
| download | openbsd-b5b8cb6169521cf1c75580c5beb54a0b73232716.tar.gz openbsd-b5b8cb6169521cf1c75580c5beb54a0b73232716.tar.bz2 openbsd-b5b8cb6169521cf1c75580c5beb54a0b73232716.zip | |
asn1_multi: rework creation of the returned stack
Currently, the ASN1_TYPE ret is created up front and further populated
via a possibly failing call to ASN1_STRING_type_new(). On failure, the
incomplete ret is returned, indicating success to the caller, which may
or may not fail later.
Instead, create the inner ASN1_STRING first, then the ASN1_TYPE. Use
setter API with proper ownership transfer rather than fiddling with
deeply nested ASN1 structures. This way we only succeed if everything
actually succeeded.
ok kenjiro
Diffstat (limited to 'src/lib/libssl')
0 files changed, 0 insertions, 0 deletions
