From 3526a0e568a08e2705c68ab262e5e7e61b9089d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 11 Apr 2008 11:33:22 +0000 Subject: [PATCH] c++ wrappers git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22958 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hcrypto/aes.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/hcrypto/aes.h b/lib/hcrypto/aes.h index 524347acf..9550f61e9 100644 --- a/lib/hcrypto/aes.h +++ b/lib/hcrypto/aes.h @@ -58,6 +58,10 @@ typedef struct aes_key { int rounds; } AES_KEY; +#ifdef __cplusplus +extern "C" { +#endif + int AES_set_encrypt_key(const unsigned char *, const int, AES_KEY *); int AES_set_decrypt_key(const unsigned char *, const int, AES_KEY *); @@ -68,4 +72,8 @@ void AES_cbc_encrypt(const unsigned char *, unsigned char *, const unsigned long, const AES_KEY *, unsigned char *, int); +#ifdef __cplusplus +} +#endif + #endif /* HEIM_AES_H */ -- 2.11.4.GIT