summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cms/cms_pwri.c
diff options
context:
space:
mode:
authortb <>2023-12-20 14:26:47 +0000
committertb <>2023-12-20 14:26:47 +0000
commit3bf9c20f1fb1972d6bcd3c03926a791a2ab6e226 (patch)
tree700436ca99f9deb9e2683d53f3956538ea1f93b4 /src/lib/libcrypto/cms/cms_pwri.c
parentf001ba54bff12dd17cc60c6ba9757b0f9e8c3daa (diff)
downloadopenbsd-3bf9c20f1fb1972d6bcd3c03926a791a2ab6e226.tar.gz
openbsd-3bf9c20f1fb1972d6bcd3c03926a791a2ab6e226.tar.bz2
openbsd-3bf9c20f1fb1972d6bcd3c03926a791a2ab6e226.zip
Use BIO_indent() for indentation in tasn_prn.c
Using a loop to print pieces of a static buffer containing 20 spaces to indent things is just silly. Even sillier is making this buffer const without looking what it's actually used for... There is BIO_indent() or BIO_printf() that can handle "%*s". Add a length check to preserve behavior since BIO_indent() succeeds for negattive indent. However, peak silliness must be how BIO_dump_indent_cb() indents things. That's for another day. ok jsing
Diffstat (limited to 'src/lib/libcrypto/cms/cms_pwri.c')
0 files changed, 0 insertions, 0 deletions