summaryrefslogtreecommitdiff
path: root/security/pgp6/files/patch-StPGPRefs.h
blob: 584f36efba02178fcee47465d7f8a172affd6604 (plain) (blame)
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
--- libs/pfl/common/classes/StPGPRefs.h.orig	1999-08-05 01:22:16.000000000 -0700
+++ libs/pfl/common/classes/StPGPRefs.h	2008-08-31 01:11:35.000000000 -0700
@@ -64,27 +64,27 @@ protected:
 
 #ifdef Included_pgpKeys_h
 	typedef StPGPRef<PGPKeySetRef>	StPGPKeySetRef;
-	inline void StPGPKeySetRef::Dispose() { PGPFreeKeySet(mRef); }
+	template <> inline void StPGPKeySetRef::Dispose() { PGPFreeKeySet(mRef); }
 
 	typedef StPGPRef<PGPKeyListRef>	StPGPKeyListRef;
-	inline void StPGPKeyListRef::Dispose() { PGPFreeKeyList(mRef); }
+	template <> inline void StPGPKeyListRef::Dispose() { PGPFreeKeyList(mRef); }
 
 	typedef StPGPRef<PGPKeyIterRef>	StPGPKeyIterRef;
-	inline void StPGPKeyIterRef::Dispose() { PGPFreeKeyIter(mRef); }
+	template <> inline void StPGPKeyIterRef::Dispose() { PGPFreeKeyIter(mRef); }
 #endif
 
 #ifdef Included_pgpHashing_h
 	typedef StPGPRef<PGPHashContextRef>	StPGPHashContextRef;
-	inline void StPGPHashContextRef::Dispose() { PGPFreeHashContext(mRef); }
+	template <> inline void StPGPHashContextRef::Dispose() { PGPFreeHashContext(mRef); }
 #endif
 
 #ifdef Included_PGPtls_h
 	typedef StPGPRef<PGPtlsSessionRef>	StPGPtlsSessionRef;
-	inline void StPGPtlsSessionRef::Dispose() { PGPFreeTLSSession(mRef); }
+	template <> inline void StPGPtlsSessionRef::Dispose() { PGPFreeTLSSession(mRef); }
 #endif
 
 #ifdef Included_pgpMemoryMgr_h
-	inline void StPGPRef<PGPByte *>::Dispose() { PGPFreeData(mRef); }
+	template <> inline void StPGPRef<PGPByte *>::Dispose() { PGPFreeData(mRef); }
 	class StPGPDataRef	:	public StPGPRef<PGPByte *> {
 	public:
 						StPGPDataRef() { }
@@ -104,22 +104,22 @@ protected:
 	};
 
 	typedef StPGPRef<PGPMemoryMgrRef>	StPGPMemoryMgrRef;
-	inline void StPGPMemoryMgrRef::Dispose() { PGPFreeMemoryMgr(mRef); }
+	template <> inline void StPGPMemoryMgrRef::Dispose() { PGPFreeMemoryMgr(mRef); }
 #endif
 
 #ifdef Included_pgpSockets_h
 	typedef StPGPRef<PGPSocketRef>	StPGPSocketRef;
-	inline void StPGPSocketRef::Dispose() { PGPCloseSocket(mRef); }
+	template <> inline void StPGPSocketRef::Dispose() { PGPCloseSocket(mRef); }
 #endif
 
 #ifdef Included_pflPrefs_h
 	typedef StPGPRef<PGPPrefRef>	StPGPPrefRef;
-	inline void StPGPPrefRef::Dispose() { PGPClosePrefFile(mRef); }
+	template <> inline void StPGPPrefRef::Dispose() { PGPClosePrefFile(mRef); }
 #endif
 
 #ifdef Included_pgpIO_h
 	typedef StPGPRef<PGPIORef>	StPGPIORef;
-	inline void StPGPIORef::Dispose() { PGPFreeIO(mRef); }
+	template <> inline void StPGPIORef::Dispose() { PGPFreeIO(mRef); }
 #endif
 
 #undef STATIC_CAST