allBase64URL returns true if all characters of s are in the base64url alphabet.
(s string)
| 159 | |
| 160 | // allBase64URL returns true if all characters of s are in the base64url alphabet. |
| 161 | func 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…