diff options
Diffstat (limited to 'cpp/src/Ice/OpenSSLUtils.h')
-rw-r--r-- | cpp/src/Ice/OpenSSLUtils.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/cpp/src/Ice/OpenSSLUtils.h b/cpp/src/Ice/OpenSSLUtils.h new file mode 100644 index 00000000000..197f424b9fd --- /dev/null +++ b/cpp/src/Ice/OpenSSLUtils.h @@ -0,0 +1,51 @@ +// **********************************************************************
+//
+// Copyright (c) 2001
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+#include <openssl/ssl.h>
+#include <string>
+
+namespace IceSSL
+{
+
+namespace OpenSSL
+{
+
+extern int connectionIndex;
+
+std::string getGeneralizedTime(ASN1_GENERALIZEDTIME*);
+
+std::string getUTCTime(ASN1_UTCTIME*);
+
+std::string getASN1time(ASN1_TIME*);
+
+DH* loadDHParam(const char*);
+
+DH* getTempDH(unsigned char*, int, unsigned char*, int);
+
+DH* getTempDH512();
+
+std::string sslGetErrors();
+
+}
+
+}
+
+extern "C"
+{
+
+RSA* tmpRSACallback(SSL*, int, int);
+
+DH* tmpDHCallback(SSL*, int, int);
+
+int verifyCallback(int, X509_STORE_CTX*);
+
+int passwordCallback(char*, int, int, void*);
+
+}
|