misc.c (87139) | misc.c (98882) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 19 unchanged lines hidden (view full) --- 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> 35 | 1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 19 unchanged lines hidden (view full) --- 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> 35 |
36__FBSDID("$FreeBSD: head/contrib/telnet/libtelnet/misc.c 87139 2001-11-30 21:06:38Z markm $"); | 36__FBSDID("$FreeBSD: head/contrib/telnet/libtelnet/misc.c 98882 2002-06-26 17:05:08Z markm $"); |
37 38#ifndef lint 39#if 0 40static const char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/4/93"; 41#endif 42#endif /* not lint */ 43 44#include <stdio.h> --- 40 unchanged lines hidden (view full) --- 85void 86auth_encrypt_user(char *name) 87{ 88 if (UserNameRequested) 89 free(UserNameRequested); 90 UserNameRequested = name ? strdup(name) : 0; 91} 92 | 37 38#ifndef lint 39#if 0 40static const char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/4/93"; 41#endif 42#endif /* not lint */ 43 44#include <stdio.h> --- 40 unchanged lines hidden (view full) --- 85void 86auth_encrypt_user(char *name) 87{ 88 if (UserNameRequested) 89 free(UserNameRequested); 90 UserNameRequested = name ? strdup(name) : 0; 91} 92 |
93/* ARGSUSED */ |
|
93void 94auth_encrypt_connect(int cnt __unused) 95{ 96} 97#endif /* ENCRYPTION */ 98 99void 100printd(const unsigned char *data, int cnt) 101{ 102 if (cnt > 16) 103 cnt = 16; 104 while (cnt-- > 0) { 105 printf(" %02x", *data); 106 ++data; 107 } 108} | 94void 95auth_encrypt_connect(int cnt __unused) 96{ 97} 98#endif /* ENCRYPTION */ 99 100void 101printd(const unsigned char *data, int cnt) 102{ 103 if (cnt > 16) 104 cnt = 16; 105 while (cnt-- > 0) { 106 printf(" %02x", *data); 107 ++data; 108 } 109} |