From 4fba7e05f9bee6e66759e0b8587d3932c4e3c2d4 Mon Sep 17 00:00:00 2001 From: max furman Date: Mon, 4 Mar 2019 12:15:57 -0800 Subject: [PATCH] docs: Corrected documentation on a few methods. --- authority/claims.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/authority/claims.go b/authority/claims.go index d2c45882..9f38a810 100644 --- a/authority/claims.go +++ b/authority/claims.go @@ -46,7 +46,8 @@ type dnsNamesClaim struct { names []string } -// Valid checks that certificate request common name matches the one configured. +// Valid checks that certificate request DNS Names match those configured in +// the bootstrap (token) flow. func (c *dnsNamesClaim) Valid(crt *x509.Certificate) error { tokMap := make(map[string]int) for _, e := range c.names { @@ -66,7 +67,8 @@ type ipAddressesClaim struct { ips []net.IP } -// Valid checks that certificate request common name matches the one configured. +// Valid checks that certificate request IP Addresses match those configured in +// the bootstrap (token) flow. func (c *ipAddressesClaim) Valid(crt *x509.Certificate) error { tokMap := make(map[string]int) for _, e := range c.ips {