Package: ddns3-client / 1.8-13

debian-changes-1.8-8 Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
Description: Cumulative patch 1.8-1 to 1.8-8
Author: Ian Maclaine-cross <iml@debian.org>
Last-Update: 2001-10-07

--- /dev/null
+++ ddns3-client-1.8/ddns-v3.txt
@@ -0,0 +1,92 @@
+DDNS v3 remote update protocol
+==============================
+
+	TCP based: ns.ddns.nu:2164
+
+	Requests:
+
+		<command>[ arg0 arg1 ...]\r\n
+
+		<command> :=	HELP | MOTD | LOGIN | LOGOUT | LIST | SET
+				| EXIT | QUIT
+
+	Responses:
+
+		+OK <arbitary text>\r\n
+		@RET <arbitary text>\r\n[<arbitary data>\r\n].\r\n
+		-ERR <arbitary text>\r\n
+
+	Welcome Banner:
+
+		DDNS v<version> ( <authentication types supported> )\r\n
+
+		Within the auth types returned their may be data required
+		for specific authentication methods, like challenge
+		cookies or public keys.
+
+
+	Command Details (core):
+
+		LOGIN <usrspec> <authspec>
+
+			Authenticate with server.
+
+			Arguments vary depending on authentication used
+
+			Plaintext (plaintext):
+
+				LOGIN <username> <password>
+
+			Crypt (crypt):
+
+				LOGIN <username> <crypt() password hash>
+
+			MD5 (md5):
+
+				LOGIN <username> <md5() password hash>
+
+			DDNS (ddns{<their challenge>};):
+
+				LOGIN <username> <password response>
+
+				response := md5(<password>":"<their challenge>)
+
+			Strong (strong{<their challenge>};):
+
+				LOGIN <user response> <password response> <our challenge>
+
+				user := md5(<username>":"<our challenge>)
+				pass := md5(<password>":"<their challenge>)
+
+		LOGOUT
+
+			Unauthenticates the current connection.
+
+		LIST
+
+			Allows an authenticated user to view their IP
+			handles
+
+		SET <handle name> <ip>
+
+			Allows an authenticated user to set one of their
+			handles to the supplied IP.
+
+		QUIT
+
+			Terminates the connection
+
+
+	Command Details (optional):
+
+		HELP
+
+			Optional command, Returns helpful information
+
+		MOTD
+
+			Optional command, Returns tha message of the day
+
+		EXIT
+
+			Optional command, terminates the connection
--- ddns3-client-1.8.orig/crypto.c
+++ ddns3-client-1.8/crypto.c
@@ -12,6 +12,7 @@
 #endif
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include "md5.h"
 
 static char
--- ddns3-client-1.8.orig/GNUmakefile
+++ ddns3-client-1.8/GNUmakefile
@@ -1,57 +1,34 @@
 #
-# ddns3 makefile
-#
-#	Author: 	Alan Yates <alany@ay.com.au>
-#	Version:	$Id: GNUmakefile,v 1.1.1.1 2002/07/19 11:47:20 alany Exp $
+# ddns3 Debian makefile
 #
+# Author: 	Alan Yates <alany@ay.com.au>
+# Version:	$Id: GNUmakefile,v 1.1.1.1 2002/07/19 11:47:20 alany Exp $
+# Maintainer:	Ian Maclaine-cross <iml@debian.org>
 
 # tools
 AR=ar
 CC=gcc
-CFLAGS=-Wall -O2# -D_DEBUG
 RANLIB=ranlib
 INSTALL=install
-
-# install prefix
-PREFIX=/usr/local
+# INSTALL_FLAGS=-s
 
 # system dependent libraries to link
-DEFAULT_LIBS=-lcrypt
 LINUX_LIBS=-lcrypt
-SOLARIS_LIBS=-lcrypt -lsocket -lnsl -lresolv
-OPENBSD_LIBS=-lcrypto
-
-# compile magic hacks
-SYSTEM=$(shell uname -s | tr "[A-Z]" "[a-z]")
-RELEASE=$(shell uname -r)
-ifeq ($(SYSTEM),linux)
-	LIBS=$(LINUX_LIBS)
-endif
-ifeq ($(SYSTEM),sunos)
-	LIBS=$(SOLARIS_LIBS)
-endif
-ifeq ($(SYSTEM),openbsd)
-	LIBS=$(OPENBSD_LIBS)
-endif
-ifndef LIBS
-	LIBS=$(DEFAULT_LIBS)
-endif
+LIBS=$(LINUX_LIBS)
 
 all:		ddns3
 
 ddns3:		ddns3.c libddns3.a
-	$(CC) $(CFLAGS) $(LIBS) ddns3.c libddns3.a -o ddns3
+	$(CC) ${CFLAGS} $(LIBS) ddns3.c libddns3.a -o ddns3
 
 libddns3.a:	sockio.o crypto.o auth.o md5.o ctx.o
 	$(AR) -cr libddns3.a *.o
 	$(RANLIB) libddns3.a
 
-install:	ddns3
-	$(INSTALL) -s ddns3 $(PREFIX)/bin/
-	$(INSTALL) ddns3.1 $(PREFIX)/man/man1/
+.PHONY : clean install
 
-uninstall:
-	rm -f $(PREFIX)/bin/ddns3 $(PREFIX)/man/man1/ddns3.1
+install:	ddns3
+	$(INSTALL) $(INSTALL_FLAGS) ddns3 $(DESTDIR)/usr/bin/
 
 clean:
 	rm -f *.o core *.a ddns3