Files
labca/gui/hsm_standalone.go
Arjan H a95028c45d Exclude hsm.go from all standalone builds (#154)
For standalone builds the HSM code is not used, so we can exclude it.
The resulting binary now no longer requires libc of a certain version to
be present.
2025-02-11 19:11:21 +01:00

35 lines
588 B
Go

//go:build standalone
package main
import "crypto"
const CERT_FILES_PATH = "/opt/boulder/labca/certs/webpki/"
type HSMConfig struct {
Module string
UserPIN string
SOPIN string
SlotID string
Label string
}
func (cfg *HSMConfig) Initialize(ca_type string, seqnr string) {
}
func (cfg *HSMConfig) CreateSlot() error {
return nil
}
func (cfg *HSMConfig) GetPrivateKey() ([]byte, error) {
return nil, nil
}
func (cfg *HSMConfig) ClearAll() error {
return nil
}
func (cfg *HSMConfig) ImportKeyCert(keyFile, certFile string) (crypto.PublicKey, error) {
return nil, nil
}