Skip to content

Commit

Permalink
FAPI: Fix compiler warnings
Browse files Browse the repository at this point in the history
On some platforms, compiler warnings are generated due to
not include <strings.h> (note plural) when using index(3) as well as
not utilizing the return value to BIO_flush().

Signed-off-by: Jason King <jason.brian.king@gmail.com>
  • Loading branch information
jasonbking authored and AndreasFuchsTPM committed Apr 10, 2024
1 parent 386bb30 commit 60a3f44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/tss2-fapi/fapi_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -2090,7 +2090,7 @@ ifapi_base64encode(uint8_t *buffer, size_t buffer_size, char** b64_data) {
cleanup);
}

BIO_flush(bio);
(void) BIO_flush(bio);
BIO_get_mem_ptr(bio, &b64_mem);
goto_if_null2(b64_mem, "Out of memory.", r, TSS2_FAPI_RC_MEMORY, cleanup);

Expand Down
1 change: 1 addition & 0 deletions src/tss2-fapi/ifapi_profiles.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>

#include "tss2_common.h"

Expand Down

0 comments on commit 60a3f44

Please sign in to comment.