Rename DEBUG to SS_DEBUG

This commit is contained in:
Max Lv
2017-02-13 13:16:57 +08:00
parent 889079e69b
commit 8a34b3ea0b
4 changed files with 22 additions and 32 deletions
+1 -13
View File
@@ -128,18 +128,6 @@
*
*/
#ifdef DEBUG
static void
dump(char *tag, char *text, int len)
{
int i;
printf("%s: ", tag);
for (i = 0; i < len; i++)
printf("0x%02x ", (uint8_t)text[i]);
printf("\n");
}
#endif
const char *supported_aead_ciphers[AEAD_CIPHER_NUM] = {
"aes-128-gcm",
"aes-192-gcm",
@@ -356,7 +344,7 @@ aead_cipher_ctx_init(cipher_ctx_t *cipher_ctx, int method, int enc)
FATAL("Cannot initialize mbed TLS cipher context");
}
#ifdef DEBUG
#ifdef SS_DEBUG
dump("KEY", (char *)cipher_ctx->cipher->key, cipher_ctx->cipher->key_len);
#endif
}