X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=apps%2Fapps.h;h=5ea148d9f3f2d8467d158a6387e7660d7641241f;hp=3ab453bef8ba52b8c895fc2919d8f6fef441c922;hb=33254e1c6fa6a1acf28fd0d9b6dc4ee30e569b95;hpb=03f887ca1213744e2da3ec50f46d9fe3bc269510 diff --git a/apps/apps.h b/apps/apps.h index 3ab453bef8..5ea148d9f3 100644 --- a/apps/apps.h +++ b/apps/apps.h @@ -1,4 +1,3 @@ -/* apps/apps.h */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -139,6 +138,17 @@ # define openssl_fdset(a,b) FD_SET(a, b) # endif +# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && \ + defined(INTMAX_MAX) && defined(UINTMAX_MAX) +int opt_imax(const char *value, intmax_t *result); +int opt_umax(const char *value, uintmax_t *result); +# else +# define opt_imax opt_long +# define opt_umax opt_ulong +# define intmax_t long +# define uintmax_t unsigned long +# endif + int app_RAND_load_file(const char *file, int dont_warn); int app_RAND_write_file(const char *file); /* @@ -385,7 +395,8 @@ int opt_format(const char *s, unsigned long flags, int *result); int opt_int(const char *arg, int *result); int opt_ulong(const char *arg, unsigned long *result); int opt_long(const char *arg, long *result); -#if defined(INTMAX_MAX) && defined(UINTMAX_MAX) +#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && \ + defined(INTMAX_MAX) && defined(UINTMAX_MAX) int opt_imax(const char *arg, intmax_t *result); int opt_umax(const char *arg, uintmax_t *result); #endif @@ -442,12 +453,10 @@ EVP_PKEY *load_key(const char *file, int format, int maybe_stdin, const char *pass, ENGINE *e, const char *key_descrip); EVP_PKEY *load_pubkey(const char *file, int format, int maybe_stdin, const char *pass, ENGINE *e, const char *key_descrip); -STACK_OF(X509) *load_certs(const char *file, int format, - const char *pass, ENGINE *e, - const char *cert_descrip); -STACK_OF(X509_CRL) *load_crls(const char *file, int format, - const char *pass, ENGINE *e, - const char *cert_descrip); +int load_certs(const char *file, STACK_OF(X509) **certs, int format, + const char *pass, ENGINE *e, const char *cert_descrip); +int load_crls(const char *file, STACK_OF(X509_CRL) **crls, int format, + const char *pass, ENGINE *e, const char *cert_descrip); X509_STORE *setup_verify(char *CAfile, char *CApath, int noCAfile, int noCApath); int ctx_set_verify_locations(SSL_CTX *ctx, const char *CAfile,