diff options
author | tb <> | 2025-01-26 20:18:26 +0000 |
---|---|---|
committer | tb <> | 2025-01-26 20:18:26 +0000 |
commit | df05327f43597e9bb318d8a2b4f5ba4653e79b1c (patch) | |
tree | 0aeec67dcf3be4c7ea52ab8ca0e1028737c810d0 /src/lib/libcrypto/dsa | |
parent | d2f7e48d3d75285ab819059405075d1806694766 (diff) | |
download | openbsd-df05327f43597e9bb318d8a2b4f5ba4653e79b1c.tar.gz openbsd-df05327f43597e9bb318d8a2b4f5ba4653e79b1c.tar.bz2 openbsd-df05327f43597e9bb318d8a2b4f5ba4653e79b1c.zip |
Rework X509_NAME_print()
This is legacy API that we can unexport since nothing uses it directly.
Unfortunately we need to keep the functions because there are plenty of
things that use it indirectly by passing XN_FLAG_COMPAT to X509_print_ex().
The old implementation parsed the X509_NAME_oneline() output in order to
remove the / preceding the (one or two-uppercase letters) name and to
insert ", " afterward. This is just stupid in so many ways, not least
because there's basically no limit to the garbage that you can stuff into
an X.500 name.
So rework this and only include the name entries whose short names are
one or two letters long. This way, this becomes slightly saner and less
fragile.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/dsa')
0 files changed, 0 insertions, 0 deletions