]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - main.go
Tk dialog
[tofuproxy.git] / main.go
diff --git a/main.go b/main.go
index 6521cb618149a91448720480785f78b641a5e167..4464fead426d585bbc1fc6a763d280f85229b7ea 100644 (file)
--- a/main.go
+++ b/main.go
@@ -17,7 +17,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 package main
 
 import (
-       "bytes"
        "context"
        "crypto"
        "crypto/sha256"
@@ -30,7 +29,6 @@ import (
        "log"
        "net"
        "net/http"
-       "os/exec"
        "strings"
        "sync"
        "time"
@@ -65,16 +63,6 @@ func spkiHash(cert *x509.Certificate) string {
        return hex.EncodeToString(hsh[:])
 }
 
-func certInfo(certRaw []byte) string {
-       cmd := exec.Command("certtool", "--certificate-info", "--inder")
-       cmd.Stdin = bytes.NewReader(certRaw)
-       out, err := cmd.Output()
-       if err == nil {
-               return string(out)
-       }
-       return err.Error()
-}
-
 func acceptedAdd(addr, h string) {
        acceptedM.Lock()
        accepted[addr] = h