Open Radisovik opened 4 years ago
https://github.com/spacemonkeygo/openssl/pull/160
How about this ?
Tests work on macos with openssl & pkgconfig from homebrew with exception of TestGenerateEd25519 where Ed25519 is marshalled to PEM.
d.fedorova@d-fedorova openssl % PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@3.1/lib/pkgconfig" go test ./...
--- FAIL: TestGenerateEd25519 (0.00s)
key_test.go:192: failed dumping private key
--- FAIL: TestMarshalEd25519 (0.00s)
key_test.go:436: failed dumping private key
FAIL
FAIL github.com/spacemonkeygo/openssl 3.217s
? github.com/spacemonkeygo/openssl/utils [no test files]
FAIL
Another pull request says it can't be done and deletes this check from key_test.go
Is it intentional though? build.go has these two hardcoded paths for darwin:
// #cgo darwin CFLAGS: -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/openssl/include // #cgo darwin LDFLAGS: -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/openssl/lib -lssl -lcrypto
Shouldn't it instead use pkg-config like windows and linux?
// #cgo linux darwin windows pkg-config: libssl libcrypto