Add Nix flake for mciasctl and mciasgrpcctl
Vendor dependencies and expose control program binaries via nix build. Uses nixpkgs-unstable for Go 1.26 support. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
30
vendor/github.com/go-webauthn/webauthn/protocol/init.go
generated
vendored
Normal file
30
vendor/github.com/go-webauthn/webauthn/protocol/init.go
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
package protocol
|
||||
|
||||
import (
|
||||
"crypto/x509"
|
||||
)
|
||||
|
||||
func init() {
|
||||
initAndroidKeyHardwareRoots()
|
||||
initAppleHardwareRoots()
|
||||
}
|
||||
|
||||
func initAndroidKeyHardwareRoots() {
|
||||
if attAndroidKeyHardwareRootsCertPool == nil {
|
||||
attAndroidKeyHardwareRootsCertPool = x509.NewCertPool()
|
||||
}
|
||||
|
||||
attAndroidKeyHardwareRootsCertPool.AddCert(mustParseX509CertificatePEM([]byte(certificateAndroidKeyRoot1)))
|
||||
attAndroidKeyHardwareRootsCertPool.AddCert(mustParseX509CertificatePEM([]byte(certificateAndroidKeyRoot2)))
|
||||
attAndroidKeyHardwareRootsCertPool.AddCert(mustParseX509CertificatePEM([]byte(certificateAndroidKeyRoot3)))
|
||||
attAndroidKeyHardwareRootsCertPool.AddCert(mustParseX509CertificatePEM([]byte(certificateAndroidKeyRoot4)))
|
||||
attAndroidKeyHardwareRootsCertPool.AddCert(mustParseX509CertificatePEM([]byte(certificateAndroidKeyRoot5)))
|
||||
}
|
||||
|
||||
func initAppleHardwareRoots() {
|
||||
if attAppleHardwareRootsCertPool == nil {
|
||||
attAppleHardwareRootsCertPool = x509.NewCertPool()
|
||||
}
|
||||
|
||||
attAppleHardwareRootsCertPool.AddCert(mustParseX509CertificatePEM([]byte(certificateAppleRoot1)))
|
||||
}
|
||||
Reference in New Issue
Block a user