summaryrefslogtreecommitdiffstats
path: root/dilos/libraries/libtdeldap/debian/patches/dilos.patch
blob: 7092a674942f547737d5ef74b14671bb86a231a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Index: libtdeldap/src/libtdeldap.cpp
===================================================================
--- libtdeldap.orig/src/libtdeldap.cpp
+++ libtdeldap/src/libtdeldap.cpp
@@ -25,6 +25,10 @@
 #include <netdb.h>
 #include <pwd.h>
 
+#ifdef	__dilos__
+#define	__TDE_HAVE_TDEHWLIB
+#endif	/* __dilos__ */
+
 #include <tqdir.h>
 #include <tqfile.h>
 #include <tqprocess.h>
@@ -39,8 +43,58 @@
 #include <tdesu/process.h>
 #include <ksslcertificate.h>
 #include <krfcdate.h>
+#ifdef	__dilos__
+//class TDEGenericHardwareList;
+
+class TDEGenericDevice;
+class TDEHardwareDevices;
+
+namespace TDEGenericDeviceType {
+enum TDEGenericDeviceType {
+        CryptographicCard
+};
+};
+
+class TDEGenericDevice
+{
+	void	*dummy;
+};
+
+typedef TQPtrList<TDEGenericDevice> TDEGenericHardwareList;
+typedef TQValueList<X509*> X509CertificatePtrList;
+
+class TDECryptographicCardDevice:public TDEGenericDevice
+{
+public:
+	X509CertificatePtrList cardX509Certificates(){return (X509CertificatePtrList());}
+
+	static TQString pkcsProviderLibrary(){return (TQString::null);}
+};
+
+
+
+
+class TDEHardwareDevices
+{
+	void *dummy;
+public:
+	TDEGenericHardwareList listByDeviceClass(const TDEGenericDeviceType::TDEGenericDeviceType)
+	{
+		return TDEGenericHardwareList();
+	}
+};
+
+TDEHardwareDevices *
+TDEGlobal::hardwareDevices()
+{
+
+	return (NULL);
+}
+
+#else	/* !__dilos__ */
 #include <tdehardwaredevices.h>
 #include <tdecryptographiccarddevice.h>
+#endif	/* __dilos__ */
 
 #include <ldap.h>
 #include <sasl/sasl.h>