update display_ctx() to show the entire plaintext data on one line

This commit is contained in:
Michael Rash
2012-02-08 14:15:36 -05:00
parent 193e1799e6
commit efcefdfb81
+5 -1
View File
@@ -827,7 +827,11 @@ display_ctx(fko_ctx_t ctx)
printf(" Digest Type: %d\n", digest_type);
printf("Encryption Mode: %d\n", encryption_mode);
printf("\n Encoded Data: %s\n", enc_data == NULL ? "<NULL>" : enc_data);
printf("\nSPA Data Digest: %s\n", spa_digest == NULL ? "<NULL>" : spa_digest);
printf("SPA Data Digest: %s\n", spa_digest == NULL ? "<NULL>" : spa_digest);
if (enc_data != NULL && spa_digest != NULL)
printf(" Plaintext: %s:%s\n", enc_data, spa_digest);
printf("\nFinal Packed/Encrypted/Encoded Data:\n\n%s\n\n", spa_data);
}