/*- * Copyright (c) 1991 The Regents of the University of California. * All rights reserved. * * %sccs.include.redist.c% */ #ifndef lint static char sccsid[] = "@(#)misc.c 5.3 (Berkeley) 01/20/93"; #endif /* not lint */ #include "misc.h" char *RemoteHostName; char *LocalHostName; char *UserNameRequested = 0; int ConnectedCount = 0; void auth_encrypt_init(local, remote, name, server) char *local; char *remote; char *name; int server; { RemoteHostName = remote; LocalHostName = local; #if defined(AUTHENTICATION) auth_init(name, server); #endif #if defined(ENCRYPTION) encrypt_init(name, server); #endif if (UserNameRequested) { free(UserNameRequested); UserNameRequested = 0; } } void auth_encrypt_user(name) char *name; { extern char *strdup(); if (UserNameRequested) free(UserNameRequested); UserNameRequested = name ? strdup(name) : 0; } void auth_encrypt_connect(cnt) int cnt; { } void printd(data, cnt) unsigned char *data; int cnt; { if (cnt > 16) cnt = 16; while (cnt-- > 0) { printf(" %02x", *data); ++data; } }