Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Conflict with go crypto/x509 #6

Closed
joosep-wm opened this issue Aug 22, 2018 · 4 comments
Closed

Conflict with go crypto/x509 #6

joosep-wm opened this issue Aug 22, 2018 · 4 comments

Comments

@joosep-wm
Copy link

Hi

I'm trying out your library and stumbled upon a problem:

../../../../mastahyeti/cms/verify.go:151:86: unknown field 'Detail' in struct literal of type x509.CertificateInvalidError

Seems if you'd just remove the "Detail", it would work.

@btoews
Copy link
Contributor

btoews commented Aug 22, 2018

Thanks for opening this. What version of go are you running (go version)? There are a number of things in this library that don't work with versions prior to 1.10.0.

@joosep-wm
Copy link
Author

$ go version
go version go1.10.2 darwin/amd64

@btoews
Copy link
Contributor

btoews commented Aug 23, 2018

Hmm. Are you sure about that version number? Here's the definition of that struct from 1.10.2:

// CertificateInvalidError results when an odd error occurs. Users of this
// library probably want to handle all these errors uniformly.
type CertificateInvalidError struct {
	Cert   *Certificate
	Reason InvalidReason
	Detail string
}

@joosep-wm
Copy link
Author

You are absolutely right.
My IDE used the old Go version. Somehow I thought it takes the Go version from my shell environment.

When using new Go version, it works nicely.

@btoews btoews closed this as completed Aug 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants