00001
00002
00003
00004 #ifndef INFO_SSLCERTVERIFYCALLBACK_H
00005 #define INFO_SSLCERTVERIFYCALLBACK_H
00006 #define OPENSSL_NO_KRB5
00007
00022 #include <openssl/opensslv.h>
00023
00024 #if OPENSSL_VERSION_NUMBER < 0x0090700fL
00025 #define RGMA_OPENSSL_CERT_VERIFY_HACK 1
00026 #else
00027 #define RGMA_OPENSSL_CERT_VERIFY_HACK 0
00028 #endif
00029
00030
00031 typedef struct x509_store_ctx_st X509_STORE_CTX;
00032 typedef struct x509_st X509;
00033
00034 namespace glite
00035 {
00036 namespace rgma
00037 {
00038
00048 class SSLCertVerifyCallback
00049 {
00050 public:
00051
00057 static int main(X509_STORE_CTX* X509StoreContext,
00058 void* argument);
00059
00077 static int checkIssued(X509_STORE_CTX* X509StoreContext,
00078 X509* certificate,
00079 X509* candidateIssuerCertificate);
00080
00081 };
00082 }
00083 }
00084 #endif // EDG_INFO_SSLCERTVERIFYCALLBACK_H