Fix return code to avoid TLS/SSL header use. Fixed in https://github.com/wolfSSL/wolftpm/pull/308

pull/398/head
David Garske 2023-12-27 15:06:26 -08:00
parent 1baf4d7620
commit b1ff7b0d95
1 changed files with 1 additions and 2 deletions

View File

@ -29,7 +29,6 @@
#include <wolfssl/wolfcrypt/ecc.h>
#include <wolfssl/wolfcrypt/hash.h>
#include <wolftpm/tpm2_wrap.h>
#include <wolfssl/error-ssl.h>
#include "tpm.h"
/* Default PCR (test) */
@ -83,7 +82,7 @@ static int loadFile(const char* fname, byte** buf, size_t* bufLen)
ret = MEMORY_E;
}
else if (*buf != NULL && fileSz > (ssize_t)*bufLen) {
ret = INPUT_SIZE_E;
ret = BUFFER_E;
}
*bufLen = (size_t)fileSz;
if (ret == 0) {