mirror of
https://github.com/libp2p/go-openssl.git
synced 2026-08-18 14:43:28 +08:00
remove useless build tags
This commit is contained in:
@@ -18,6 +18,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
||||||
|
### Using on macOS
|
||||||
|
1. Install [homebrew](http://brew.sh/)
|
||||||
|
2. `$ brew install openssl` or `$ brew install openssl@1.1`
|
||||||
|
|
||||||
### Using on Windows
|
### Using on Windows
|
||||||
1. Install [mingw-w64](http://mingw-w64.sourceforge.net/)
|
1. Install [mingw-w64](http://mingw-w64.sourceforge.net/)
|
||||||
2. Install [pkg-config-lite](http://sourceforge.net/projects/pkgconfiglite)
|
2. Install [pkg-config-lite](http://sourceforge.net/projects/pkgconfiglite)
|
||||||
|
|||||||
2
bio.go
2
bio.go
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
// #include "shim.h"
|
// #include "shim.h"
|
||||||
|
|||||||
2
build.go
2
build.go
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
// #cgo pkg-config: libssl libcrypto
|
// #cgo pkg-config: libssl libcrypto
|
||||||
|
|||||||
2
cert.go
2
cert.go
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
// #include "shim.h"
|
// #include "shim.h"
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
// #include "shim.h"
|
// #include "shim.h"
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo,!darwin
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
// #include <openssl/evp.h>
|
// #include <openssl/evp.h>
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build !darwin
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
2
conn.go
2
conn.go
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
// #include "shim.h"
|
// #include "shim.h"
|
||||||
|
|||||||
2
ctx.go
2
ctx.go
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
// #include "shim.h"
|
// #include "shim.h"
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
// #include "shim.h"
|
// #include "shim.h"
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
// #include "shim.h"
|
// #include "shim.h"
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
2
hmac.go
2
hmac.go
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
// #include "shim.h"
|
// #include "shim.h"
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
2
init.go
2
init.go
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Package openssl is a light wrapper around OpenSSL for Go.
|
Package openssl is a light wrapper around OpenSSL for Go.
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build linux darwin cgo
|
// +build linux darwin
|
||||||
// +build !windows
|
// +build !windows
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build windows cgo
|
// +build windows
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
|
|||||||
2
key.go
2
key.go
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
// #include "shim.h"
|
// #include "shim.h"
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@@ -1,44 +0,0 @@
|
|||||||
// Copyright (C) 2014 Space Monkey, Inc.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
// +build !darwin brew
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
|
||||||
|
|
||||||
// #include <openssl/ssl.h>
|
|
||||||
import "C"
|
|
||||||
|
|
||||||
// these constants do not exist in the openssl version packaged with os x. when
|
|
||||||
// darwin decides to update the base openssl version, we can move these back
|
|
||||||
// to the appropriate spots in the source. as a workaround, if you need access
|
|
||||||
// to these constants on darwin, use homebrew or whatever to install a more
|
|
||||||
// recent version of os x, and build the package with the '-tags brew' flag
|
|
||||||
|
|
||||||
const (
|
|
||||||
UnsupportedConstraintSyntax VerifyResult = C.X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX
|
|
||||||
UnsupportedConstraintType VerifyResult = C.X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE
|
|
||||||
UnsupportedExtensionFeature VerifyResult = C.X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE
|
|
||||||
ExcludedViolation VerifyResult = C.X509_V_ERR_EXCLUDED_VIOLATION
|
|
||||||
SubtreeMinmax VerifyResult = C.X509_V_ERR_SUBTREE_MINMAX
|
|
||||||
UnsupportedNameSyntax VerifyResult = C.X509_V_ERR_UNSUPPORTED_NAME_SYNTAX
|
|
||||||
DifferentCrlScope VerifyResult = C.X509_V_ERR_DIFFERENT_CRL_SCOPE
|
|
||||||
PermittedViolation VerifyResult = C.X509_V_ERR_PERMITTED_VIOLATION
|
|
||||||
CrlPathValidationError VerifyResult = C.X509_V_ERR_CRL_PATH_VALIDATION_ERROR
|
|
||||||
)
|
|
||||||
|
|
||||||
const (
|
|
||||||
NoTLSv1_1 Options = C.SSL_OP_NO_TLSv1_1
|
|
||||||
NoTLSv1_2 Options = C.SSL_OP_NO_TLSv1_2
|
|
||||||
)
|
|
||||||
2
sha1.go
2
sha1.go
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
// #include "shim.h"
|
// #include "shim.h"
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
// #include "shim.h"
|
// #include "shim.h"
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
2
ssl.go
2
ssl.go
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
// #include "shim.h"
|
// #include "shim.h"
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package openssl
|
package openssl
|
||||||
|
|
||||||
// #include "shim.h"
|
// #include "shim.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user