diff options
Diffstat (limited to 'src/lib/libssl/src/apps/apps.h')
| -rw-r--r-- | src/lib/libssl/src/apps/apps.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/lib/libssl/src/apps/apps.h b/src/lib/libssl/src/apps/apps.h index 2dcdb88c43..74d479e91d 100644 --- a/src/lib/libssl/src/apps/apps.h +++ b/src/lib/libssl/src/apps/apps.h | |||
| @@ -65,6 +65,8 @@ | |||
| 65 | #include <openssl/bio.h> | 65 | #include <openssl/bio.h> |
| 66 | #include <openssl/crypto.h> | 66 | #include <openssl/crypto.h> |
| 67 | #include <openssl/x509.h> | 67 | #include <openssl/x509.h> |
| 68 | #include <openssl/lhash.h> | ||
| 69 | #include <openssl/conf.h> | ||
| 68 | 70 | ||
| 69 | int app_RAND_load_file(const char *file, BIO *bio_e, int dont_warn); | 71 | int app_RAND_load_file(const char *file, BIO *bio_e, int dont_warn); |
| 70 | int app_RAND_write_file(const char *file, BIO *bio_e); | 72 | int app_RAND_write_file(const char *file, BIO *bio_e); |
| @@ -98,7 +100,6 @@ extern BIO *bio_err; | |||
| 98 | #else | 100 | #else |
| 99 | 101 | ||
| 100 | #define MAIN(a,v) PROG(a,v) | 102 | #define MAIN(a,v) PROG(a,v) |
| 101 | #include <openssl/conf.h> | ||
| 102 | extern LHASH *config; | 103 | extern LHASH *config; |
| 103 | extern char *default_config_file; | 104 | extern char *default_config_file; |
| 104 | extern BIO *bio_err; | 105 | extern BIO *bio_err; |
| @@ -144,13 +145,27 @@ void program_name(char *in,char *out,int size); | |||
| 144 | int chopup_args(ARGS *arg,char *buf, int *argc, char **argv[]); | 145 | int chopup_args(ARGS *arg,char *buf, int *argc, char **argv[]); |
| 145 | #ifdef HEADER_X509_H | 146 | #ifdef HEADER_X509_H |
| 146 | int dump_cert_text(BIO *out, X509 *x); | 147 | int dump_cert_text(BIO *out, X509 *x); |
| 148 | void print_name(BIO *out, char *title, X509_NAME *nm, unsigned long lflags); | ||
| 147 | #endif | 149 | #endif |
| 150 | int set_name_ex(unsigned long *flags, const char *arg); | ||
| 148 | int app_passwd(BIO *err, char *arg1, char *arg2, char **pass1, char **pass2); | 151 | int app_passwd(BIO *err, char *arg1, char *arg2, char **pass1, char **pass2); |
| 152 | int add_oid_section(BIO *err, LHASH *conf); | ||
| 153 | X509 *load_cert(BIO *err, char *file, int format); | ||
| 154 | EVP_PKEY *load_key(BIO *err, char *file, int format, char *pass); | ||
| 155 | EVP_PKEY *load_pubkey(BIO *err, char *file, int format); | ||
| 156 | STACK_OF(X509) *load_certs(BIO *err, char *file, int format); | ||
| 157 | |||
| 149 | #define FORMAT_UNDEF 0 | 158 | #define FORMAT_UNDEF 0 |
| 150 | #define FORMAT_ASN1 1 | 159 | #define FORMAT_ASN1 1 |
| 151 | #define FORMAT_TEXT 2 | 160 | #define FORMAT_TEXT 2 |
| 152 | #define FORMAT_PEM 3 | 161 | #define FORMAT_PEM 3 |
| 153 | #define FORMAT_NETSCAPE 4 | 162 | #define FORMAT_NETSCAPE 4 |
| 163 | #define FORMAT_PKCS12 5 | ||
| 164 | #define FORMAT_SMIME 6 | ||
| 165 | /* Since this is currently inofficial, let's give it a high number */ | ||
| 166 | #define FORMAT_ENGINE 127 | ||
| 167 | |||
| 168 | #define NETSCAPE_CERT_HDR "certificate" | ||
| 154 | 169 | ||
| 155 | #define APP_PASS_LEN 1024 | 170 | #define APP_PASS_LEN 1024 |
| 156 | 171 | ||
