Add ignore_auth_resp control interface debug parameter
[mech_eap.git] / tests / test-rc4.c
index cbe2aeb..99f5592 100644 (file)
@@ -2,14 +2,8 @@
  * Test program for RC4
  * Copyright (c) 2011, Jouni Malinen <j@w1.fi>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * Alternatively, this software may be distributed under the terms of BSD
- * license.
- *
- * See README and COPYING for more details.
+ * This software may be distributed under the terms of the BSD license.
+ * See README for more details.
  */
 
 #include "includes.h"
@@ -204,7 +198,7 @@ static const struct rc4_test_vector tests[] = {
        }
 };
 
-#define NUM_TESTS (sizeof(tests) / sizeof(tests[0]))
+#define NUM_TESTS ARRAY_SIZE(tests)
 
 
 static int run_test(unsigned int i, const u8 *key, size_t key_len,