Skip to content

Commit

Permalink
Fixed compilation issues with clang not supporting 2 args for depreca…
Browse files Browse the repository at this point in the history
…ted attribute
  • Loading branch information
vit9696 committed Jan 25, 2018
1 parent 6c03bae commit 4d744f4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Changelog.md
Expand Up @@ -4,6 +4,8 @@ Lilu Changelog
#### v1.2.2
- Acknowledged macOS Install Data and com.apple.recovery.boot prelinkedkernel paths (thx Piker-Alpha)
- Fixed ignoring `kcsuffix=<suffix>` for kexts and less common names
- Added extra logging for backtrace macros to ensure that they are not skipped
- Fixed compilation issues with clang not supporting 2 args for deprecated attribute

#### v1.2.1
- Fixed a rare kernel panic when running Lilu with `-liludbg`
Expand Down
12 changes: 8 additions & 4 deletions Lilu/Library/corecrypto/cccmac.h
Expand Up @@ -175,7 +175,8 @@ int cccmac_one_shot_verify(const struct ccmode_cbc *cbc,
int cccmac_init(const struct ccmode_cbc *cbc,
cccmac_ctx_t ctx,
size_t key_nbytes, const void *key)
__attribute__((deprecated("see guidelines in corecrypto/cccmac.h for migration", "define 'CC_CHANGEFUNCTION_28544056_cccmac_init' and use new cccmac_init with parameter key_nbytes")));
__attribute__((deprecated("see guidelines in corecrypto/cccmac.h for migration"
/*, "define 'CC_CHANGEFUNCTION_28544056_cccmac_init' and use new cccmac_init with parameter key_nbytes"*/)));
// If you see this deprecate warning
// Define CC_CHANGEFUNCTION_28544056_cccmac_init and use "cccmac_init(...,...,16,...)"
// This will be removed with 28544056
Expand Down Expand Up @@ -263,7 +264,8 @@ int cccmac_final_verify(cccmac_ctx_t ctx,

CC_INLINE void cccmac_block_update(CC_UNUSED const struct ccmode_cbc *cbc, cccmac_ctx_t ctx,
size_t nblocks, const void *data)
__attribute__((deprecated("see guidelines in corecrypto/cccmac.h for migration", "cccmac_update")));
__attribute__((deprecated("see guidelines in corecrypto/cccmac.h for migration"
/*, "cccmac_update"*/)));

CC_INLINE void cccmac_block_update(CC_UNUSED const struct ccmode_cbc *cbc, cccmac_ctx_t ctx,
size_t nblocks, const void *data) {
Expand All @@ -276,7 +278,8 @@ CC_INLINE void cccmac_block_update(CC_UNUSED const struct ccmode_cbc *cbc, cccma
*/
CC_INLINE void cccmac_final(CC_UNUSED const struct ccmode_cbc *cbc, cccmac_ctx_t ctx,
size_t nbytes, const void *in, void *out)
__attribute__((deprecated("see guidelines in corecrypto/cccmac.h for migration", "cccmac_final_generate or cccmac_final_verify")));
__attribute__((deprecated("see guidelines in corecrypto/cccmac.h for migration"
/*, "cccmac_final_generate or cccmac_final_verify"*/)));

CC_INLINE void cccmac_final(CC_UNUSED const struct ccmode_cbc *cbc, cccmac_ctx_t ctx,
size_t nbytes, const void *in, void *out) {
Expand All @@ -291,7 +294,8 @@ CC_INLINE void cccmac_final(CC_UNUSED const struct ccmode_cbc *cbc, cccmac_ctx_t
CC_INLINE void cccmac(const struct ccmode_cbc *cbc,
const void *key,
size_t data_len, const void *data, void *mac)
__attribute__((deprecated("see guidelines in corecrypto/cccmac.h for migration", "cccmac_one_shot_generate or cccmac_one_shot_verify")));
__attribute__((deprecated("see guidelines in corecrypto/cccmac.h for migration"
/*, "cccmac_one_shot_generate or cccmac_one_shot_verify"*/)));

CC_INLINE void cccmac(const struct ccmode_cbc *cbc,
const void *key,
Expand Down

0 comments on commit 4d744f4

Please sign in to comment.