]> git.notmuchmail.org Git - notmuch/blobdiff - util/zlib-extra.h
crypto: handle PKCS#7 envelopedData in _notmuch_crypto_decrypt
[notmuch] / util / zlib-extra.h
index aedfd48fcb06b73e52ff3514e9fb152dec1b831e..e9925c985330073398c01b53dffcf0d6e6fc208d 100644 (file)
@@ -4,6 +4,10 @@
 #include "util.h"
 #include <zlib.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* Like getline, but read from a gzFile. Allocation is with talloc.
  * Returns:
  *
@@ -22,4 +26,14 @@ gz_getline (void *ctx, char **lineptr, ssize_t *bytes_read, gzFile stream);
 
 const char *
 gz_error_string (util_status_t status, gzFile stream);
+
+/* Call gzerror with a dummy errno argument, the docs don't promise to
+ * support the NULL case */
+const char *
+gzerror_str(gzFile file);
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif