]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - dane.go
WARC
[tofuproxy.git] / dane.go
diff --git a/dane.go b/dane.go
index cd97220f6d7ff4ed9d7fdd477fca846e0de2b8e3..9ab950413f8d00e931f01c6108e3123eba2e850d 100644 (file)
--- a/dane.go
+++ b/dane.go
@@ -1,5 +1,5 @@
 /*
-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
@@ -72,6 +72,8 @@ func dane(addr string, cert *x509.Certificate) (bool, bool) {
                }
                var hsh []byte
                switch tlsa.MatchingType {
+               case 0:
+                       hsh = toMatch
                case 1:
                        our := sha256.Sum256(toMatch)
                        hsh = our[:]