From 975084c3fdbacd5f8a3c626171be8d4df27b2ac5 Mon Sep 17 00:00:00 2001 From: Michael Demeter Date: Mon, 6 Jan 2014 15:47:34 -0800 Subject: Imported Upstream version 1.0.1f --- demos/x509/mkreq.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'demos') diff --git a/demos/x509/mkreq.c b/demos/x509/mkreq.c index d17e4ad..d1cba9d 100644 --- a/demos/x509/mkreq.c +++ b/demos/x509/mkreq.c @@ -7,13 +7,14 @@ #include #include +#include #include #ifndef OPENSSL_NO_ENGINE #include #endif int mkreq(X509_REQ **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days); -int add_ext(STACK_OF(X509_REQUEST) *sk, int nid, char *value); +int add_ext(STACK_OF(X509_EXTENSION) *sk, int nid, char *value); int main(int argc, char **argv) { @@ -148,7 +149,7 @@ err: * because we wont reference any other sections. */ -int add_ext(STACK_OF(X509_REQUEST) *sk, int nid, char *value) +int add_ext(STACK_OF(X509_EXTENSION) *sk, int nid, char *value) { X509_EXTENSION *ex; ex = X509V3_EXT_conf_nid(NULL, NULL, nid, value); -- cgit v1.2.3