break;
case CTRL('a'):
case KEY_HOME:
+#ifdef KEY_BEG
case KEY_BEG:
+#endif
/* Beginning, Home */
silc_screen_input_cursor_home(app->screen);
break;
case CTRL('e'):
+#ifdef KEY_END
case KEY_END:
- /* End */
- silc_screen_input_cursor_end(app->screen);
- break;
+#endif
case KEY_LL:
/* End */
+ silc_screen_input_cursor_end(app->screen);
break;
case CTRL('g'):
/* Bell, Ctrl^g */
case KEY_B2:
case KEY_C1:
case KEY_C3:
+#ifdef KEY_UNDO
case KEY_UNDO:
+#endif
+#ifdef KEY_EXIT
case KEY_EXIT:
+#endif
case '\v': /* VT */
case '\E': /* we ignore ESC */
return TRUE;
along with this program; if not, write to the Free Software
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
\f
-#ifdef HAVE_CONFIG_H
-#if defined (emacs) || defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
-#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
#ifndef __STDC__
/* This is a separate conditional since some stdc systems
along with this program; if not, write to the Free Software
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
\f
-#ifdef HAVE_CONFIG_H
-#if defined (emacs) || defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
-#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
#include "getopt.h"
Packet flags. Flags are defined above.
unsigned char *src_id
- unsigned int src_id_len
+ unsigned short src_id_len
unsigned char src_id_type
Source ID, its length and type. On packet reception retuned ID's
are always the hash values of the ID's from the packet.
unsigned char *dst_id;
- unsigned int dst_id_len;
+ unsigned short dst_id_len;
unsigned char src_id_type;
Destination ID, its length and type. On packet reception retuned
SilcPacketFlags flags;
unsigned char *src_id;
- unsigned int src_id_len;
+ unsigned short src_id_len;
unsigned char src_id_type;
unsigned char *dst_id;
- unsigned int dst_id_len;
+ unsigned short dst_id_len;
unsigned char dst_id_type;
- unsigned int truelen;
- unsigned int padlen;
+ unsigned short truelen;
+ unsigned short padlen;
/* For padding generation */
SilcRng rng;
/* SILC Key Exchange Start Payload */
typedef struct {
unsigned char flags;
- unsigned int len;
+ unsigned short len;
unsigned char *cookie;
unsigned short cookie_len;