Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "nopkcs11" build tag #224

Merged
merged 1 commit into from
May 14, 2019
Merged

Add a "nopkcs11" build tag #224

merged 1 commit into from
May 14, 2019

Conversation

mcpherrinm
Copy link
Contributor

@mcpherrinm mcpherrinm commented May 13, 2019

This allows opting out of PKCS11 (to avoid needing libltdl), but with CGO still
enabled so certstore is usable

It's a negative so that PKCS11 is built by default. Maybe we don't need PKCS11 by default, and can make it a build time option like certstore?

~ CGO_ENABLED=1 go build -tags "nopkcs11 certstore"
~ otool -L ./ghostunnel
./ghostunnel:
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1570.15.0)
/System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 58286.251.4)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)

This allows opting out of PKCS11 (to avoid needing libltdl), but with CGO still
enabled so certstore is usable

~ CGO_ENABLED=1 go build -tags "nopkcs11 certstore"
~ otool -L ./ghostunnel
./ghostunnel:
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1570.15.0)
	/System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 58286.251.4)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)
@mcpherrinm mcpherrinm requested a review from csstaub May 13, 2019 23:03
@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.94% when pulling 906c997 on mmc/add-nopkcs11-build-tag into f2ffa57 on master.

@mcpherrinm mcpherrinm merged commit 6ec9428 into master May 14, 2019
@csstaub csstaub deleted the mmc/add-nopkcs11-build-tag branch May 15, 2019 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants