MCPcopy
hub / github.com/caddyserver/certmagic / allBase64URL

Function allBase64URL

httphandlers.go:161–172  ·  view source on GitHub ↗

allBase64URL returns true if all characters of s are in the base64url alphabet.

(s string)

Source from the content-addressed store, hash-verified

159
160// allBase64URL returns true if all characters of s are in the base64url alphabet.
161func allBase64URL(s string) bool {
162 for _, c := range s {
163 if (c >= 'A' && c <= 'Z') ||
164 (c >= 'a' && c <= 'z') ||
165 (c >= '0' && c <= '9') ||
166 c == '-' || c == '_' {
167 continue
168 }
169 return false
170 }
171 return true
172}
173
174// solveHTTPChallenge solves the HTTP challenge using the given challenge information.
175// If the challenge is being solved in a distributed fahsion, set distributed to true for logging purposes.

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…