-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creating HardwareManifest proto file
- Loading branch information
1 parent
4971aed
commit 89144f4
Showing
30 changed files
with
865 additions
and
1,631 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: .NET | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 6.0.x | ||
- name: Go to HardwareManifest directory | ||
run: cd dotnet/HardwareManifest | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet build | ||
- name: Test | ||
run: dotnet test | ||
- name: Pack | ||
run: dotnet pack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: .NET | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 6.0.x | ||
- name: Go to paccor_scripts directory | ||
run: cd dotnet/paccor_scripts | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet build | ||
- name: Test | ||
run: dotnet test | ||
- name: Pack | ||
run: dotnet pack | ||
- name: Publish | ||
run: | | ||
dotnet -r linux-x64 -c Release | ||
dotnet -r win-x64 -c Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 83 additions & 0 deletions
83
dotnet/HardwareManifestPlugin/HardwareManifestPlugin/Resources/HardwareManifest.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
syntax = "proto3"; | ||
|
||
import "PlatformCertificateIM.proto"; | ||
|
||
package HardwareManifestProto; | ||
|
||
message ManifestV3 { | ||
PlatformCertificateProto.PlatformIdentifierOtherName platformIdentifier = 1; | ||
PlatformCertificateProto.PlatformConfiguration platformConfiguration = 2; | ||
} | ||
|
||
message ManifestV2 { | ||
SanPlatformFields PLATFORM = 1; // Subject Alt Name Platform Fields | ||
repeated ComponentIdentifier COMPONENTS = 2; | ||
repeated Property PROPERTIES = 3; | ||
UriReference COMPONENTSURI = 4; | ||
UriReference PROPERTIESURI = 5; | ||
} | ||
|
||
message SanPlatformFields { | ||
string PLATFORMMANUFACTURERSTR = 1; | ||
string PLATFORMMODEL = 2; | ||
string PLATFORMVERSION = 3; | ||
string PLATFORMSERIAL = 4; | ||
string PLATFORMMANUFACTURERID = 5; | ||
} | ||
|
||
message ComponentIdentifier { | ||
ComponentClass COMPONENTCLASS = 1; | ||
string MANUFACTURER = 2; | ||
string MODEL = 3; | ||
string SERIAL = 4; | ||
string REVISION = 5; | ||
string MANUFACTURERID = 6; | ||
string FIELDREPLACEABLE = 7; // true or false | ||
repeated Address ADDRESSES = 8; | ||
string STATUS = 9; // ADDED, MODIFIED, or REMOVED | ||
CertificateIdentifier PLATFORMCERT = 10; | ||
UriReference COMPONENTPLATFORMCERTURI = 11; | ||
CertificateIdentifier CERTIFICATEIDENTIFIER = 12; | ||
} | ||
|
||
message Property { | ||
string PROPERTYNAME = 1; | ||
string PROPERTYVALUE = 2; | ||
string STATUS = 3; | ||
} | ||
|
||
message ComponentClass { | ||
string COMPONENTCLASSREGISTRY = 1; // OID | ||
string COMPONENTCLASSVALUE = 2; // Hex String | ||
} | ||
|
||
message Address { | ||
oneof ADDRESSES_oneof { | ||
string BLUETOOTHMAC = 1; | ||
string ETHERNETMAC = 2; | ||
string WLANMAC = 3; | ||
} | ||
} | ||
|
||
message HashedCertificateIdentifier { | ||
string HASHALG = 1; // OID | ||
string HASHVALUE = 2; // base64 encode the binary value | ||
} | ||
|
||
message GenericCertificateIdentifier { | ||
string ISSUER = 1; | ||
string SERIAL = 2; | ||
} | ||
|
||
message CertificateIdentifier { | ||
HashedCertificateIdentifier ATTRIBUTECERTIDENTIFIER = 1; | ||
GenericCertificateIdentifier GENERICCERTIDENTIFIER = 2; | ||
HashedCertificateIdentifier HASHEDCERTIDENTIFIER = 3; | ||
} | ||
|
||
message UriReference { | ||
string UNIFORMRESOURCEIDENTIFIER = 1; | ||
string HASHALG = 2; // OID | ||
string HASHVALUE = 3; // base64 encode the binary value | ||
} | ||
|
Oops, something went wrong.