]> www.vanbest.org Git - sasc-ng.git/commitdiff
change msg cache hash algo
authorleslie <unknown>
Sun, 26 Apr 2009 17:43:22 +0000 (19:43 +0200)
committerleslie <unknown>
Sun, 26 Apr 2009 17:43:22 +0000 (19:43 +0200)
system.c

index 9e5a1724a48566a354a05c6e9578c75055659a6b..29ae0acaf240d28fc49b81adbf3ecffc8d08c2ae 100644 (file)
--- a/system.c
+++ b/system.c
@@ -23,6 +23,8 @@
 
 #include <vdr/tools.h>
 
+#include <openssl/md5.h>
+
 #include "sc.h"
 #include "scsetup.h"
 #include "system.h"
@@ -498,7 +500,8 @@ struct Cache *cMsgCache::FindMsg(int crc)
 // >0 - msg not cached, queue id
 int cMsgCache::Get(const unsigned char *msg, int len, unsigned char *store)
 {
-  int crc=crc32_le(0,msg,len);
+  unsigned char md[16];
+  int crc=crc32_le(0,MD5(msg,len,md),16);
   cMutexLock lock(&mutex);
   if(!caches || (storeSize>0 && !stores)) return -1; // sanity
   struct Cache *s;