diff options
author | Michael Demeter <michael.demeter@intel.com> | 2014-01-06 15:47:34 -0800 |
---|---|---|
committer | Michael Demeter <michael.demeter@intel.com> | 2014-01-06 15:47:34 -0800 |
commit | 975084c3fdbacd5f8a3c626171be8d4df27b2ac5 (patch) | |
tree | 7f18b115ac927b799ebfe55335282130047b3ec6 /demos | |
parent | 37a8d409f8ffc065c1b1417f0f3b5ba050e8aa95 (diff) | |
download | openssl-975084c3fdbacd5f8a3c626171be8d4df27b2ac5.tar.gz openssl-975084c3fdbacd5f8a3c626171be8d4df27b2ac5.tar.bz2 openssl-975084c3fdbacd5f8a3c626171be8d4df27b2ac5.zip |
Imported Upstream version 1.0.1fupstream/1.0.1f
Diffstat (limited to 'demos')
-rw-r--r-- | demos/x509/mkreq.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <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); |