Skip to content

Commit b1ff7b0

Browse files
committed
Fix return code to avoid TLS/SSL header use. Fixed in wolfSSL/wolfTPM#308
1 parent 1baf4d7 commit b1ff7b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/tpm/policy_sign.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#include <wolfssl/wolfcrypt/ecc.h>
3030
#include <wolfssl/wolfcrypt/hash.h>
3131
#include <wolftpm/tpm2_wrap.h>
32-
#include <wolfssl/error-ssl.h>
3332
#include "tpm.h"
3433

3534
/* Default PCR (test) */
@@ -83,7 +82,7 @@ static int loadFile(const char* fname, byte** buf, size_t* bufLen)
8382
ret = MEMORY_E;
8483
}
8584
else if (*buf != NULL && fileSz > (ssize_t)*bufLen) {
86-
ret = INPUT_SIZE_E;
85+
ret = BUFFER_E;
8786
}
8887
*bufLen = (size_t)fileSz;
8988
if (ret == 0) {

0 commit comments

Comments
 (0)