mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-14 14:14:36 +00:00
98c7ad60ec
[ssh.h atomicio.c] - int atomicio -> ssize_t (for alpha). ok deraadt@ [auth-rsa.c] - delay MD5 computation until client sends response, free() early, cleanup. [cipher.c] - void* -> unsigned char*, ok niels@ [hostfile.c] - remove unused variable 'len'. fix comments. - remove unused variable [log-client.c log-server.c] - rename a cpp symbol, to avoid param.h collision [packet.c] - missing xfree() - getsockname() requires initialized tolen; andy@guildsoftware.com - use getpeername() in packet_connection_is_on_socket(), fixes sshd -i; from Holger.Trapp@Informatik.TU-Chemnitz.DE [pty.c pty.h] - register cleanup for pty earlier. move code for pty-owner handling to pty.c ok provos@, dugsong@ [readconf.c] - turn off x11-fwd for the client, too. [rsa.c] - PKCS#1 padding [scp.c] - allow '.' in usernames; from jedgar@fxp.org [servconf.c] - typo: ignore_user_known_hosts int->flag; naddy@mips.rhein-neckar.de - sync with sshd_config [ssh-keygen.c] - enable ssh-keygen -l -f ~/.ssh/known_hosts, ok deraadt@ [ssh.1] - Change invalid 'CHAT' loglevel to 'VERBOSE' [ssh.c] - suppress AAAA query host when '-4' is used; from shin@nd.net.fujitsu.co.jp - turn off x11-fwd for the client, too. [sshconnect.c] - missing xfree() - retry rresvport_af(), too. from sumikawa@ebina.hitachi.co.jp. - read error vs. "Connection closed by remote host" [sshd.8] - ie. -> i.e., - do not link to a commercial page.. - sync with sshd_config [sshd.c] - no need for poll.h; from bright@wintelcom.net - log with level log() not fatal() if peer behaves badly. - don't panic if client behaves strange. ok deraadt@ - make no-port-forwarding for RSA keys deny both -L and -R style fwding - delay close() of pty until the pty has been chowned back to root - oops, fix comment, too. - missing xfree() - move XAUTHORITY to subdir. ok dugsong@. fixes debian bug #57907, too. (http://cgi.debian.org/cgi-bin/bugreport.cgi?archive=no&bug=57907) - register cleanup for pty earlier. move code for pty-owner handling to pty.c ok provos@, dugsong@ - create x11 cookie file - fix pr 1113, fclose() -> pclose(), todo: remote popen() - version 1.2.3 - Cleaned up
51 lines
1.4 KiB
C
51 lines
1.4 KiB
C
/*
|
|
*
|
|
* pty.h
|
|
*
|
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
|
*
|
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
|
* All rights reserved
|
|
*
|
|
* Created: Fri Mar 17 05:03:28 1995 ylo
|
|
*
|
|
* Functions for allocating a pseudo-terminal and making it the controlling
|
|
* tty.
|
|
*/
|
|
|
|
/* RCSID("$Id: pty.h,v 1.6 2000/03/09 10:27:51 damien Exp $"); */
|
|
|
|
#ifndef PTY_H
|
|
#define PTY_H
|
|
|
|
/*
|
|
* Allocates and opens a pty. Returns 0 if no pty could be allocated, or
|
|
* nonzero if a pty was successfully allocated. On success, open file
|
|
* descriptors for the pty and tty sides and the name of the tty side are
|
|
* returned (the buffer must be able to hold at least 64 characters).
|
|
*/
|
|
int pty_allocate(int *ptyfd, int *ttyfd, char *ttyname, int ttynamelen);
|
|
|
|
/*
|
|
* Releases the tty. Its ownership is returned to root, and permissions to
|
|
* 0666.
|
|
*/
|
|
void pty_release(const char *ttyname);
|
|
|
|
/*
|
|
* Makes the tty the processes controlling tty and sets it to sane modes.
|
|
* This may need to reopen the tty to get rid of possible eavesdroppers.
|
|
*/
|
|
void pty_make_controlling_tty(int *ttyfd, const char *ttyname);
|
|
|
|
/* Changes the window size associated with the pty. */
|
|
void
|
|
pty_change_window_size(int ptyfd, int row, int col,
|
|
int xpixel, int ypixel);
|
|
|
|
void pty_setowner(struct passwd *pw, const char *ttyname);
|
|
|
|
void pty_setowner(struct passwd *pw, const char *ttyname);
|
|
|
|
#endif /* PTY_H */
|