mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-12-15 08:05:19 -05:00
Add measurement reader (#1381)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
5bad5f768b
commit
8c87bba755
12 changed files with 216 additions and 9 deletions
|
|
@ -25,7 +25,7 @@ package oid
|
|||
|
||||
import (
|
||||
"encoding/asn1"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// Getter returns an ASN.1 Object Identifier.
|
||||
|
|
@ -49,7 +49,7 @@ func FromString(oid string) (Getter, error) {
|
|||
case qemuVTPM:
|
||||
return QEMUVTPM{}, nil
|
||||
}
|
||||
return nil, errors.New("unknown OID")
|
||||
return nil, fmt.Errorf("unknown OID: %q", oid)
|
||||
}
|
||||
|
||||
// Dummy OID for testing.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue