mirror of
https://github.com/outbackdingo/labca.git
synced 2026-01-27 18:19:33 +00:00
Workaround for building standalone GUI for arm64
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
//go:build amd64
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
34
gui/hsm_arm64.go
Normal file
34
gui/hsm_arm64.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user