History log of /freebsd-current/contrib/telnet/libtelnet/sra.c
Revision Date Author Comments
# a3c85800 27-Nov-2023 Brooks Davis <brooks@FreeBSD.org>

telnet: remove locally added __FBSDID

This partially reverts 77b7cdf1999ee965ad494fddd184b18f532ac91a.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D42704


# 675be911 15-Dec-2011 Dimitry Andric <dim@FreeBSD.org>

In contrib/telnet/libtelnet/sra.c, use the correct number of bytes to
zero the password buffer.

MFC after: 1 week


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# ee2ea5ce 06-May-2002 Mark Murray <markm@FreeBSD.org>

Fix an external declaration that was causing telnetd to core dump.

MFC after: 1 week
PR: 37766


# 8fa113e5 30-Nov-2001 Mark Murray <markm@FreeBSD.org>

Very large style makeover.

1) ANSIfy.
2) Clean up ifdefs so that
a) ones that never/always apply are appropriately either
fully removed, or just the #if junk is removed.
b) change #if defined(FOO) for appropiate values of FOO.
(currently AUTHENTICATION and ENCRYPTION)
3) WARNS=2 fixing
4) GC other unused stuff

This code can now be unifdef(1)ed to make non-crypto telnet.


# 3737d6df 29-Oct-2001 Nick Sayer <nsayer@FreeBSD.org>

Add Berkeley copyright to SRA.

This is by the kind permission of Dave Safford, formerly of TAMU who wrote the
original code. Here is an excerpt of the e-mail exchange concerning this
issue:

Dave Safford wrote:
>Nick Sayer wrote:
>> Some time ago we spoke about SRA and importing it into FreeBSD. I forgot to
>> ask if you had a prefered license boilerplate for the top of the files. It
>> has come up recently, and the SRA code in FreeBSD doesn't have one.

>I really have no preference - use whatever is most convenient in the
>FreeBSD environment.

>dave safford

This is the standard BSD license with clause 3 removed and clause 4
suitably renumbered.

MFC after: 1 day


# f2ac7de9 01-Oct-2001 Mark Murray <markm@FreeBSD.org>

Add __FBSDID() to diff-reduce with "base" telnet.


# 21f083c0 19-Aug-2001 Mark Murray <markm@FreeBSD.org>

Code merge and diff reduce with "base" telnet. This is the "later"
telnet, so it was treated as the reference code, except where later
commits were made to "base" telnet.


# 9286fd70 17-May-2001 Nick Sayer <nsayer@FreeBSD.org>

Make the PAM user-override actually override the correect thing.


# 166b3cb9 16-May-2001 Nick Sayer <nsayer@FreeBSD.org>

Make sure the protocol actively rejects bad data rather than
(potentially) not responding to an invalid SRA 'auth is' message.


# 60f58176 16-May-2001 Nick Sayer <nsayer@FreeBSD.org>

Catch any attempted buffer overflows. The magic numbers in this code
(512) are a little distressing, but the method really needs to be
extended to allow server-supplied DH parameters anyway.

Submitted by: kris


# e7157113 16-May-2001 Nick Sayer <nsayer@FreeBSD.org>

Catch malloc return failures. This should help avoid dereferencing NULL on
low-memory situations.

Submitted by: kris


# c7be24c9 14-May-2001 Nick Sayer <nsayer@FreeBSD.org>

If the uid of the attempted authentication is 0 and if the pty is
insecure, do not succeed. Copied from login.c. This functionality really
should be a PAM module.


# 053c5b3a 07-May-2001 Nick Sayer <nsayer@FreeBSD.org>

Pointy hat fix -- reapply the SRA PAM patch. To -current this time.


# ecece7e3 15-Jul-2000 Peter Wemm <peter@FreeBSD.org>

Add missing $FreeBSD$ to files that are NOT still on vendor a branch.


# 0f8c8396 16-Aug-1999 Nick Sayer <nsayer@FreeBSD.org>

Add SRA authentication to src/crypto/telnet.

SRA does a Diffie-Hellmen exchange and then DES-encrypts the
authentication data. If the authentication is successful, it also
sets up a session key for DES encryption.

SRA was originally developed at Texas A&M University.

This code is probably export restricted (despite the fact that I
originally found it at a University in Germany).

SRA is not perfect. It is vulnerable to monkey-in-the-middle attacks
and does not use tremendously large DH constants (and thus an individual
exchange probably could be factored in a few days on modern CPU
horsepower). It does not, however, require any changes in user or
administrative behavior and foils session hijacking and sniffing.
The goal of this commit is that telnet and telnetd end up in the DES
distribution and that therefore an encrypted session telnet becomes
standard issue for FreeBSD.