Skip to content

Commit

Permalink
Merge pull request #391 from Coeur/MZ_ZIP_NO_SIGNING-for-Apple
Browse files Browse the repository at this point in the history
Allowing compilation on iOS/tvOS when MZ_ZIP_NO_SIGNING is defined
  • Loading branch information
nmoinvaz committed May 2, 2019
2 parents 4072f3e + 305ffa1 commit 9482920
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mz_crypt_apple.c
Expand Up @@ -404,6 +404,8 @@ void mz_crypt_hmac_delete(void **handle)

/***************************************************************************/

#if !defined(MZ_ZIP_NO_SIGNING)

int32_t mz_crypt_sign(uint8_t *message, int32_t message_size, uint8_t *cert_data, int32_t cert_data_size,
const char *cert_pwd, uint8_t **signature, int32_t *signature_size)
{
Expand Down Expand Up @@ -525,3 +527,5 @@ int32_t mz_crypt_sign_verify(uint8_t *message, int32_t message_size, uint8_t *si

return err;
}

#endif

0 comments on commit 9482920

Please sign in to comment.