Skip to content

Commit

Permalink
[core] Fixed warnings and removed redundant includes (#2658).
Browse files Browse the repository at this point in the history
  • Loading branch information
oviano authored Feb 10, 2023
1 parent c83c31b commit 22e97f8
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 12 deletions.
2 changes: 0 additions & 2 deletions haicrypt/cryspr-mbedtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ written by
GnuTLS/Nettle CRYSPR/4SRT (CRYypto Service PRovider for SRT)
*****************************************************************************/

#include "platform_sys.h"

#include "hcrypt.h"

#include <string.h>
Expand Down
4 changes: 1 addition & 3 deletions haicrypt/cryspr.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ written by
CRYSPR/4SRT Initial implementation.
*****************************************************************************/

#include "platform_sys.h"

#include "hcrypt.h"
#include "cryspr.h"

Expand Down Expand Up @@ -561,7 +559,7 @@ static int crysprFallback_MsEncrypt(
memcpy(in_data[0].payload, &out_msg[pfx_len], out_len);
if (ctx->mode == HCRYPT_CTX_MODE_AESGCM) {
// Encoding produced more payload (auth tag).
return out_len;
return (int)out_len;
}
#endif /* CRYSPR_HAS_AESCTR */
} else {
Expand Down
2 changes: 1 addition & 1 deletion haicrypt/haicrypt.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ int HaiCrypt_Rx_Data(HaiCrypt_Handle hhc, unsigned char *pfx, unsigned char *da

/// @brief Check if the crypto service provider supports AES GCM.
/// @return returns 1 if AES GCM is supported, 0 otherwise.
int HaiCrypt_IsAESGCM_Supported();
int HaiCrypt_IsAESGCM_Supported(void);

/* Status values */

Expand Down
2 changes: 0 additions & 2 deletions haicrypt/hcrypt_ctx_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ written by
Adaptation for SRT.
*****************************************************************************/

#include "platform_sys.h"

#include <string.h> /* memcpy */
#include "hcrypt.h"

Expand Down
2 changes: 0 additions & 2 deletions haicrypt/hcrypt_ctx_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ written by
Adaptation for SRT.
*****************************************************************************/

#include "platform_sys.h"

#include <string.h> /* memcpy */
#ifdef _WIN32
#include <winsock2.h>
Expand Down
2 changes: 0 additions & 2 deletions haicrypt/hcrypt_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ written by
Adaptation for SRT.
*****************************************************************************/

#include "platform_sys.h"

#include <stdlib.h> /* NULL */
#include <string.h> /* memcmp */
#include "hcrypt.h"
Expand Down

0 comments on commit 22e97f8

Please sign in to comment.