Workaround for building standalone GUI for arm64

This commit is contained in:
Arjan H
2025-02-02 19:56:37 +01:00
parent 0d985d6b3f
commit dc33d983ff
2 changed files with 36 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
//go:build amd64
package main
import (

34
gui/hsm_arm64.go Normal file
View File

@@ -0,0 +1,34 @@
//go:build arm64
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
}