Skip to content

Commit

Permalink
Fix return code to avoid TLS/SSL header use. Fixed in wolfSSL/wolfTPM…
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed Dec 27, 2023
1 parent 1baf4d7 commit b1ff7b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/tpm/policy_sign.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit b1ff7b0

Please sign in to comment.