awslabs / aws-c-cal

Aws Crypto Abstraction Layer: Cross-Platform, C99 wrapper for cryptography primitives.
Apache License 2.0
33 stars 36 forks source link

fix inccorect export of aws_symmetric_cipher_get_state #185

Closed sbiscigl closed 2 months ago

sbiscigl commented 2 months ago

Description of changes:

fixes a silly mistake i made in pull/184 where i made the declaration outside of the scope of AWS_EXTERN_C_END which causes the following linker error when used.

Undefined symbols for architecture arm64:
  ....
   NOTE: found '_aws_symmetric_cipher_get_state' in libaws-c-cal.1.0.0.dylib, declaration possibly missing 'extern "C"'
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.