Skip to content

Commit

Permalink
Merge pull request #62 from microsoft/dev/qmuntal/warn
Browse files Browse the repository at this point in the history
Silence -Wpointer-sign warnings
  • Loading branch information
qmuntal authored Feb 8, 2024
2 parents c559cb8 + 4afe598 commit ed177ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openssl/goopenssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ go_openssl_EVP_CIPHER_CTX_seal_wrapper(const GO_EVP_CIPHER_CTX_PTR ctx,
const unsigned char *in, int in_len,
const unsigned char *aad, int aad_len)
{
if (in_len == 0) in = "";
if (aad_len == 0) aad = "";
if (in_len == 0) in = (const unsigned char *)"";
if (aad_len == 0) aad = (const unsigned char *)"";

if (go_openssl_EVP_CipherInit_ex(ctx, NULL, NULL, NULL, nonce, GO_AES_ENCRYPT) != 1)
return 0;
Expand All @@ -122,8 +122,8 @@ go_openssl_EVP_CIPHER_CTX_open_wrapper(const GO_EVP_CIPHER_CTX_PTR ctx,
const unsigned char *aad, int aad_len,
const unsigned char *tag)
{
if (in_len == 0) in = "";
if (aad_len == 0) aad = "";
if (in_len == 0) in = (const unsigned char *)"";
if (aad_len == 0) aad = (const unsigned char *)"";

if (go_openssl_EVP_CipherInit_ex(ctx, NULL, NULL, NULL, nonce, GO_AES_DECRYPT) != 1)
return 0;
Expand Down

0 comments on commit ed177ef

Please # to comment.