MCPcopy
hub / github.com/jsha/minica / parseIPs

Function parseIPs

main.go:201–211  ·  view source on GitHub ↗
(ipAddresses []string)

Source from the content-addressed store, hash-verified

199}
200
201func parseIPs(ipAddresses []string) ([]net.IP, error) {
202 var parsed []net.IP
203 for _, s := range ipAddresses {
204 p := net.ParseIP(s)
205 if p == nil {
206 return nil, fmt.Errorf("invalid IP address %s", s)
207 }
208 parsed = append(parsed, p)
209 }
210 return parsed, nil
211}
212
213func publicKeysEqual(a, b interface{}) (bool, error) {
214 aBytes, err := x509.MarshalPKIXPublicKey(a)

Callers 1

signFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…