From cb492cadc6ba24321ecc7153d21e00c7c5838057 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Mon, 31 Jan 2022 14:19:37 +0100 Subject: [PATCH] Added builder patch for public sha256 functions --- patches/patch.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/patches/patch.sh b/patches/patch.sh index a7378e75..98139769 100755 --- a/patches/patch.sh +++ b/patches/patch.sh @@ -5,3 +5,9 @@ # Add parse_request_no_body cat parse_request_no_body.v >> "$1"/vlib/net/http/request.v + +# Make sha256 functions public +sed -i \ + -e 's/\(fn (mut d Digest) checksum(\)/pub \1/' \ + -e 's/\(fn (mut d Digest) write(\)/pub \1/' \ + "$1"/vlib/crypto/sha256/sha256.v