adc194756f
X11BASE). Submitted by: pointyhat via kris While here fix some more of the warnings, use OpenSSL's MD5 code instead of vendor's own copy, and use srandomdev instead of srandom(hostname+time). Approved by: portmgr (Kirill)
21 lines
552 B
Text
21 lines
552 B
Text
--- 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));
|
|
}
|