]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
doc: Fix X509_NAME_print documentation to reflect actual behavior
authorkovan <xaum.io@gmail.com>
Mon, 2 Feb 2026 11:35:29 +0000 (12:35 +0100)
committerNorbert Pocs <norbertp@openssl.org>
Fri, 13 Mar 2026 08:24:52 +0000 (09:24 +0100)
The documentation claimed that X509_NAME_print() would indent each line
by obase characters and wrap lines exceeding 80 characters. However, the
implementation has never actually used obase for any purpose since the
line-wrapping code was removed in 2007 as unreachable.

Update the documentation to state that obase is ignored and the function
outputs on a single line.

Fixes #18004

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
MergeDate: Fri Mar 13 08:24:57 2026
(Merged from https://github.com/openssl/openssl/pull/29900)

doc/man3/X509_NAME_print_ex.pod

index e43bb191f523576dddb1cd8c63cc4b2b3f753ec0..f09bd1f79f4170a9af94ffbc2f78a4b393994ce2 100644 (file)
@@ -32,9 +32,8 @@ I<size> is ignored.
 Otherwise, at most I<size> bytes will be written, including the ending '\0',
 and I<buf> is returned.
 
-X509_NAME_print() prints out I<name> to I<bp> indenting each line by I<obase>
-characters. Multiple lines are used if the output (including indent) exceeds
-80 characters.
+X509_NAME_print() prints out I<name> to I<bp> on a single line.
+The I<obase> parameter is ignored and retained only for API compatibility.
 
 =head1 NOTES