summaryrefslogtreecommitdiffstats
path: root/runtime/cryprov.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-05-13 08:04:13 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-05-13 08:04:13 +0200
commit0d000a8b1096abb26f9e47a4083dc560fed0282d (patch)
tree5f62c0e9bc51fc63c65b50de3942754e3420376f /runtime/cryprov.h
parent415b26d5a19d8b1fd50d8e0b7b29cc8527537316 (diff)
downloadrsyslog-0d000a8b1096abb26f9e47a4083dc560fed0282d.tar.gz
rsyslog-0d000a8b1096abb26f9e47a4083dc560fed0282d.tar.bz2
rsyslog-0d000a8b1096abb26f9e47a4083dc560fed0282d.zip
basic queue file encryption
Diffstat (limited to 'runtime/cryprov.h')
-rw-r--r--runtime/cryprov.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/cryprov.h b/runtime/cryprov.h
index cbb2f45d..66c1cfd1 100644
--- a/runtime/cryprov.h
+++ b/runtime/cryprov.h
@@ -38,9 +38,10 @@ BEGINinterface(cryprov) /* name must also be changed in ENDinterface macro! */
rsRetVal (*Construct)(void *ppThis);
rsRetVal (*SetCnfParam)(void *ppThis, struct nvlst *lst, int paramType);
rsRetVal (*Destruct)(void *ppThis);
- rsRetVal (*OnFileOpen)(void *pThis, uchar *fn, void *pFileInstData);
+ rsRetVal (*OnFileOpen)(void *pThis, uchar *fn, void *pFileInstData, char openMode);
rsRetVal (*Encrypt)(void *pFileInstData, uchar *buf, size_t *lenBuf);
+ rsRetVal (*Decrypt)(void *pFileInstData, uchar *buf, size_t *lenBuf);
rsRetVal (*OnFileClose)(void *pFileInstData, off64_t offsLogfile);
ENDinterface(cryprov)
-#define cryprovCURR_IF_VERSION 2 /* increment whenever you change the interface structure! */
+#define cryprovCURR_IF_VERSION 3 /* increment whenever you change the interface structure! */
#endif /* #ifndef INCLUDED_CRYPROV_H */