mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
*** empty log message ***
This commit is contained in:
parent
eefa9304cd
commit
1f4c504b42
@ -41,6 +41,16 @@
|
|||||||
|
|
||||||
#end bin_target
|
#end bin_target
|
||||||
|
|
||||||
|
#begin bin_target
|
||||||
|
#define TARGET check_md5
|
||||||
|
#define TARGET_IF_CRYPTO yes
|
||||||
|
#define USE_CRYPTO yes
|
||||||
|
|
||||||
|
#define SOURCES \
|
||||||
|
check_md5.cxx
|
||||||
|
|
||||||
|
#end bin_target
|
||||||
|
|
||||||
#begin bin_target
|
#begin bin_target
|
||||||
#define TARGET multify
|
#define TARGET multify
|
||||||
|
|
||||||
|
17
panda/src/downloadertools/check_md5.cxx
Normal file
17
panda/src/downloadertools/check_md5.cxx
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#include <crypto_utils.h>
|
||||||
|
|
||||||
|
int
|
||||||
|
main(int argc, char *argv[]) {
|
||||||
|
if (argc < 2) {
|
||||||
|
cerr << "Usage: check_md5 <file>" << endl;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
Filename source_file = argv[1];
|
||||||
|
|
||||||
|
HashVal hash;
|
||||||
|
md5_a_file(source_file, hash);
|
||||||
|
cout << hash << endl;
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user