Просмотр исходного кода

docs: Corrected documentation on a few methods.

max furman 7 лет назад
Родитель
Сommit
4fba7e05f9
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      authority/claims.go

+ 4 - 2
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 {