aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/extract-cert.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/extract-cert.c')
-rw-r--r--scripts/extract-cert.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/extract-cert.c b/scripts/extract-cert.c
index fd0db015c65c..6ce5945a0b89 100644
--- a/scripts/extract-cert.c
+++ b/scripts/extract-cert.c
@@ -1,15 +1,15 @@
1/* Extract X.509 certificate in DER form from PKCS#11 or PEM. 1/* Extract X.509 certificate in DER form from PKCS#11 or PEM.
2 * 2 *
3 * Copyright © 2014 Red Hat, Inc. All Rights Reserved. 3 * Copyright © 2014-2015 Red Hat, Inc. All Rights Reserved.
4 * Copyright © 2015 Intel Corporation. 4 * Copyright © 2015 Intel Corporation.
5 * 5 *
6 * Authors: David Howells <dhowells@redhat.com> 6 * Authors: David Howells <dhowells@redhat.com>
7 * David Woodhouse <dwmw2@infradead.org> 7 * David Woodhouse <dwmw2@infradead.org>
8 * 8 *
9 * This program is free software; you can redistribute it and/or 9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public Licence 10 * modify it under the terms of the GNU Lesser General Public License
11 * as published by the Free Software Foundation; either version 11 * as published by the Free Software Foundation; either version 2.1
12 * 2 of the Licence, or (at your option) any later version. 12 * of the licence, or (at your option) any later version.
13 */ 13 */
14#define _GNU_SOURCE 14#define _GNU_SOURCE
15#include <stdio.h> 15#include <stdio.h>
@@ -86,7 +86,7 @@ static void write_cert(X509 *x509)
86 ERR(!wb, "%s", cert_dst); 86 ERR(!wb, "%s", cert_dst);
87 } 87 }
88 X509_NAME_oneline(X509_get_subject_name(x509), buf, sizeof(buf)); 88 X509_NAME_oneline(X509_get_subject_name(x509), buf, sizeof(buf));
89 ERR(!i2d_X509_bio(wb, x509), cert_dst); 89 ERR(!i2d_X509_bio(wb, x509), "%s", cert_dst);
90 if (kbuild_verbose) 90 if (kbuild_verbose)
91 fprintf(stderr, "Extracted cert: %s\n", buf); 91 fprintf(stderr, "Extracted cert: %s\n", buf);
92} 92}