summaryrefslogtreecommitdiff
path: root/multimedia/vic/files/patch-md5
blob: ba52895aa139927d9a197458017cf312b5939cc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- net/crypt.cpp	Thu Sep  9 08:48:51 1999
+++ net/crypt.cpp	Tue Mar 22 13:08:25 2005
@@ -42,5 +42,5 @@
 #define PROTOTYPES 1 
 #include "global.h"
-#include "md5.h"
+#include <openssl/md5.h>
 
 Crypt::Crypt() : badpktlen_(0), badpbit_(0)
@@ -70,8 +70,8 @@
 {
 	MD5_CTX context;
-	MD5Init(&context);
-	MD5Update(&context, (u_char*)key, strlen(key));
+	MD5_Init(&context);
+	MD5_Update(&context, (u_char*)key, strlen(key));
 	u_char hash[16];
-	MD5Final((u_char *)hash, &context);
+	MD5_Final((u_char *)hash, &context);
 	return (install_key(hash));
 }