OpenSSL bindings for Go
Go to file
2022-08-18 11:30:02 +03:00
.github Fix build with OpenSSL 3.0 (#25) 2022-08-18 11:29:19 +03:00
utils Address staticcheck issues 2021-07-19 16:53:28 +01:00
.gitignore openssl 1.1.x support 2017-06-05 18:07:03 -06:00
alloc.go fix: unsafe pointer passing 2021-08-27 10:46:42 -07:00
AUTHORS Ed25519 key support (#103) 2018-09-13 16:07:17 -06:00
bio.go Address staticcheck issues 2021-07-19 16:53:28 +01:00
build_static.go run gofmt -s 2021-12-10 11:50:47 +00:00
build.go run gofmt -s 2021-12-10 11:50:47 +00:00
cert_test.go add support for get/set x509 version 2018-09-05 07:34:06 -06:00
cert.go Address staticcheck issues 2021-07-19 16:53:28 +01:00
ciphers_gcm.go Address staticcheck issues 2021-07-19 16:53:28 +01:00
ciphers_test.go Address staticcheck issues 2021-07-19 16:53:28 +01:00
ciphers.go Address staticcheck issues 2021-07-19 16:53:28 +01:00
conn.go fix: unsafe pointer passing 2021-08-27 10:46:42 -07:00
ctx_test.go add AUTHORS and unify copyright info 2017-06-05 18:07:03 -06:00
ctx.go chore: go fmt 2022-06-06 15:38:07 +02:00
dh_test.go Address staticcheck issues 2021-07-19 16:53:28 +01:00
dh.go change error checking style to match existing code. 2018-01-05 16:06:15 -07:00
dhparam.go add AUTHORS and unify copyright info 2017-06-05 18:07:03 -06:00
digest.go add AUTHORS and unify copyright info 2017-06-05 18:07:03 -06:00
engine.go add AUTHORS and unify copyright info 2017-06-05 18:07:03 -06:00
extension.c - add custom extension support 2020-05-23 17:24:57 +05:30
fips.go Fix build with OpenSSL 3.0 (#25) 2022-08-18 11:29:19 +03:00
go.mod bump go.mod to Go 1.17 and run go fix 2022-06-01 08:57:19 +00:00
go.sum fix: unsafe pointer passing 2021-08-27 10:46:42 -07:00
hmac_test.go add AUTHORS and unify copyright info 2017-06-05 18:07:03 -06:00
hmac.go Address staticcheck issues 2021-07-19 16:53:28 +01:00
hostname.c add AUTHORS and unify copyright info 2017-06-05 18:07:03 -06:00
hostname.go Fix build with OpenSSL 3.0 (#25) 2022-08-18 11:29:19 +03:00
http.go add AUTHORS and unify copyright info 2017-06-05 18:07:03 -06:00
init_posix.go run gofmt -s 2021-12-10 11:50:47 +00:00
init_windows.go run gofmt -s 2021-12-10 11:50:47 +00:00
init.go Address staticcheck issues 2021-07-19 16:53:28 +01:00
key_test.go test: don't try to marshal ed25519 to PEM 2021-08-27 08:39:08 -07:00
key.go Address staticcheck issues 2021-07-19 16:53:28 +01:00
LICENSE add license 2014-05-09 15:38:13 -06:00
mapping.go add AUTHORS and unify copyright info 2017-06-05 18:07:03 -06:00
md4_test.go Fix build with OpenSSL 3.0 (#25) 2022-08-18 11:29:19 +03:00
md4.go Fix build with OpenSSL 3.0 (#25) 2022-08-18 11:29:19 +03:00
md5_test.go add m4 and m5 wrappers (#104) 2018-09-13 16:38:26 -06:00
md5.go Address staticcheck issues 2021-07-19 16:53:28 +01:00
net.go chore: go fmt 2022-06-06 15:38:07 +02:00
nid.go Ed25519 key support (#103) 2018-09-13 16:07:17 -06:00
object.go - add custom extension support 2020-05-23 17:24:57 +05:30
pem.go Address staticcheck issues 2021-07-19 16:53:28 +01:00
README.md feat: add Size function to PublicKey 2019-10-21 15:24:42 -07:00
sha1_test.go Make test confom to new requirement enforced in go 1.10 https://tip.golang.org/doc/go1.10#test. With out this change tests will always fails with go 1.10+. 2018-01-17 09:59:19 -07:00
sha1.go Address staticcheck issues 2021-07-19 16:53:28 +01:00
sha256_test.go Make test confom to new requirement enforced in go 1.10 https://tip.golang.org/doc/go1.10#test. With out this change tests will always fails with go 1.10+. 2018-01-17 09:59:19 -07:00
sha256.go Address staticcheck issues 2021-07-19 16:53:28 +01:00
shim.c Add Ctx.SetMinProtoVersion and Ctx.SetMaxProtoVersion wrappers 2022-04-15 12:58:08 +03:00
shim.h Add Ctx.SetMinProtoVersion and Ctx.SetMaxProtoVersion wrappers 2022-04-15 12:58:08 +03:00
sni.c add AUTHORS and unify copyright info 2017-06-05 18:07:03 -06:00
ssl_test.go Merge pull request #15 from jbouwman/update-cert-md 2021-08-27 17:33:36 +01:00
ssl.go fix: unsafe pointer passing 2021-08-27 10:46:42 -07:00
tickets.go fix: unsafe pointer passing 2021-08-27 10:46:42 -07:00
version.json release v0.1.0 2022-08-18 11:30:02 +03:00

OpenSSL bindings for Go

Forked from https://github.com/spacemonkeygo/openssl (unmaintained) to add:

  1. FreeBSD support.
  2. Key equality checking.
  3. A function to get the size of signatures produced by a key.

Please see http://godoc.org/github.com/libp2p/go-openssl for more info


License

Copyright (C) 2017. See AUTHORS.

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.

Using on macOS

  1. Install homebrew
  2. $ brew install openssl or $ brew install openssl@1.1

Using on Windows

  1. Install mingw-w64
  2. Install pkg-config-lite
  3. Build (or install precompiled) openssl for mingw32-w64
  4. Set PKG_CONFIG_PATH to the directory containing openssl.pc (i.e. c:\mingw64\mingw64\lib\pkgconfig)