jedisct1 / libaegis

Portable C implementations of the AEGIS family of high-performance authenticated encryption algorithms.
https://datatracker.ietf.org/doc/draft-irtf-cfrg-aegis-aead/
MIT License
60 stars 14 forks source link

Add c++ guards #6

Closed mingtaoy closed 9 months ago

mingtaoy commented 9 months ago

Ensures that when aegis public headers are included in a C++ context, that declared functions have C linkage.

// test.cc
#include <aegis.h>
int main() {
   return aegis_init();
}
c++ test.cc -laegis

now no longer fails with a linking error.

jedisct1 commented 9 months ago

Thank you!