mirror of
https://github.com/google/go-attestation.git
synced 2025-02-21 09:11:46 +00:00
Fix broken build on windows. (#36)
* Attempt to read the EK from NVRAM if the system cert store cannot provide it. * Fix broken build on windows.
This commit is contained in:
parent
3dc8a7d841
commit
7f17046a60
@ -395,7 +395,7 @@ func (h *winPCP) EKCerts() ([]*x509.Certificate, error) {
|
||||
// Reading the certificate from the system store has failed.
|
||||
// Lets try reading the raw bytes directly from NVRAM intead.
|
||||
if len(c) == 0 {
|
||||
buf, err = getNCryptBufferProperty(h.hProv, "PCP_EKNVCERT")
|
||||
buf, err := getNCryptBufferProperty(h.hProv, "PCP_EKNVCERT")
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("Failed to read PCP_EKNVCERT: %v", err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user