mirror of https://github.com/wolfSSL/wolfBoot.git
Fix return code to avoid TLS/SSL header use. Fixed in https://github.com/wolfSSL/wolftpm/pull/308
parent
1baf4d7620
commit
b1ff7b0d95
|
@ -29,7 +29,6 @@
|
||||||
#include <wolfssl/wolfcrypt/ecc.h>
|
#include <wolfssl/wolfcrypt/ecc.h>
|
||||||
#include <wolfssl/wolfcrypt/hash.h>
|
#include <wolfssl/wolfcrypt/hash.h>
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
#include <wolfssl/error-ssl.h>
|
|
||||||
#include "tpm.h"
|
#include "tpm.h"
|
||||||
|
|
||||||
/* Default PCR (test) */
|
/* Default PCR (test) */
|
||||||
|
@ -83,7 +82,7 @@ static int loadFile(const char* fname, byte** buf, size_t* bufLen)
|
||||||
ret = MEMORY_E;
|
ret = MEMORY_E;
|
||||||
}
|
}
|
||||||
else if (*buf != NULL && fileSz > (ssize_t)*bufLen) {
|
else if (*buf != NULL && fileSz > (ssize_t)*bufLen) {
|
||||||
ret = INPUT_SIZE_E;
|
ret = BUFFER_E;
|
||||||
}
|
}
|
||||||
*bufLen = (size_t)fileSz;
|
*bufLen = (size_t)fileSz;
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
|
|
Loading…
Reference in New Issue