X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fx509%2Fx509_vfy.h;h=e0476370214d83c08ee411fdcc1ac94bb76fbfab;hp=027160f05f919d0242a923ff164b8da7f0496d77;hb=0b86eb3ea66628997a11bc8588c4695eabd90e62;hpb=0490a86d011420092845fac663725d2370f88046 diff --git a/crypto/x509/x509_vfy.h b/crypto/x509/x509_vfy.h index 027160f05f..e047637021 100644 --- a/crypto/x509/x509_vfy.h +++ b/crypto/x509/x509_vfy.h @@ -56,6 +56,12 @@ * [including the GNU Public Licence.] */ +#ifndef HEADER_X509_H +#include +/* openssl/x509.h ends up #include-ing this file at about the only + * appropriate moment. */ +#endif + #ifndef HEADER_X509_VFY_H #define HEADER_X509_VFY_H @@ -63,8 +69,8 @@ extern "C" { #endif -#include "bio.h" -#include "crypto.h" +#include +#include /* Outer object */ typedef struct x509_hash_dir_st @@ -124,7 +130,7 @@ typedef struct x509_lookup_st X509_LOOKUP; /* This is a static that defines the function interface */ typedef struct x509_lookup_method_st { - char *name; + const char *name; int (*new_item)(X509_LOOKUP *ctx); void (*free)(X509_LOOKUP *ctx); int (*init)(X509_LOOKUP *ctx); @@ -279,8 +285,8 @@ int X509_STORE_get_by_subject(X509_STORE_CTX *vs,int type,X509_NAME *name, int X509_LOOKUP_ctrl(X509_LOOKUP *ctx,int cmd,char *argc,long argl,char **ret); #ifndef NO_STDIO -int X509_load_cert_file(X509_LOOKUP *ctx, char *file, int type); -int X509_load_crl_file(X509_LOOKUP *ctx, char *file, int type); +int X509_load_cert_file(X509_LOOKUP *ctx, const char *file, int type); +int X509_load_crl_file(X509_LOOKUP *ctx, const char *file, int type); #endif