Deprecate publickey(5) stuff

This uses DES and it's likely that nobody uses that in 2025.
If somebody uses this we help them by deprecating and removing this.

Reviewed by:	bapt, emaste
Differential Revision:	https://reviews.freebsd.org/D30682

(cherry picked from commit 723425f837270dd3b22098168ae9464a1ebe38c6)
This commit is contained in:
Emmanuel Vadot 2025-01-22 17:56:58 +01:00 committed by Ed Maste
parent 8a02eb2c1e
commit 9197c04a25
10 changed files with 30 additions and 0 deletions

View file

@ -26,3 +26,8 @@ database.
.Xr publickey 5 ,
.Xr keyserv 8 ,
.Xr newkey 8
.Sh HISTORY
The
.Nm
utility was removed from
.Fx 15.0 .

View file

@ -96,6 +96,7 @@ main(int argc, char **argv)
char *cryptpw;
#endif
fprintf(stderr, "chkey is deprecated and removed from FreeBSD 15.\n");
while ((ch = getopt(argc, argv, "f")) != -1)
switch(ch) {
case 'f':

View file

@ -31,3 +31,8 @@ to be used by any secure network services, such as NFS.
.Xr publickey 5 ,
.Xr keyserv 8 ,
.Xr newkey 8
.Sh HISTORY
The
.Nm
utility was removed from
.Fx 15.0 .

View file

@ -54,6 +54,7 @@ main(void)
char fullname[MAXNETNAMELEN + 1];
struct key_netstarg netst;
fprintf(stderr, "keylogin is deprecated and removed from FreeBSD 15.\n");
if (!getnetname(fullname)) {
fprintf(stderr, "netname lookup failed -- make sure the ");
fprintf(stderr, "system domain name is set.\n");

View file

@ -43,3 +43,8 @@ This will break secure NFS if it is done on a server.
.Xr publickey 5 ,
.Xr keyserv 8 ,
.Xr newkey 8
.Sh HISTORY
The
.Nm
utility was removed from
.Fx 15.0 .

View file

@ -47,6 +47,7 @@ main(int argc, char **argv)
{
static char secret[HEXKEYBYTES + 1];
fprintf(stderr, "keylogin is deprecated and removed from FreeBSD 15.\n");
if (geteuid() == 0) {
if ((argc != 2 ) || (strcmp(argv[1], "-f") != 0)) {
fprintf(stderr,

View file

@ -53,6 +53,11 @@ password of the given username.
.Xr keylogin 1 ,
.Xr publickey 5 ,
.Xr keyserv 8
.Sh HISTORY
The
.Nm
utility was removed from
.Fx 15.0 .
.Sh NOTES
The Network Information Service
.Pq NIS

View file

@ -105,6 +105,7 @@ main(int argc, char *argv[])
struct hostent *h;
#endif
fprintf(stderr, "newkey is deprecated and removed from FreeBSD 15.\n");
if (argc != 3 || !(strcmp(argv[1], "-u") == 0 ||
strcmp(argv[1], "-h") == 0)) {
usage();

View file

@ -81,3 +81,8 @@ Display status of DES support (enabled/disabled).
.Xr keylogin 1 ,
.Xr keylogout 1 ,
.Xr publickey 5
.Sh HISTORY
The
.Nm
utility was removed from
.Fx 15.0 .

View file

@ -114,6 +114,7 @@ main(int argc, char *argv[])
register SVCXPRT *transp;
struct netconfig *nconf = NULL;
fprintf(stderr, "keyserv is deprecated and removed from FreeBSD 15.\n");
__key_encryptsession_pk_LOCAL = &key_encrypt_pk_2_svc_prog;
__key_decryptsession_pk_LOCAL = &key_decrypt_pk_2_svc_prog;
__key_gendes_LOCAL = &key_gen_1_svc_prog;