From 6d78c49ef90e3635e6111644e85f924865ef2443 Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Thu, 14 Nov 2013 23:13:33 -0500 Subject: [PATCH] [libfko] minor update to print 'None' for the HMAC type when an HMAC is not used instead of just diplaying '()' --- lib/fko_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fko_util.c b/lib/fko_util.c index f70b3694..6170c041 100644 --- a/lib/fko_util.c +++ b/lib/fko_util.c @@ -615,7 +615,7 @@ dump_ctx_to_buffer(fko_ctx_t ctx, char *dump_buf, size_t dump_buf_len) cp += append_msg_to_buf(dump_buf+cp, dump_buf_len-cp, " Server Auth: %s\n", server_auth == NULL ? NULL_STRING : server_auth); cp += append_msg_to_buf(dump_buf+cp, dump_buf_len-cp, " Client Timeout: %u\n", client_timeout); cp += append_msg_to_buf(dump_buf+cp, dump_buf_len-cp, " Digest Type: %u (%s)\n", digest_type, digest_str); - cp += append_msg_to_buf(dump_buf+cp, dump_buf_len-cp, " HMAC Type: %u (%s)\n", hmac_type, hmac_str); + cp += append_msg_to_buf(dump_buf+cp, dump_buf_len-cp, " HMAC Type: %u (%s)\n", hmac_type, hmac_type == 0 ? "None" : hmac_str); cp += append_msg_to_buf(dump_buf+cp, dump_buf_len-cp, "Encryption Type: %d (%s)\n", encryption_type, enc_type_inttostr(encryption_type)); cp += append_msg_to_buf(dump_buf+cp, dump_buf_len-cp, "Encryption Mode: %d (%s)\n", encryption_mode, enc_mode_str); cp += append_msg_to_buf(dump_buf+cp, dump_buf_len-cp, " Encoded Data: %s\n", enc_data == NULL ? NULL_STRING : enc_data);