• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..16-Feb-2021-

.evergreen/H16-Feb-2021-367325

utils/H16-Feb-2021-13173

.gitignoreH A D16-Feb-202113 21

AUTHORSH A D16-Feb-2021820 2423

LICENSEH A D16-Feb-202110 KiB192155

README.mdH A D16-Feb-20212 KiB5135

bio.goH A D16-Feb-20216.6 KiB306244

build.goH A D16-Feb-2021972 252

build_static.goH A D16-Feb-2021997 252

cert.goH A D16-Feb-202110.6 KiB405326

cert_test.goH A D16-Feb-20213.2 KiB140121

ciphers.goH A D16-Feb-20218 KiB322254

ciphers_gcm.goH A D16-Feb-20214 KiB155111

ciphers_test.goH A D16-Feb-20219 KiB308259

conn.goH A D16-Feb-202117.8 KiB626492

ctx.goH A D16-Feb-202122.6 KiB772544

ctx_test.goH A D16-Feb-20211.4 KiB4931

dh.goH A D16-Feb-20212.2 KiB6933

dh_test.goH A D16-Feb-20211.2 KiB5230

dhparam.goH A D16-Feb-20211.7 KiB6538

digest.goH A D16-Feb-20211.4 KiB5225

engine.goH A D16-Feb-20211.2 KiB5129

features.goH A D16-Feb-2021702 235

fips.goH A D16-Feb-20211.4 KiB6729

fips_test.goH A D16-Feb-2021429 2820

hmac.goH A D16-Feb-20212.2 KiB9265

hmac_test.goH A D16-Feb-20212 KiB7547

hostname.cH A D16-Feb-202110.6 KiB374262

hostname.goH A D16-Feb-20213.9 KiB12765

http.goH A D16-Feb-20212.1 KiB6225

init.goH A D16-Feb-20212.3 KiB8329

init_posix.goH A D16-Feb-20211.6 KiB712

init_windows.goH A D16-Feb-20211.4 KiB602

key.goH A D16-Feb-20218.5 KiB317244

key_0_9.goH A D16-Feb-20211.6 KiB5930

key_1_0.goH A D16-Feb-20213.9 KiB13369

key_1_0_test.goH A D16-Feb-20213.7 KiB150118

key_test.goH A D16-Feb-20214.2 KiB177146

mapping.goH A D16-Feb-20211.2 KiB6335

net.goH A D16-Feb-20215 KiB181115

nid.goH A D16-Feb-20219.6 KiB207190

password.cH A D16-Feb-2021247 119

pem.goH A D16-Feb-2021934 3315

sha1.goH A D16-Feb-20212.2 KiB9770

sha1_test.goH A D16-Feb-20212.3 KiB11079

sha256.goH A D16-Feb-20212.2 KiB9064

sha256_test.goH A D16-Feb-20212.3 KiB10878

shim.cH A D16-Feb-202116.4 KiB747546

shim.hH A D16-Feb-20217.2 KiB182134

sni.cH A D16-Feb-2021859 248

sni_test.goH A D16-Feb-2021876 245

ssl.goH A D16-Feb-20215 KiB17194

ssl_test.goH A D16-Feb-202116.8 KiB657581

system_certs.cH A D16-Feb-20216.9 KiB214181

system_certs.goH A D16-Feb-2021653 3318

tickets.goH A D16-Feb-20215.8 KiB223139

version.goH A D16-Feb-2021873 285

version_test.goH A D16-Feb-2021725 3021

README.md

1# OpenSSL bindings for Go
2
3Please see http://godoc.org/github.com/spacemonkeygo/openssl for more info
4
5### License
6
7Copyright (C) 2017. See AUTHORS.
8
9Licensed under the Apache License, Version 2.0 (the "License");
10you may not use this file except in compliance with the License.
11You may obtain a copy of the License at
12
13  http://www.apache.org/licenses/LICENSE-2.0
14
15Unless required by applicable law or agreed to in writing, software
16distributed under the License is distributed on an "AS IS" BASIS,
17WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18See the License for the specific language governing permissions and
19limitations under the License.
20
21### Installing on a Unix-ish system with pkg-config
22
231.  (If necessary) install the openssl C library with a package manager
24    that provides an openssl.pc file OR install openssl manually and create
25    an openssl.pc file.
26
272.  Ensure that `pkg-config --cflags --libs openssl` finds your openssl
28    library.  If it doesn't, try setting `PKG_CONFIG_PATH` to the directory
29    containing your openssl.pc file.  E.g. for darwin: with MacPorts,
30    `PKG_CONFIG_PATH=/opt/local/lib/pkgconfig` or for Homebrew,
31    `PKG_CONFIG_PATH=/usr/local/Cellar/openssl/1.0.2l/lib/pkgconfig`
32
33### Installing on a Unix-ish system without pkg-config
34
351.  (If necessary) install the openssl C library in your customary way
36
372.  Set the `CGO_CPP_FLAGS`, `CGO_CFLAGS` and `CGO_LDFLAGS` as necessary to
38    provide `-I`, `-L` and other options to the compiler.  E.g. on darwin,
39    MongoDB's darwin build servers use the native libssl, but provide the
40    missing headers in a custom directory, so it the build hosts set
41    `CGO_CPPFLAGS=-I/opt/mongodbtoolchain/v2/include`
42
43### Installing on Windows
44
451. Install [mingw-w64](http://mingw-w64.sourceforge.net/) and add it to
46   your `PATH`
47
482. Install the C openssl into `C:\openssl`.  (Unfortunately, this is still
49   hard-coded.)  You should have directories like `C:\openssl\include` and
50   `C:\openssl\bin`.
51