search for: hoststatus

Displaying 12 results from an estimated 12 matches for "hoststatus".

Did you mean: host_status
2010 Feb 22
2
ld: Unsatisfied symbol "options" in file ./libssh.a[hostfile.o]
...xnet -lsec -lgssapi_krb5 -lkrb5 -lpthread ld: Unsatisfied symbol "options" in file ./libssh.a[hostfile.o] 1 errors." The following is my codes: I have externed Options options like " extern Options options" in hostfile.c .......... extern Options options .......... static HostStatus check_host_in_hostfile_by_key_or_type(const char *filename, const char *host, const Key *key, int keytype, Key *found, int *numret) { FILE *f; char line[8192]; int linenum = 0; u_int kbits; char *cp, *cp2, *hashed_host; HostStatus end_return;...
2005 Jul 07
0
openssh and nsswitch integration in FreeBSD
...I'd like to describe some details here. I'll be glad to correct or change some things if you wish. The idea is to replace system-wide known-hosts file with nsswitch source. After examining openssh port, I've found 2 basic functions, which handle the known-hosts files (hostfile.h): HostStatus check_host_in_hostfile(const char *, const char *, const Key *, Key *, int *); int lookup_key_in_hostfile_by_type(const char *, const char *, int, Key *, int *); As far as I know, all other routines, that deal with these files are seem to be built on top of these 2 functions. So I'd like...
2006 Feb 04
2
[PATCH] allow user to update changed key in known_hosts
...00000 +0100 +++ openssh-4.3p1-patch/sshconnect.c 2006-02-04 16:42:04.000000000 +0100 @@ -51,6 +51,9 @@ static int show_other_keys(const char *, Key *); static void warn_changed_key(Key *); +static int ask_connect_with_new_key(const char *host, Key *host_key, + const char* ip, const char* type, HostStatus ip_status, + const char *user_hostfile); /* * Connect to the given ssh server using a proxy command. @@ -524,10 +527,9 @@ Key *file_key; const char *type = key_type(host_key); char *ip = NULL; - char hostline[1000], *hostp, *fp; HostStatus host_status; HostStatus ip_status; - int r,...
2004 Oct 03
0
[patch] tell user about hosts with same key
...st); + + return hostlist; +} + int lookup_key_in_hostfile_by_type(const char *filename, const char *host, int keytype, Key *found, int *numret) --- hostfile.h 2004/10/02 21:45:51 1.1 +++ hostfile.h 2004/10/02 21:56:52 @@ -18,11 +18,18 @@ HOST_OK, HOST_NEW, HOST_CHANGED, HOST_FOUND } HostStatus; +typedef struct HostList { + char *host; + struct HostList *next; +} HostList; + int hostfile_read_key(char **, u_int *, Key *); HostStatus check_host_in_hostfile(const char *, const char *, const Key *, Key *, int *); int add_host_to_hostfile(const char *, const char *, const Key *);...
2002 Jul 04
4
Chroot patch (v3.4p1)
The following is a patch I've been working on to support a "ChrootUser" option in the sshd_config file. I was looking for a way to offer sftp access and at the same time restict interactive shell access. This patch is a necessary first step (IMO). It applies clean with 'patch -l'. Also attached is a shell script that helps to build a chrooted home dir on a RedHat 7.2
2007 Sep 07
0
Public key reading abstraction (to allow future work)
...odified file 'auth.h' --- auth.h 2007-07-30 09:54:36 +0000 +++ auth.h 2007-08-02 12:02:24 +0000 @@ -166,8 +166,6 @@ char *authorized_keys_file(struct passwd *); char *authorized_keys_file2(struct passwd *); -int -secure_filename(FILE *, const char *, struct passwd *, char *, size_t); HostStatus check_key_in_hostfiles(struct passwd *, Key *, const char *, === modified file 'auth2-pubkey.c' --- auth2-pubkey.c 2007-07-30 09:54:36 +0000 +++ auth2-pubkey.c 2007-08-02 12:19:19 +0000 @@ -183,34 +183,21 @@ int found_key = 0; FILE *f; u_long linenum = 0; - struct stat st; Key *fo...
2009 Sep 30
1
SCSI driver for VMware's virtual HBA - V5.
...riptor off and pass the completion back > + * to the SCSI mid layer. > + */ > +static void pvscsi_complete_request(struct pvscsi_adapter *adapter, > + const struct PVSCSIRingCmpDesc *e) > +{ > + struct pvscsi_ctx *ctx; > + struct scsi_cmnd *cmd; > + u32 btstat = e->hostStatus; > + u32 sdstat = e->scsiStatus; > + > + ctx = pvscsi_get_context(adapter, e->context); > + cmd = ctx->cmd; > + pvscsi_unmap_buffers(adapter, ctx); > + pvscsi_release_context(adapter, ctx); > + cmd->result = 0; > + > + if (sdstat != SAM_STAT_GOOD && &g...
2009 Sep 30
1
SCSI driver for VMware's virtual HBA - V5.
...riptor off and pass the completion back > + * to the SCSI mid layer. > + */ > +static void pvscsi_complete_request(struct pvscsi_adapter *adapter, > + const struct PVSCSIRingCmpDesc *e) > +{ > + struct pvscsi_ctx *ctx; > + struct scsi_cmnd *cmd; > + u32 btstat = e->hostStatus; > + u32 sdstat = e->scsiStatus; > + > + ctx = pvscsi_get_context(adapter, e->context); > + cmd = ctx->cmd; > + pvscsi_unmap_buffers(adapter, ctx); > + pvscsi_release_context(adapter, ctx); > + cmd->result = 0; > + > + if (sdstat != SAM_STAT_GOOD && &g...
2009 Oct 13
1
SCSI driver for VMware's virtual HBA - V6.
...+ } +} + +/* + * Pull a completion descriptor off and pass the completion back + * to the SCSI mid layer. + */ +static void pvscsi_complete_request(struct pvscsi_adapter *adapter, + const struct PVSCSIRingCmpDesc *e) +{ + struct pvscsi_ctx *ctx; + struct scsi_cmnd *cmd; + u32 btstat = e->hostStatus; + u32 sdstat = e->scsiStatus; + + ctx = pvscsi_get_context(adapter, e->context); + cmd = ctx->cmd; + pvscsi_unmap_buffers(adapter, ctx); + pvscsi_release_context(adapter, ctx); + cmd->result = 0; + + if (sdstat != SAM_STAT_GOOD && + (btstat == BTSTAT_SUCCESS || + btsta...
2009 Oct 13
1
SCSI driver for VMware's virtual HBA - V6.
...+ } +} + +/* + * Pull a completion descriptor off and pass the completion back + * to the SCSI mid layer. + */ +static void pvscsi_complete_request(struct pvscsi_adapter *adapter, + const struct PVSCSIRingCmpDesc *e) +{ + struct pvscsi_ctx *ctx; + struct scsi_cmnd *cmd; + u32 btstat = e->hostStatus; + u32 sdstat = e->scsiStatus; + + ctx = pvscsi_get_context(adapter, e->context); + cmd = ctx->cmd; + pvscsi_unmap_buffers(adapter, ctx); + pvscsi_release_context(adapter, ctx); + cmd->result = 0; + + if (sdstat != SAM_STAT_GOOD && + (btstat == BTSTAT_SUCCESS || + btsta...
2012 Dec 27
3
[PATCH] hostfile: list known names (if any) for new hostkeys
...eys { + struct hostkey_entry *entries; + u_int num_entries; +}; struct hostkeys *init_hostkeys(void); -void load_hostkeys(struct hostkeys *, const char *, const char *); +void load_hostkeys(struct hostkeys *, const char *, const Key *, const char *); void free_hostkeys(struct hostkeys *); HostStatus check_key_in_hostkeys(struct hostkeys *, Key *, diff --git a/sshconnect.c b/sshconnect.c index 07800a6..62306ac 100644 --- a/sshconnect.c +++ b/sshconnect.c @@ -718,13 +718,13 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port, Key *raw_key = NULL; char *ip = NULL, *host...
2001 Nov 06
13
OpenSSH 3.0
OpenSSH 3.0 has just been released. It will be available from the mirrors listed at http://www.openssh.com/ shortly. OpenSSH is a 100% complete SSH protocol version 1.3, 1.5 and 2.0 implementation and includes sftp client and server support. This release contains many portability bug-fixes (listed in the ChangeLog) as well as several new features (listed below). We would like to thank the