diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-08-30 08:51:09 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-08-30 08:51:09 +0200 |
commit | 2a7a9471dd71fbb432c84f82ea04023f2053ae2a (patch) | |
tree | b8a258f13381fa76ee1c5018b80d4486e5c34c48 /scripts | |
parent | 45b80880f88411344e2809f46943d140b3ed3f44 (diff) | |
download | strongswan-2a7a9471dd71fbb432c84f82ea04023f2053ae2a.tar.bz2 strongswan-2a7a9471dd71fbb432c84f82ea04023f2053ae2a.tar.xz |
aes-test: Rename crypt() as it conflicts with a library function on Mac OS X
unistd.h on Linux defines this only if _XOPEN_SOURCE is defined.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/aes-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/aes-test.c b/scripts/aes-test.c index 701d2223b..ddf4a5ded 100644 --- a/scripts/aes-test.c +++ b/scripts/aes-test.c @@ -385,7 +385,7 @@ static bool do_test_gcm(test_vector_t *test) return TRUE; } -static bool crypt(crypter_t *crypter, test_vector_t *test) +static bool do_crypt(crypter_t *crypter, test_vector_t *test) { if (ctx.decrypt) { @@ -424,7 +424,7 @@ static bool do_test_cbc(test_vector_t *test) crypter->destroy(crypter); return FALSE; } - if (!crypt(crypter, test)) + if (!do_crypt(crypter, test)) { crypter->destroy(crypter); return FALSE; @@ -478,7 +478,7 @@ static bool do_test_mct(test_vector_t *test) /* store previous output as it is used as input after next */ memcpy(prev.ptr, output->ptr, prev.len); chunk_free(output); - if (!crypt(crypter, test)) + if (!do_crypt(crypter, test)) { crypter->destroy(crypter); return FALSE; |