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.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/scripts/extract-cert.c b/scripts/extract-cert.c
index 10d23ca9f617..b071bf476fea 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>
@@ -17,13 +17,9 @@
17#include <stdint.h> 17#include <stdint.h>
18#include <stdbool.h> 18#include <stdbool.h>
19#include <string.h> 19#include <string.h>
20#include <getopt.h>
21#include <err.h> 20#include <err.h>
22#include <arpa/inet.h>
23#include <openssl/bio.h> 21#include <openssl/bio.h>
24#include <openssl/evp.h>
25#include <openssl/pem.h> 22#include <openssl/pem.h>
26#include <openssl/pkcs7.h>
27#include <openssl/err.h> 23#include <openssl/err.h>
28#include <openssl/engine.h> 24#include <openssl/engine.h>
29 25