-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cert validation behaviour change in 2.2.0 #59
Comments
Thanks for reporting this!
$ cat huh.go
package main
import (
"encoding/base64"
"fmt"
)
func main() {
decoded, err := base64.StdEncoding.WithPadding(base64.NoPadding).DecodeString("INVALID")
if err != nil {
fmt.Println("decode error:", err)
return
}
fmt.Printf("%x\n", string(decoded))
}
$ go run huh.go
20d5402c80 I would recommend using a more overtly wrong base64 encoding in your test, such as edit: altered to language to remove implication that base64 crate does something non-standard; it is just optional according to RFC4648. |
(Sorry, read your issue report wrong.) |
OK, thank you for the explanation. I think there was a misunderstanding (on our part) about the validation performed by Now I've taken the time to understand, I don't think the change in behaviour is that big a deal... I'm happy to close this. |
I've noticed a change in behaviour with the following:
In
2.1.2
I see:but in
2.2.0
I get:I'm not confident what the docs mean by:
...but regardless the change surprised me and was caught by a test.
Is it expected?
The text was updated successfully, but these errors were encountered: