]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/writer.c
Log the signature in debug mode
[people/ms/libloc.git] / src / writer.c
index 0a4c4087e0d94c22c3ca466d85470da146de034b..26d5c32f3eb96c2266b700d88e8bc2757d4b6e89 100644 (file)
@@ -578,9 +578,13 @@ static int loc_writer_create_signature(struct loc_writer* writer,
        // Save length of the signature
        header->signature_length = htobe32(signature_length);
 
-       DEBUG(writer->ctx, "Successfully generated signature\n");
+       DEBUG(writer->ctx, "Successfully generated signature of %lu bytes\n",
+               signature_length);
        r = 0;
 
+       // Dump signature
+       hexdump(writer->ctx, header->signature, signature_length);
+
 END:
        EVP_MD_CTX_free(mdctx);