summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/demos/x509/mkreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/src/demos/x509/mkreq.c')
-rw-r--r--src/lib/libssl/src/demos/x509/mkreq.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libssl/src/demos/x509/mkreq.c b/src/lib/libssl/src/demos/x509/mkreq.c
index d17e4ade94..d1cba9dc5a 100644
--- a/src/lib/libssl/src/demos/x509/mkreq.c
+++ b/src/lib/libssl/src/demos/x509/mkreq.c
@@ -7,13 +7,14 @@
7 7
8#include <openssl/pem.h> 8#include <openssl/pem.h>
9#include <openssl/conf.h> 9#include <openssl/conf.h>
10#include <openssl/x509.h>
10#include <openssl/x509v3.h> 11#include <openssl/x509v3.h>
11#ifndef OPENSSL_NO_ENGINE 12#ifndef OPENSSL_NO_ENGINE
12#include <openssl/engine.h> 13#include <openssl/engine.h>
13#endif 14#endif
14 15
15int mkreq(X509_REQ **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days); 16int mkreq(X509_REQ **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days);
16int add_ext(STACK_OF(X509_REQUEST) *sk, int nid, char *value); 17int add_ext(STACK_OF(X509_EXTENSION) *sk, int nid, char *value);
17 18
18int main(int argc, char **argv) 19int main(int argc, char **argv)
19 { 20 {
@@ -148,7 +149,7 @@ err:
148 * because we wont reference any other sections. 149 * because we wont reference any other sections.
149 */ 150 */
150 151
151int add_ext(STACK_OF(X509_REQUEST) *sk, int nid, char *value) 152int add_ext(STACK_OF(X509_EXTENSION) *sk, int nid, char *value)
152 { 153 {
153 X509_EXTENSION *ex; 154 X509_EXTENSION *ex;
154 ex = X509V3_EXT_conf_nid(NULL, NULL, nid, value); 155 ex = X509V3_EXT_conf_nid(NULL, NULL, nid, value);