From: Nikos Mavrogiannopoulos Date: Sun, 28 Dec 2014 09:13:10 +0000 (+0200) Subject: openpgp: properly print names in oneline output as well X-Git-Tag: gnutls_3_4_0~426 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f2886c2cb30fadcf9ec54d1f2995ee183ec45604;p=thirdparty%2Fgnutls.git openpgp: properly print names in oneline output as well --- diff --git a/lib/openpgp/output.c b/lib/openpgp/output.c index c355244009..8ed87f894e 100644 --- a/lib/openpgp/output.c +++ b/lib/openpgp/output.c @@ -426,6 +426,9 @@ print_oneline(gnutls_buffer_st * str, gnutls_openpgp_crt_t cert) size_t dn_size = 0; err = gnutls_openpgp_crt_get_name(cert, i, NULL, &dn_size); + if (err == GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE) + break; + if (err != GNUTLS_E_SHORT_MEMORY_BUFFER) { addf(str, "unknown name (%s), ", gnutls_strerror(err));