Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
ragusaa committed Jun 13, 2024
1 parent 8dd3f18 commit 2272ad0
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions libclamav/ole2_extract.c
Original file line number Diff line number Diff line change
Expand Up @@ -2953,37 +2953,13 @@ cl_error_t cli_ole2_extract(const char *dirname, cli_ctx *ctx, struct uniq **fil
}
}

#if 0

if (encryption_status.encryption_type) {
#if 0
insert_metadata(ctx, encryption_status.encryption_type, true);
#else
if (SCAN_COLLECT_METADATA && (ctx->wrkproperty != NULL)) {
cli_jsonstr(ctx->wrkproperty, ENCRYPTED_JSON_KEY, encryption_status.encryption_type);
}
#endif
}
//insert_metadata(ctx, "Encrypted", encryption_status.encrypted);
//insert_metadata(ctx, "EncryptedWithVelvetSweatshop", encryption_status.velvet_sweatshop);

#endif

#if 0
if (encryption_status.velvet_sweatshop) {
print_heuristic(ctx, "Heuristics.Encrypted.OLE2.VelvetSweatshop");
} else if (encryption_status.encrypted) {
print_heuristic(ctx, "Heuristics.Encrypted.OLE2");
}
#else
if (SCAN_HEURISTIC_ENCRYPTED_DOC && encryption_status.encrypted && (!encryption_status.velvet_sweatshop)) {
cl_error_t status = cli_append_potentially_unwanted(ctx, OLE2_HEURISTIC_ENCRYPTED_WARNING );
if (CL_SUCCESS != status) {
cli_errmsg("OLE2 : Unable to warn potentially unwanted signature '%s'\n", "Heuristics.Encrypted.OLE2");
ret = status;
}
}
#endif

done:

Expand Down

0 comments on commit 2272ad0

Please sign in to comment.