mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-18 20:47:58 +00:00
[#7] Support Building (Not Packaging) on Ubuntu 18.04
This commit is contained in:
parent
3fec5ffc1e
commit
9731a78fcb
22
HIRS_ProvisionerTPM2/docs/developer-dependencies-debian.md
Normal file
22
HIRS_ProvisionerTPM2/docs/developer-dependencies-debian.md
Normal file
@ -0,0 +1,22 @@
|
||||
Developer Dependencies
|
||||
======================
|
||||
|
||||
These are the dependencies currently used by the TPM2 Provisioner project that must be supplied by the development environment (in this case Debian-based) in order to properly build and package the project.
|
||||
|
||||
Please look up their respective names in the appropriate repositories.
|
||||
|
||||
If no available repository for the development environment contains the dependencies at an acceptable version level, it is expected that the packages be retrieved and built from their respective source repositories.
|
||||
|
||||
| Dependency | Version used | Minimum required | Repository | Project repository |
|
||||
| ----------------- | ------------ | ------------------ | --------------------- | -------------------------------------- |
|
||||
| cppcheck | 1.82 | 1.72 | Ubuntu 18.04 base | http://cppcheck.sourceforge.net/ |
|
||||
| doxygen | 1.8.13 | 1.8.0 (estimated) | Ubuntu 18.04 base | https://github.com/doxygen/doxygen |
|
||||
| graphviz | 2.40.1 | 2.28.0 (estimated) | Ubuntu 18.04 base | https://gitlab.com/graphviz/graphviz |
|
||||
| liblog4cplus-dev | 1.1.2 | 1.1.2 | Ubuntu 18.04 base | https://github.com/log4cplus/log4cplus |
|
||||
| libssl-dev | 1.1.0g | 1.0.2g (estimated) | Ubuntu 18.04 base | https://github.com/openssl/openssl |
|
||||
| protobuf-compiler | 3.0.0 | 2.4.1 (estimated) | Ubuntu 18.04 base | https://github.com/google/protobuf |
|
||||
| libprotobuf-dev | 3.0.0 | 2.4.1 (estimated) | Ubuntu 18.04 base | https://github.com/google/protobuf |
|
||||
| libre2-dev | 20180201 | 20160201 | Ubuntu 18.04 base | https://github.com/google/re2 |
|
||||
| libsapi-dev | 1.0.0 | 1.0.0 | Ubuntu 18.04 base | https://github.com/intel/tpm2-tss |
|
||||
| cmake | 3.10.2 | 2.6.0 (estimated) | Ubuntu 18.04 base | https://cmake.org/ |
|
||||
| git | 2.17.1 | 1.6.0 (estimated) | Ubuntu 18.04 base | https://github.com/git/git |
|
@ -411,7 +411,9 @@ string CommandTpm2::activateIdentity() {
|
||||
// Erase unnecessary zero padding due
|
||||
s.erase(2 + numBytesInCred, 134 - 2 - numBytesInCred);
|
||||
// Prepend header: MAGIC_NUMBER (0xBADCC0DE) + Version (0x00000001)
|
||||
s.insert(s.begin(), {0xBA, 0xDC, 0xC0, 0xDE, 0x00, 0x00, 0x00, 0x01});
|
||||
s.insert(s.begin(), {static_cast<char>(0xBA), static_cast<char>(0xDC),
|
||||
static_cast<char>(0xC0), static_cast<char>(0xDE),
|
||||
0x00, 0x00, 0x00, 0x01});
|
||||
writeBinaryFile(s, kDefaultIdentityClaimResponseFilename);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user