]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - dane.go
TLS client certificates
[tofuproxy.git] / dane.go
diff --git a/dane.go b/dane.go
index cd97220f6d7ff4ed9d7fdd477fca846e0de2b8e3..d3218dda2509b6e9f595513899383d10266402d4 100644 (file)
--- a/dane.go
+++ b/dane.go
@@ -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[:]