summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2013-03-18 13:58:32 +0000
committerDr. Stephen Henson <steve@openssl.org>2013-03-18 13:59:44 +0000
commit24f599af21dfd8e1de693fd84fb612269c28de0c (patch)
tree5c178d1f6cf5435a1dbada8383a0b4519992fd8f /demos
parentef4b9f001aa2898f91c96c3bd44aad7581c47046 (diff)
Typo.
(cherry picked from commit 1546fb780bc11556a18d70c5fb29af4a9d5beaff)
Diffstat (limited to 'demos')
-rw-r--r--demos/x509/mkreq.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/demos/x509/mkreq.c b/demos/x509/mkreq.c
index d17e4ade94..d1cba9dc5a 100644
--- a/demos/x509/mkreq.c
+++ b/demos/x509/mkreq.c
@@ -7,13 +7,14 @@
#include <openssl/pem.h>
#include <openssl/conf.h>
+#include <openssl/x509.h>
#include <openssl/x509v3.h>
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#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);