Changeset 742 in Sophya for trunk/SophyaLib/BaseTools/ppersist.h
- Timestamp:
- Feb 26, 2000, 10:24:54 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/ppersist.h
r588 r742 11 11 #include "machdefs.h" 12 12 #include "pexceptions.h" 13 #include "md5.h" 13 #include "gnumd5.h" 14 14 15 15 16 #include <time.h> … … 72 73 static ClassCreatorFunc FindCreatorFunc(uint_8 classId); 73 74 static uint_8 Hash(string const& typname) { 74 MD5Init(&ctx);75 MD5Update(&ctx, (unsigned char*) typname.c_str(), typname.size());76 MD5Final(&ctx);77 return ( *((uint_8*) ctx. digest) + *((uint_8*) (ctx.digest+8)));75 md5_init(&ctx); 76 md5_write(&ctx, (unsigned char*) typname.c_str(), typname.size()); 77 md5_final(&ctx); 78 return ( *((uint_8*) ctx.buf) + *((uint_8*) (ctx.buf+8))); 78 79 } 79 static MD5_C TXctx;80 static MD5_CONTEXT ctx; 80 81 81 82 static void Initialize(); // Pour initialiser classList
Note:
See TracChangeset
for help on using the changeset viewer.