Skip to content

Commit

Permalink
Remove old non-JCE implementations of HMAC-MD5 & HMAC-SHA1.
Browse files Browse the repository at this point in the history
They appear to have been for old versions of Mac OS X which are no longer relevant.
  • Loading branch information
norrisjeremy committed Feb 16, 2021
1 parent 0478e3b commit 70e1322
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 333 deletions.
15 changes: 0 additions & 15 deletions src/main/java/com/jcraft/jsch/JSch.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,21 +216,6 @@ public void log(int level, String message){}
static Logger logger=DEVNULL;

public JSch(){
/*
// The JCE of Sun's Java5 on Mac OS X has the resource leak bug
// in calculating HMAC, so we need to use our own implementations.
try{
String osname=(String)(System.getProperties().get("os.name"));
if(osname!=null && osname.equals("Mac OS X")){
config.put("hmac-sha1", "com.jcraft.jsch.jcraft.HMACSHA1");
config.put("hmac-md5", "com.jcraft.jsch.jcraft.HMACMD5");
config.put("hmac-md5-96", "com.jcraft.jsch.jcraft.HMACMD596");
config.put("hmac-sha1-96", "com.jcraft.jsch.jcraft.HMACSHA196");
}
}
catch(Exception e){
}
*/
}

/**
Expand Down
108 changes: 0 additions & 108 deletions src/main/java/com/jcraft/jsch/jcraft/HMAC.java

This file was deleted.

55 changes: 0 additions & 55 deletions src/main/java/com/jcraft/jsch/jcraft/HMACMD5.java

This file was deleted.

50 changes: 0 additions & 50 deletions src/main/java/com/jcraft/jsch/jcraft/HMACMD596.java

This file was deleted.

55 changes: 0 additions & 55 deletions src/main/java/com/jcraft/jsch/jcraft/HMACSHA1.java

This file was deleted.

50 changes: 0 additions & 50 deletions src/main/java/com/jcraft/jsch/jcraft/HMACSHA196.java

This file was deleted.

0 comments on commit 70e1322

Please sign in to comment.