Simon Josefsson
8e9d7c933a
doc: Fix codespell nits
2025-11-27 00:33:35 +01:00
Simon Josefsson
04c3738a6c
maint: Run 'make update-copyright'.
2025-01-01 18:21:25 +01:00
Collin Funk
25816697e6
libtelnet: Make encryption decls compatible with C23.
...
* libtelnet/enc-proto.h (findencryption, finddecryption): Add
prototypes.
* libtelnet/encrypt.c (struct key_info): Add the parameter type.
2024-05-09 21:10:57 -07:00
Collin Funk
dd4c077b34
maint: Fix most instances of '-Wstrict-prototypes'.
...
* libinetutils/des_rw.c (des_clear_key, des_read, des_write): Don't
use K&R-style function declarations.
* ifconfig/system/linux.c (pnd_read): Use void instead of an empty
argument list.
* libtelnet/auth.c (auth_status, auth_request, auth_send_retry):
Likewise.
* libtelnet/kerberos5.c (kerberos5_cleanup): Likewise.
* ping/ping.c (ping_run): Likewise.
* ping/ping6.c (ping_run): Likewise.
* ping/ping6.h (ping_run): Likewise.
* ping/ping_impl.h (ping_run): Likewise.
* telnet/authenc.c (net_encrypt, telnet_spin): Likewise.
* telnet/commands.c (_setlist_init, auth_help, EncryptHelp)
(ayt_status): Likewise.
* telnet/sys_bsd.c (TerminalNewMode): Likewise.
* telnet/tn3270.c (outputPurge, Push3270, Finish3270, SetIn3270)
(tn3270_ttype): Likewise.
* telnetd/state.c (willoption): Likewise.
* telnetd/telnetd.h (pty_buffer_level): Likewise.
* telnetd/term.c (term_send_eof, term_change_eof, tty_linemode)
(tty_isecho, tty_flowmode, tty_restartany, tty_israw)
(tty_isbinaryin, tty_isbinaryout, tty_isediting, tty_istrapsig)
(tty_issofttab, tty_islitecho, tty_iscrnl, copy_termbuf): Likewise.
* telnetd/termstat.c (termstat, _termstat): Likewise.
* telnetd/utility.c (net_encrypt, telnet_spin): Likewise.
* src/rcp.c (krb_realmofhost): Add the parameter type.
* telnet/ring.c (ring_encrypt): Likewise.
* telnet/ring.h (ring_encrypt): Likewise.
2024-05-09 18:51:54 -07:00
Collin Funk
711242da5b
maint: Remove uses of the 'register' keyword.
...
* libicmp/*.c: Don't use the 'register' keyword when declaring
variables or arguments.
* libinetutils/*.c: Likewise.
* libtelnet/*.h: Likewise.
* libtelnet/*.c: Likewise.
* src/*.c: Likewise.
* talk/*.c: Likewise.
* telnet/*.c: Likewise.
* telnetd/*.c: Likewise.
2024-05-08 21:22:33 -07:00
Collin Funk
e5a9384c92
maint: Remove unnecessary standard library extern function decls.
...
* ftp/cmds.c (account, user): Don't declare getpass since it is
defined in unistd.h.
* ftp/ftp.c (login): Likewise. Don't declare fclose and pclose since
they are defined in stdio.h.
* ftpd/extern.h: Don't declare getusershell since it is defined in
unistd.h.
* ftpd/ftpd.c: Don't declare fclose since it is defined in stdio.h.
* libinetutils/logwtmp.c: Don't declare errno since it is defined in
errno.h.
* libtelnet/misc.c (auth_encrypt_user): Include string.h and don't
declare strdup.
* telnet/authenc.c (telnet_gets): Don't declare getpass since it is
defined in unistd.h.
* telnet/commands.c (hostname): Use NULL instead of 0.
(env_init, shell): Include string.h and don't redeclare functions.
2024-05-08 20:29:36 -07:00
Simon Josefsson
aba8d6528e
maint: Run 'make update-copyright'.
2024-01-01 11:28:59 +01:00
Simon Josefsson
2cf199580a
maint: Re-indent using GNU indent 2.2.13.
2023-12-29 18:35:01 +01:00
Simon Josefsson
4bfe18d36f
maint: Run 'make update-copyright'.
2023-01-01 01:37:41 +01:00
Simon Josefsson
c1b8d134d5
Indent code.
2022-10-26 00:03:45 +02:00
Simon Josefsson
541fbbdaea
Build fixes for C23 compatibility.
...
* src/inetd.c (signal_set_handler): Clarify sighandler_t type.
* ifconfig/printif.c, ifconfig/system/bsd.c, ifconfig/system/generic.c,
ifconfig/system/hurd.c, ifconfig/system/linux.c, src/tftp.c,
telnet/commands.c: Reorder MAYBE_UNUSED.
* libtelnet/genget.c (isprefix, genget): Use const char.
libtelnet/genget.c (Ambiguous): Use void.
* telnet/commands.c, telnet/externs.h, telnet/network.c,
telnet/telnet.c, telnet/utilities.c: Clarify empty function types,
and update callers.
2022-10-25 22:37:01 +02:00
Alfred M. Szmidt
6d519229fa
Happy GNU 2022 year!
2022-01-01 17:23:02 +01:00
Simon Josefsson
1d5c923528
maint: Use copyright year ranges for readability.
...
* cfg.mk (update-copyright-env): Add, from coreutils.
(VC_LIST_ALWAYS_EXCLUDE_REGEX): Add, for update-copyright exceptions.
* README: Add info about copyright year ranges.
* *: Update copyright notices.
2021-09-03 18:41:09 +02:00
Simon Josefsson
0ceee23262
Use gnulib module 'attribute' instead of obsolete 'snippets/unused-parameters'.
...
* */*.c: Use MAYBE_UNUSED instead of _GL_UNUSED_PARAMETER.
* */*.c: Include attribute.h instead of unused-parameters.h.
2021-09-01 22:49:18 +02:00
Alfred M. Szmidt
911413ea57
Happy GNU 2021 year!
2021-01-01 11:35:27 +01:00
Simon Josefsson
d8de4587f2
Update copyright years to use intervals up to 2020.
2020-01-01 13:21:37 +01:00
Mats Erik Andersson
3d64a8c728
Update copyright years to 2017. (silent change)
2017-02-21 14:25:23 +01:00
Mats Erik Andersson
84dcf08568
Update copyright years to 2016. (silent change)
2016-01-22 19:09:49 +01:00
Mats Erik Andersson
055ea0a73f
Fix sc_prohibit_double_semicolon.
2015-04-17 15:38:22 +02:00
Mats Erik Andersson
d3c9b1b8fa
Update copyright years with 2015. (silent change)
2015-01-16 14:09:44 +01:00
Mats Erik Andersson
ae85332551
Update copyright years with 2014. (silent change)
2014-01-18 12:23:21 +01:00
Mats Erik Andersson
d1d52cce92
Update copyright years with 2013. (silent change)
2013-05-22 21:03:41 +02:00
Mats Erik Andersson
0b845519d6
Mixed compiler warnings.
2013-05-22 18:09:42 +02:00
Mats Erik Andersson
4b076100a1
libtelnet: Unused parameters.
2013-05-22 12:10:54 +02:00
Mats Erik Andersson
e9306b9bb1
libtelnet: Portability of enctype_names.
2013-05-22 02:52:34 +02:00
Mats Erik Andersson
d485b14c3b
libtelnet: Selected compiler warnings.
2013-05-22 02:52:33 +02:00
Mats Erik Andersson
a98c1047ac
libtelnet: Standard type for strings.
2013-05-22 02:52:32 +02:00
Mats Erik Andersson
3864a49a23
libtelnet: Check authentication name strings.
...
The list of authentication names is allowed
to set NULL for missing methods. Protect
against dereferencing such null-pointers.
2013-05-14 17:26:43 +02:00
Mats Erik Andersson
d6a64f4ff8
libtelnet: Availability of DES_OFB64.
...
Declare properly that our code base supports DES_CFB64
as well as DES_OFB64. This prevents the system specific
header to arrange matters otherwise.
2013-05-13 23:09:53 +02:00
Mats Erik Andersson
e854134ba2
libtelnet: Parity adjust non-DES key.
2013-05-08 03:09:31 +02:00
Mats Erik Andersson
0c3f38bbda
Small code clean-up.
2013-05-02 23:01:43 +02:00
Mats Erik Andersson
6e8595711a
telnet, telnetd: Buffer security.
2013-04-10 16:17:38 +02:00
Mats Erik Andersson
3e5d87b25b
telnet: Specify realm with Kerberos5.
2013-03-28 18:29:57 +01:00
Mats Erik Andersson
1054aa7354
Partial adaptions to Kerberos5.
2013-03-28 16:44:21 +01:00
Guillem Jover
b1d8390d0a
Cleanup automake variables.
2013-01-24 15:20:39 +01:00
Mats Erik Andersson
037be5ba9e
telnetd: Resolve mixed up host names.
2012-10-11 02:22:08 +02:00
Mats Erik Andersson
df22b0e7de
Realm for server lookup.
2012-08-21 23:35:34 +02:00
Mats Erik Andersson
4168cfe85d
telnet: Activate principal naming.
2012-08-17 03:29:15 +02:00
Mats Erik Andersson
32746bf664
telnetd: Server principal naming.
2012-08-16 18:26:18 +02:00
Mats Erik Andersson
7439cb7c3d
Authorization type k5login.
...
Enable k5login authorization in telnetd and
rlogind/rshd for future versions of libshishi.
2012-08-08 11:52:57 +02:00
Mats Erik Andersson
5d9c59cbcd
Out-of-tree binary build.
2012-08-01 14:24:39 +02:00
Mats Erik Andersson
bfc79fcbbd
telnet: Service and realm for libshishi.
2012-07-16 17:42:20 +02:00
Alfred M. Szmidt
773115a7d7
Check return code of malloc, or use xmalloc.
2012-03-27 08:54:55 +02:00
Mats Erik Andersson
5797e60bbe
Missing prototypes with libshishi.
2012-02-02 12:37:44 +01:00
Mats Erik Andersson
35b13aed4d
Fix incomplete Kerberos code.
2012-02-01 12:33:57 +01:00
Mats Erik Andersson
e18406105c
Protect headers in Kerberos code.
2012-02-01 01:36:44 +01:00
Mats Erik Andersson
4e82f22597
libtelnet: Portability of macros.
...
Solaris is defining a variant set of macros
in <arpa/telnet.h>; some of alternate names,
and some otherwise standard macros.
2012-01-31 12:54:14 +01:00
Mats Erik Andersson
17e24964ca
libtelnet: Wrong declaration, missing prototypes.
2012-01-27 22:32:19 +01:00
Alfred M. Szmidt
99c71142f2
Updated copyright years; happy 2012! (silent change)
2012-01-01 19:27:00 +01:00
Alfred M. Szmidt
1a343be8d0
Fix prohibit_dirent_without_use, sc_unsigned_short, sc_unsigned_long sc_unsigned_char checks.
2011-12-30 18:49:49 +01:00