ssleay32.dll depends on libeay32.dll
This commit is contained in:
parent
57b9747bfe
commit
19565d776d
|
@ -49,20 +49,27 @@ abstract class VMwareObject {
|
|||
}
|
||||
|
||||
if (SigarLoader.IS_WIN32) {
|
||||
File libssl =
|
||||
new File(new File(lib).getParent(),
|
||||
"ssleay32.dll");
|
||||
if (!libssl.exists()) {
|
||||
File root = new File(lib).getParentFile();
|
||||
String[] libs = {
|
||||
"libeay32.dll",
|
||||
"ssleay32.dll"
|
||||
};
|
||||
|
||||
for (int i=0; i<libs.length; i++) {
|
||||
File ssllib =
|
||||
new File(root, libs[i]);
|
||||
if (!ssllib.exists()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
System.load(libssl.getPath());
|
||||
System.load(ssllib.getPath());
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
//e.printStackTrace();
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return init(lib);
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in New Issue