From: Richard Levitte Date: Tue, 22 Nov 2016 10:22:16 +0000 (+0100) Subject: Clarify what X509_NAME_online does with the given buffer and size X-Git-Tag: OpenSSL_1_0_2k~32 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c4c71650bb670ab09ea7cc2e68cd4be7a414c855;p=oweals%2Fopenssl.git Clarify what X509_NAME_online does with the given buffer and size Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/1980) (cherry picked from commit 19cb71ef6e414759d737918bab10be2cc1d8bd99) (cherry picked from commit 793d9b79033c2fffc8e781dab2fd678661b348cd) --- diff --git a/doc/crypto/X509_NAME_print_ex.pod b/doc/crypto/X509_NAME_print_ex.pod index 2579a5dc9d..d73520f35e 100644 --- a/doc/crypto/X509_NAME_print_ex.pod +++ b/doc/crypto/X509_NAME_print_ex.pod @@ -23,9 +23,11 @@ can be extensively customised by use of the B parameter. X509_NAME_print_ex_fp() is identical to X509_NAME_print_ex() except the output is written to FILE pointer B. -X509_NAME_oneline() prints an ASCII version of B to B. At most B -bytes will be written. If B is B then a buffer is dynamically allocated -and returned, otherwise B is returned. +X509_NAME_oneline() prints an ASCII version of B to B. +If B is B then a buffer is dynamically allocated and returned, and +B is ignored. +Otherwise, at most B bytes will be written, including the ending '\0', +and B is returned. X509_NAME_print() prints out B to B indenting each line by B characters. Multiple lines are used if the output (including indent) exceeds