diff options
Diffstat (limited to 'src/lib/libssl/src/demos/x509/mkreq.c')
| -rw-r--r-- | src/lib/libssl/src/demos/x509/mkreq.c | 5 |
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 | ||
| 15 | int mkreq(X509_REQ **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days); | 16 | int mkreq(X509_REQ **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days); |
| 16 | int add_ext(STACK_OF(X509_REQUEST) *sk, int nid, char *value); | 17 | int add_ext(STACK_OF(X509_EXTENSION) *sk, int nid, char *value); |
| 17 | 18 | ||
| 18 | int main(int argc, char **argv) | 19 | int 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 | ||
| 151 | int add_ext(STACK_OF(X509_REQUEST) *sk, int nid, char *value) | 152 | int 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); |
