summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-07-28 21:55:02 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-07-28 21:55:02 (GMT)
commit0c92911504f7d267c913fc8d2069cb87139b390b (patch)
tree236cf29352580a48c33ef54778d0a18c77608664 /plugins
parentb509af52114501aff3ef81c49c431570f31a21d3 (diff)
Centralized the checksum computing of binary contents.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/pychrysa/analysis/content.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/pychrysa/analysis/content.c b/plugins/pychrysa/analysis/content.c
index 00265e3..d3da2b1 100644
--- a/plugins/pychrysa/analysis/content.c
+++ b/plugins/pychrysa/analysis/content.c
@@ -82,12 +82,9 @@ static PyObject *py_binary_content_get_checksum(PyObject *self, PyObject *args)
content = G_BIN_CONTENT(pygobject_get(self));
- //checksum = g_binary_content_get_cheksum(content);
+ checksum = g_binary_content_get_checksum(content);
- printf("YEAH\n");
- fflush(NULL);
-
- result = PyUnicode_FromString("checksum");
+ result = PyUnicode_FromString(checksum);
return result;