2021-09-07 18:30:35 +00:00
|
|
|
//go:build !cgo
|
2020-05-08 01:35:10 +00:00
|
|
|
// +build !cgo
|
|
|
|
|
|
|
|
package yubikey
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2020-05-12 01:47:22 +00:00
|
|
|
"os"
|
|
|
|
"path/filepath"
|
2020-05-08 01:35:10 +00:00
|
|
|
|
|
|
|
"github.com/pkg/errors"
|
|
|
|
"github.com/smallstep/certificates/kms/apiv1"
|
|
|
|
)
|
|
|
|
|
2020-05-12 01:47:22 +00:00
|
|
|
func init() {
|
|
|
|
apiv1.Register(apiv1.YubiKey, func(ctx context.Context, opts apiv1.Options) (apiv1.KeyManager, error) {
|
|
|
|
name := filepath.Base(os.Args[0])
|
|
|
|
return nil, errors.Errorf("unsupported kms type 'yubikey': %s is compiled without cgo support", name)
|
|
|
|
})
|
2020-05-08 01:35:10 +00:00
|
|
|
}
|