diff options
author | Daiki Ueno <ueno@gnu.org> | 2021-04-25 17:04:46 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2021-04-25 17:04:46 +0200 |
commit | 1934a16150043ffbc96a6b57722a95ab0d45631b (patch) | |
tree | a681819b97f46474f3d95b5a6fecb3f200ca2506 | |
parent | c488a91ae4ec8e14d81d15a9dc129a7c8c212e54 (diff) | |
download | gnutls-1934a16150043ffbc96a6b57722a95ab0d45631b.tar.gz |
gnutls_x509_crt_get_dn: clarify null-termination of the output
Signed-off-by: Daiki Ueno <ueno@gnu.org>
-rw-r--r-- | lib/x509/x509.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/x509/x509.c b/lib/x509/x509.c index 4e494d10e0..b56f6195b2 100644 --- a/lib/x509/x509.c +++ b/lib/x509/x509.c @@ -861,7 +861,8 @@ gnutls_x509_crt_get_issuer_dn_oid(gnutls_x509_crt_t cert, * described in RFC4514. The output string will be ASCII or UTF-8 * encoded, depending on the certificate data. * - * If @buf is null then only the size will be filled. + * The @buf returned will be null terminated and the @buf_size will account + * for the trailing null. If @buf is null then only the size will be filled. * * This function does not output a fully RFC4514 compliant string, if * that is required see gnutls_x509_crt_get_dn3(). |