spacemonkeygo / openssl

OpenSSL bindings for Go
http://godoc.org/github.com/spacemonkeygo/openssl
Apache License 2.0
472 stars 237 forks source link

go get under Mac OSX fails #14

Closed piotrkowalczuk closed 9 years ago

piotrkowalczuk commented 9 years ago

I have got a problem during command execution:

go get -u github.com/spacemonkeygo/openssl

and and errors i have got looks like that:

37: error: use of undeclared identifier 'X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX'
38: error: use of undeclared identifier 'X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE'
38: error: use of undeclared identifier 'X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE'
38: error: use of undeclared identifier 'X509_V_ERR_EXCLUDED_VIOLATION'
38: error: use of undeclared identifier 'X509_V_ERR_PERMITTED_VIOLATION'
38: error: use of undeclared identifier 'X509_V_ERR_DIFFERENT_CRL_SCOPE'
38: error: use of undeclared identifier 'X509_V_ERR_UNSUPPORTED_NAME_SYNTAX'
38: error: use of undeclared identifier 'X509_V_ERR_CRL_PATH_VALIDATION_ERROR'
38: error: use of undeclared identifier 'X509_V_ERR_SUBTREE_MINMAX'

OpenSSL version: OpenSSL 0.9.8za 5 Jun 2014

OS Details:

Software:

    System Software Overview:

      System Version: OS X 10.10 (14A386b)
      Kernel Version: Darwin 14.0.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: XXX
      User Name: XXX
      Secure Virtual Memory: Enabled
      Time since boot: 19:05
zeebo commented 9 years ago

Oops, looks like f13a5e0288b7d26 introduced this.

As a temporary workaround, if you use a more recent openssl like from homebrew or something, it will compile.

I'm working on a fix to exclude the problem definitions on os x unless specifically opted in by a build tag.

Thanks :+1: