/*
-tofuproxy -- HTTP proxy with TLS certificates management
+tofuproxy -- flexible HTTP/WARC proxy with TLS certificates management
Copyright (C) 2021 Sergey Matveev <stargrave@stargrave.org>
This program is free software: you can redistribute it and/or modify
}
var hsh []byte
switch tlsa.MatchingType {
+ case 0:
+ hsh = toMatch
case 1:
our := sha256.Sum256(toMatch)
hsh = our[:]