X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=apps%2Fapps.h;h=633b344830b288f4add7a8be9ddf99f0a13c89d4;hp=ebf696b81b28010af199ecb44e00f8da3b83552c;hb=a45d7d5388c6774a484cff4af13f188240d3d50b;hpb=817cd0d52f0462039d1fe60462150be7f59d2002 diff --git a/apps/apps.h b/apps/apps.h index ebf696b81b..633b344830 100644 --- a/apps/apps.h +++ b/apps/apps.h @@ -128,9 +128,7 @@ # include # endif # include -# ifndef OPENSSL_SYS_NETWARE -# include -# endif +# include # if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_WINCE) # define openssl_fdset(a,b) FD_SET((unsigned int)a, b) @@ -487,9 +485,20 @@ int load_crls(const char *file, STACK_OF(X509_CRL) **crls, int format, const char *pass, 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, - const char *CApath, int noCAfile, int noCApath); -int ctx_set_ctlog_list_file(SSL_CTX *ctx, const char *path); +__owur int ctx_set_verify_locations(SSL_CTX *ctx, const char *CAfile, + const char *CApath, int noCAfile, + int noCApath); + +#ifndef OPENSSL_NO_CT + +/* + * Sets the file to load the Certificate Transparency log list from. + * If path is NULL, loads from the default file path. + * Returns 1 on success, 0 otherwise. + */ +__owur int ctx_set_ctlog_list_file(SSL_CTX *ctx, const char *path); + +#endif # ifdef OPENSSL_NO_ENGINE # define setup_engine(engine, debug) NULL @@ -622,6 +631,4 @@ extern int verify_quiet; extern int verify_error; extern int verify_return_error; -# include "progs.h" - #endif