add build tag files for pkcs11 dlopen lib

Signed-off-by: Jessica Frazelle <acidburn@docker.com>
Signed-off-by: David Lawrence <david.lawrence@docker.com>

Signed-off-by: Jessica Frazelle <acidburn@docker.com> (github: endophage)
This commit is contained in:
Jessica Frazelle 2015-10-30 20:15:31 -07:00 committed by David Lawrence
parent af1bf0c1d5
commit 913c5ef033
3 changed files with 24 additions and 1 deletions

View File

@ -22,7 +22,6 @@ import (
)
const (
pkcs11Lib = "/usr/local/lib/libykcs11.so"
USER_PIN = "123456"
SO_USER_PIN = "010203040506070801020304050607080102030405060708"
)

View File

@ -0,0 +1,12 @@
// +build pkcs11,darwin
package api
var (
pkcs11Lib = "/usr/local/lib/libykcs11.dylib"
)
func init() {
// TODO(diogomonica): all the crap for darwin to configure
// the variable pkcs11 to find the right one in the right dir
}

View File

@ -0,0 +1,12 @@
// +build pkcs11,linux
package api
var (
pkcs11Lib = "/usr/local/lib/libykcs11.so"
)
func init() {
// TODO(diogomonica): all the crap for linux to configure
// the variable pkcs11 to find the right one in the right dir
}