| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/security/openssl_tpm_engine/files/ |
Upload File : |
--- src/e_tpm.h.orig 2017-12-18 15:45:34 UTC
+++ src/e_tpm.h
@@ -66,6 +66,8 @@ void ERR_TSS_error(int function, int reason, char *fil
#define TPM_F_TPM_FILL_RSA_OBJECT 116
#define TPM_F_TPM_ENGINE_GET_AUTH 117
#define TPM_F_TPM_CREATE_SRK_POLICY 118
+#define TPM_F_TPM_BIO_FROM_NVRAM 119
+#define TPM_F_TPM_QUOTE 120
/* Reason codes. */
#define TPM_R_ALREADY_LOADED 100
@@ -96,6 +98,7 @@ void ERR_TSS_error(int function, int reason, char *fil
#define TPM_R_ID_INVALID 125
#define TPM_R_UI_METHOD_FAILED 126
#define TPM_R_UNKNOWN_SECRET_MODE 127
+#define TPM_R_NVRAM_FAILED 128
/* structure pointed to by the RSA object's app_data pointer */
struct rsa_app_data
@@ -105,6 +108,25 @@ struct rsa_app_data
TSS_HENCDATA hEncData;
UINT32 encScheme;
UINT32 sigScheme;
+};
+
+/* Added by c.hol...@sirrix.com */
+struct quote_request
+{
+ RSA* rsa;
+ unsigned int PCRSel[256];
+ unsigned int PCRSelLength;
+ const unsigned char* nonce;
+ unsigned int nonceLen;
+ unsigned char* rgbData;
+ unsigned int ulValidationDataLength;
+ unsigned char* rgbValidationData;
+};
+
+struct nvram_request
+{
+ unsigned int index;
+ unsigned int length;
};
#define TPM_ENGINE_EX_DATA_UNINIT -1