summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authorjsing <>2022-05-17 19:09:16 +0000
committerjsing <>2022-05-17 19:09:16 +0000
commitfc5385b25abd9fd1a81574cc0a2b4c058dce1670 (patch)
tree676a4511890618bc9cee65df2e48c88fd13a907b /src/lib/libc
parentc234262690283f0ecbcadd6686715a19a276df89 (diff)
downloadopenbsd-fc5385b25abd9fd1a81574cc0a2b4c058dce1670.tar.gz
openbsd-fc5385b25abd9fd1a81574cc0a2b4c058dce1670.tar.bz2
openbsd-fc5385b25abd9fd1a81574cc0a2b4c058dce1670.zip
Refactor asn1_d2i_ex_primitive()
Split the object content handling off into asn1_d2i_ex_primitive_content(), move the handling ov V_ASN1_ANY into asn1_d2i_ex_any() and move the MSTRING handling into asn1_d2i_ex_mstring(). This way we parse the header once (rather than twice for ANY and MSTRING), then process the content, while also avoiding complex special cases in a single code path. ok tb@
Diffstat (limited to 'src/lib/libc')
0 files changed, 0 insertions, 0 deletions