[Zrouter-src] ZRouter.org: push to ZRouter contrib/mktplinkfw/Makefile contrib...

zrouter-src at zrouter.org zrouter-src at zrouter.org
Sat Dec 31 13:20:59 UTC 2011


details:   http://zrouter.org/hg/zrouter//rev/e3a095f19dfa
changeset: 299:e3a095f19dfa
user:      ray at terran.dlink.ua
date:      Sat Dec 31 15:17:18 2011 +0200
description:
Use libmd instead of openssl.

diffstat:

 contrib/mktplinkfw/Makefile     |  13 -------------
 contrib/mktplinkfw/mktplinkfw.c |   8 ++++----
 2 files changed, 4 insertions(+), 17 deletions(-)

diffs (42 lines):

diff -r 741f76813bcc -r e3a095f19dfa contrib/mktplinkfw/Makefile
--- a/contrib/mktplinkfw/Makefile	Sat Dec 31 15:16:25 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-RM?=	rm
-LDFLAGS+=	-lz -lcrypto
-PREFIX?=	/usr/local
-
-all:	mktplinkfw
-
-install:
-	install -m 0755 mktplinkfw ${PREFIX}/bin
-
-mkfwimage: mktplinkfw.c
-
-clean:
-	$(RM) -f mktplinkfw *.o
diff -r 741f76813bcc -r e3a095f19dfa contrib/mktplinkfw/mktplinkfw.c
--- a/contrib/mktplinkfw/mktplinkfw.c	Sat Dec 31 15:16:25 2011 +0200
+++ b/contrib/mktplinkfw/mktplinkfw.c	Sat Dec 31 15:17:18 2011 +0200
@@ -22,7 +22,7 @@
 #include <errno.h>
 #include <sys/stat.h>
 
-#include "md5.h"
+#include <md5.h>
 
 #define	HOST_TO_BE32(x)		htonl(x)
 #define	BE32_TO_HOST(x)		ntohl(x)
@@ -346,9 +346,9 @@
 {
 	MD5_CTX ctx;
 
-	MD5_Init(&ctx);
-	MD5_Update(&ctx, data, size);
-	MD5_Final(md5, &ctx);
+	MD5Init(&ctx);
+	MD5Update(&ctx, data, size);
+	MD5Final(md5, &ctx);
 }
 
 static int get_file_stat(struct file_info *fdata)


More information about the Zrouter-src mailing list