Skip to content

Commit

Permalink
Add 'CHECKSUM_CRC32' to the list of removed parameter keys. (National…
Browse files Browse the repository at this point in the history
  • Loading branch information
jdcove2 authored and aL118 committed Aug 4, 2023
1 parent 12ae96e commit abf19f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/emissary/kff/KffDataObjectHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
public class KffDataObjectHandler {
// Parameter names for data object param map
public static final String KFF_PARAM_BASE = "CHECKSUM_";
public static final String KFF_PARAM_CRC32 = KFF_PARAM_BASE + "CRC32";
public static final String KFF_PARAM_MD5 = KFF_PARAM_BASE + "MD5";
public static final String KFF_PARAM_SHA1 = KFF_PARAM_BASE + "SHA-1";
public static final String KFF_PARAM_SHA256 = KFF_PARAM_BASE + "SHA-256";
Expand Down Expand Up @@ -242,6 +243,7 @@ public static boolean hashPresent(IBaseDataObject d) {
* @param d the payload
*/
public static void removeHash(IBaseDataObject d) {
d.deleteParameter(KFF_PARAM_CRC32);
d.deleteParameter(KFF_PARAM_MD5);
d.deleteParameter(KFF_PARAM_SHA1);
d.deleteParameter(KFF_PARAM_SHA256);
Expand Down

0 comments on commit abf19f2

Please sign in to comment.