1 diff -ru keynote-2.3/configure.in keynote-2.3.new/configure.in
2 --- keynote-2.3/configure.in 2000-09-27 01:16:28.000000000 +0200
3 +++ keynote-2.3.new/configure.in 2004-01-16 11:34:03.991537404 +0100
5 AC_PATH_PROG(ECHO, echo, /bin/echo)
6 AC_PATH_PROG(SED, sed, /usr/bin/sed)
8 -dnl Checks for libraries.
9 -LIBS="-L/usr/lib -L/usr/local/lib -L/usr/ssl/lib -L/usr/openssl/lib\
10 - -L/usr/local/ssl/lib -L/usr/local/openssl/lib -L/usr/pkg/lib -L/pkg/lib"
12 AC_CHECK_LIB(m, floor, LIBS="$LIBS -lm")
13 AC_CHECK_LIB(rsaref, RSAPrivateDecrypt, LIBS="$LIBS -lrsaref")
14 AC_CHECK_LIB(crypto, i2a_ASN1_STRING, LIBS="$LIBS -lcrypto")
15 AC_CHECK_LIB(RSAglue, RSA_ref_private_encrypt, LIBS="$LIBS -lRSAglue")
17 dnl Checks for header files.
18 -CPPFLAGS="-I/usr/include -I/usr/local/include -I/usr/ssl/include\
19 - -I/usr/local/ssl/include -I/usr/openssl/include -I/usr/pkg/include\
20 - -I/usr/local/openssl/include -I/pkg/include"
21 +CPPFLAGS="-I/usr/include/openssl"
25 diff -ru keynote-2.3/keynote-keygen.c keynote-2.3.new/keynote-keygen.c
26 --- keynote-2.3/keynote-keygen.c 2000-09-27 02:09:13.000000000 +0200
27 +++ keynote-2.3.new/keynote-keygen.c 2004-01-16 11:32:06.652242269 +0100
29 if (strlen(algname) + 2 > prlen)
31 fprintf(stderr, "Parameter ``print-length'' should be larger "
32 - "than the length of AlgorithmName (%d)\n", strlen(algname));
33 + "than the length of AlgorithmName (%lu)\n", strlen(algname));
37 diff -ru keynote-2.3/keynote.l keynote-2.3.new/keynote.l
38 --- keynote-2.3/keynote.l 2000-08-11 22:49:13.000000000 +0200
39 +++ keynote-2.3.new/keynote.l 2004-01-16 11:17:29.910430978 +0100
40 @@ -61,7 +61,8 @@ struct lex_list
41 static struct lex_list *keynote_lex_list = (struct lex_list *) NULL;
42 static int keynote_max_lex_list = 32;
43 static int keynote_lex_counter = 0;
44 -static int first_tok = 0;
45 +extern int first_tok;
49 specnumber [1-9][0-9]*
54 - yy_flex_realloc(0, NULL);
55 + yy_flex_realloc(NULL, 0);
59 diff -ru keynote-2.3/keynote-ver.l keynote-2.3.new/keynote-ver.l
60 --- keynote-2.3/keynote-ver.l 2000-08-11 22:49:13.000000000 +0200
61 +++ keynote-2.3.new/keynote-ver.l 2004-01-16 11:31:14.667107044 +0100
66 - yy_flex_realloc(0, NULL);
67 + yy_flex_realloc(NULL, 0);
71 diff -ru keynote-2.3/keynote-ver.y keynote-2.3.new/keynote-ver.y
72 --- keynote-2.3/keynote-ver.y 1999-10-12 00:34:29.000000000 +0200
73 +++ keynote-2.3.new/keynote-ver.y 2004-01-16 11:07:19.709634736 +0100
80 expr: VSTRING EQ STRING { int i = kn_add_action(sessid, $1, $3, 0);
91 diff -ru keynote-2.3/keynote.y keynote-2.3.new/keynote.y
92 --- keynote-2.3/keynote.y 2000-06-14 08:28:23.000000000 +0200
93 +++ keynote-2.3.new/keynote.y 2004-01-16 11:14:55.365898229 +0100
98 -grammarswitch: LOCINI { keynote_exceptionflag = keynote_donteval = 0; }
100 +grammarswitch: LOCINI { keynote_exceptionflag = keynote_donteval = 0; } localinit
101 | ACTSTR { keynote_exceptionflag = keynote_donteval = 0; } program
102 | KEYPRE { keynote_exceptionflag = keynote_donteval = 0; }
105 STRING { keynote_lex_remove($3);
106 keynote_privkey = $3;
110 keypredicate: /* Nothing */ { keynote_returnvalue = 0;
113 | notemptykeypredicate { keynote_returnvalue = $1;
118 notemptykeypredicate: key { $$ = $1; }
119 | keyexp { $$ = $1; }
122 keyexp: notemptykeypredicate AND { if (($1 == 0) && !keynote_justrecord)
123 keynote_donteval = 1;
124 } notemptykeypredicate
132 { /* Don't do anything if we're just recording */
133 if (!keynote_justrecord && !keynote_donteval)
141 if (keynote_donteval)
143 @@ -193,10 +192,10 @@
149 localinit: /* Nothing */
153 localconstants: VARIABLE EQQ STRING
156 @@ -265,12 +264,12 @@
157 if (i != RESULT_TRUE)
163 keynote_returnvalue = $1;
168 prog: /* Nada */ { $$ = 0; }
177 notemptyprog: expr HINT afterhint
179 if (checkexception($1))
186 afterhint: str { if (keynote_exceptionflag || keynote_donteval)
192 | OPENBLOCK prog CLOSEBLOCK { $$ = $2; }
196 expr: OPENPAREN expr CLOSEPAREN { $$ = $2; }
197 | expr AND { if ($1 == 0)
198 @@ -334,19 +333,19 @@
199 | stringexp { $$ = $1; }
204 numexp: numex LT numex { $$ = $1 < $3; }
205 | numex GT numex { $$ = $1 > $3; }
206 | numex EQ numex { $$ = $1 == $3; }
207 | numex LE numex { $$ = $1 <= $3; }
208 | numex GE numex { $$ = $1 >= $3; }
209 | numex NE numex { $$ = $1 != $3; }
212 floatexp: floatex LT floatex { $$ = $1 < $3; }
213 | floatex GT floatex { $$ = $1 > $3; }
214 | floatex LE floatex { $$ = $1 <= $3; }
215 | floatex GE floatex { $$ = $1 >= $3; }
218 numex: numex PLUS numex { $$ = $1 + $3; }
219 | numex MINUS numex { $$ = $1 - $3; }
220 | numex MULT numex { $$ = $1 * $3; }
227 floatex: floatex PLUS floatex { $$ = ($1 + $3); }
228 | floatex MINUS floatex { $$ = ($1 - $3); }
229 | floatex MULT floatex { $$ = ($1 * $3); }
236 stringexp: str EQ str {
237 if (keynote_exceptionflag || keynote_donteval)
242 #if !defined(HAVE_SNPRINTF)
243 - sprintf(grp, "%d", preg.re_nsub);
244 + sprintf(grp, "%d", (int)preg.re_nsub);
245 #else /* !HAVE_SNPRINTF */
246 - snprintf(grp, 3, "%d", preg.re_nsub);
247 + snprintf(grp, 3, "%d", (int)preg.re_nsub);
248 #endif /* !HAVE_SNPRINTF */
249 if (keynote_env_add("_0", grp, &keynote_temp_list,
250 1, 0) != RESULT_TRUE)
257 str: str DOTT str { if (keynote_exceptionflag || keynote_donteval)
263 | strnotconcat { $$ = $1; }
266 strnotconcat: STRING { $$ = $1; }
267 | OPENPAREN str CLOSEPAREN { $$ = $2; }
268 | VARIABLE { if (keynote_exceptionflag || keynote_donteval)
277 diff -ru keynote-2.3/Makefile.in keynote-2.3.new/Makefile.in
278 --- keynote-2.3/Makefile.in 2000-09-27 01:16:27.000000000 +0200
279 +++ keynote-2.3.new/Makefile.in 2004-01-16 11:35:38.841528129 +0100
281 YACCFLAGS = -d -p kn -b k
282 LEXFLAGS2 = -Pkv -s -i
283 LEXFLAGS = -Cr -Pkn -s -i
284 -CFLAGS = -O2 -Wall # -g
285 +CFLAGS = -O2 -Wall -fno-strict-aliasing # -g
293 $(TARGET2): $(TARGET) $(OBJS2)
294 - $(CC) $(CFLAGS) -o $(TARGET2) $(OBJS2) $(LIBS)
295 + $(CC) $(CFLAGS) -o $(TARGET2) $(OBJS2) $(LDFLAGS) $(LIBS)
297 k.tab.c: keynote.y header.h keynote.h assertion.h config.h
298 $(YACC) $(YACCFLAGS) keynote.y
299 diff -ru keynote-2.3/signature.c keynote-2.3.new/signature.c
300 --- keynote-2.3/signature.c 1999-10-12 00:34:31.000000000 +0200
301 +++ keynote-2.3.new/signature.c 2004-01-16 11:30:48.062084986 +0100
304 if (keytype == KEYNOTE_PRIVATE_KEY)
306 - if (d2i_DSAPrivateKey((DSA **) &kk, &decoded, len) == (DSA *) NULL)
307 + if (d2i_DSAPrivateKey((DSA **) &kk, (const unsigned char **) &decoded, len) == (DSA *) NULL)
309 if (ptr != (unsigned char *) NULL)
315 - if (d2i_DSAPublicKey((DSA **) &kk, &decoded, len) == (DSA *) NULL)
316 + if (d2i_DSAPublicKey((DSA **) &kk, (const unsigned char **) &decoded, len) == (DSA *) NULL)
318 if (ptr != (unsigned char *) NULL)
322 if (keytype == KEYNOTE_PRIVATE_KEY)
324 - if (d2i_RSAPrivateKey((RSA **) &kk, &decoded, len) == (RSA *) NULL)
325 + if (d2i_RSAPrivateKey((RSA **) &kk, (const unsigned char **) &decoded, len) == (RSA *) NULL)
327 if (ptr != (unsigned char *) NULL)
333 - if (d2i_RSAPublicKey((RSA **) &kk, &decoded, len) == (RSA *) NULL)
334 + if (d2i_RSAPublicKey((RSA **) &kk, (const unsigned char **) &decoded, len) == (RSA *) NULL)
336 if (ptr != (unsigned char *) NULL)