Fix $regex<n> use-after-free. Bug 2915
[exim.git] / src / src / hash.h
index a29d4653161f000bee90b8e13cd087a76ae6515a..588325baf29c2e7f960072a411cd485ba95f0945 100644 (file)
@@ -1,7 +1,6 @@
 /*
  *  Exim - an Internet mail transport agent
- *
- *  Copyright (C) 1995 - 2018  Exim maintainers
+ *  Copyright (c) The Exim Maintainers 1995 - 2022
  *
  *  Hash interface functions
  */
@@ -30,6 +29,7 @@
 
 typedef enum hashmethod {
   HASH_BADTYPE,
+  HASH_NULL,
   HASH_SHA1,
 
   HASH_SHA2_256,
@@ -76,6 +76,7 @@ typedef struct {
 
 extern BOOL     exim_sha_init(hctx *, hashmethod);
 extern void     exim_sha_update(hctx *, const uschar *a, int);
+extern void     exim_sha_update_string(hctx *, const uschar *a);
 extern void     exim_sha_finish(hctx *, blob *);
 
 #endif