00001 #ifndef GRST_VERIFYCALLBACK__H 00002 #define GRST_VERIFYCALLBACK__H 00003 00004 #include <openssl/ssl.h> 00005 00006 extern X509_STORE* grst_store; 00007 00008 #define GRST_VERIFY_OPTIONAL_NO_CA 1 00009 00010 extern int grst_verify; // relax the verify setting if you want to GRST_VERIFY_OPTIONAL_NO_CA 00011 extern int grst_depth; 00012 00013 extern char* grst_vomsdir; 00014 extern char* grst_cadir; 00015 00016 #ifdef __cplusplus 00017 extern "C" 00018 { 00019 #endif 00020 int GRST_X509_set_log_fd(FILE* fd); 00021 int GRST_verify_cert_wrapper(X509_STORE_CTX *ctx, void *p); 00022 int GRST_X509_check_issued_wrapper(X509_STORE_CTX *ctx, X509 *x, X509 *issuer); 00023 int GRST_callback_SSLVerify_wrapper(int ok, X509_STORE_CTX *ctx); 00024 void GRST_print_ssl_creds(void *grst_chain); 00025 char* GRST_get_voms_roles_and_free(void *grst_chain); 00026 void GRST_free_chain(void *grst_chain); 00027 00028 X509_STORE *SSL_X509_STORE_create(char *cpFile, char *cpPath); 00029 int SSL_X509_STORE_lookup(X509_STORE *pStore, int nType, 00030 X509_NAME *pName, X509_OBJECT *pObj); 00031 00032 #ifdef __cplusplus 00033 } 00034 #endif 00035 00036 #endif