]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
pkcs7 output: use the new functions for DN output
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 14 Nov 2016 09:03:29 +0000 (10:03 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 14 Nov 2016 12:34:55 +0000 (13:34 +0100)
lib/x509/pkcs7-output.c

index b3da94d905ebe2d010a3e19b23f56ddddb5be016..30427201087394b5fe42ca20779167d315ccdb75 100644 (file)
@@ -52,7 +52,7 @@ static void print_dn(gnutls_buffer_st * str, const char *prefix,
                goto cleanup;
        }
 
-       ret = gnutls_x509_dn_get_str(dn, &output);
+       ret = gnutls_x509_dn_get_str2(dn, &output, 0);
        if (ret < 0) {
                addf(str, "%s: [error]\n", prefix);
                goto cleanup;