[channels.c kex.h key.c monitor.c monitor_wrap.c radix.c uuencode.c]
     signed vs unsigned from -pedantic; ok henning@
This commit is contained in:
Damien Miller 2002-09-12 09:49:15 +10:00
parent 25162f2518
commit a10f56151b
8 changed files with 30 additions and 23 deletions

View File

@ -8,6 +8,9 @@
[monitor_wrap.c monitor_wrap.h] [monitor_wrap.c monitor_wrap.h]
kerberos support for privsep. confirmed to work by lha@stacken.kth.se kerberos support for privsep. confirmed to work by lha@stacken.kth.se
patch from markus patch from markus
- markus@cvs.openbsd.org 2002/09/09 14:54:15
[channels.c kex.h key.c monitor.c monitor_wrap.c radix.c uuencode.c]
signed vs unsigned from -pedantic; ok henning@
20020911 20020911
- (djm) Sync openbsd-compat with OpenBSD -current - (djm) Sync openbsd-compat with OpenBSD -current
@ -1628,4 +1631,4 @@
- (stevesk) entropy.c: typo in debug message - (stevesk) entropy.c: typo in debug message
- (djm) ssh-keygen -i needs seeded RNG; report from markus@ - (djm) ssh-keygen -i needs seeded RNG; report from markus@
$Id: ChangeLog,v 1.2453 2002/09/11 23:47:29 djm Exp $ $Id: ChangeLog,v 1.2454 2002/09/11 23:49:15 djm Exp $

View File

@ -39,7 +39,7 @@
*/ */
#include "includes.h" #include "includes.h"
RCSID("$OpenBSD: channels.c,v 1.180 2002/07/04 08:12:15 deraadt Exp $"); RCSID("$OpenBSD: channels.c,v 1.181 2002/09/09 14:54:14 markus Exp $");
#include "ssh.h" #include "ssh.h"
#include "ssh1.h" #include "ssh1.h"
@ -875,7 +875,7 @@ channel_pre_x11_open(Channel *c, fd_set * readset, fd_set * writeset)
static int static int
channel_decode_socks4(Channel *c, fd_set * readset, fd_set * writeset) channel_decode_socks4(Channel *c, fd_set * readset, fd_set * writeset)
{ {
u_char *p, *host; char *p, *host;
int len, have, i, found; int len, have, i, found;
char username[256]; char username[256];
struct { struct {

4
kex.h
View File

@ -1,4 +1,4 @@
/* $OpenBSD: kex.h,v 1.31 2002/05/16 22:02:50 markus Exp $ */ /* $OpenBSD: kex.h,v 1.32 2002/09/09 14:54:14 markus Exp $ */
/* /*
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
@ -96,7 +96,7 @@ struct Newkeys {
}; };
struct Kex { struct Kex {
u_char *session_id; u_char *session_id;
int session_id_len; u_int session_id_len;
Newkeys *newkeys[MODE_MAX]; Newkeys *newkeys[MODE_MAX];
int we_need; int we_need;
int server; int server;

5
key.c
View File

@ -32,7 +32,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "includes.h" #include "includes.h"
RCSID("$OpenBSD: key.c,v 1.48 2002/07/04 10:41:47 markus Exp $"); RCSID("$OpenBSD: key.c,v 1.49 2002/09/09 14:54:14 markus Exp $");
#include <openssl/evp.h> #include <openssl/evp.h>
@ -494,7 +494,8 @@ key_write(Key *key, FILE *f)
{ {
int n, success = 0; int n, success = 0;
u_int len, bits = 0; u_int len, bits = 0;
u_char *blob, *uu; u_char *blob;
char *uu;
if (key->type == KEY_RSA1 && key->rsa != NULL) { if (key->type == KEY_RSA1 && key->rsa != NULL) {
/* size of modulus 'n' */ /* size of modulus 'n' */

View File

@ -25,7 +25,7 @@
*/ */
#include "includes.h" #include "includes.h"
RCSID("$OpenBSD: monitor.c,v 1.25 2002/09/09 06:48:06 itojun Exp $"); RCSID("$OpenBSD: monitor.c,v 1.26 2002/09/09 14:54:15 markus Exp $");
#include <openssl/dh.h> #include <openssl/dh.h>
@ -131,8 +131,8 @@ static BIGNUM *ssh1_challenge = NULL; /* used for ssh1 rsa auth */
static u_char *key_blob = NULL; static u_char *key_blob = NULL;
static u_int key_bloblen = 0; static u_int key_bloblen = 0;
static int key_blobtype = MM_NOKEY; static int key_blobtype = MM_NOKEY;
static u_char *hostbased_cuser = NULL; static char *hostbased_cuser = NULL;
static u_char *hostbased_chost = NULL; static char *hostbased_chost = NULL;
static char *auth_method = "unknown"; static char *auth_method = "unknown";
static int session_id2_len = 0; static int session_id2_len = 0;
static u_char *session_id2 = NULL; static u_char *session_id2 = NULL;
@ -758,7 +758,8 @@ int
mm_answer_keyallowed(int socket, Buffer *m) mm_answer_keyallowed(int socket, Buffer *m)
{ {
Key *key; Key *key;
u_char *cuser, *chost, *blob; char *cuser, *chost;
u_char *blob;
u_int bloblen; u_int bloblen;
enum mm_keytype type = 0; enum mm_keytype type = 0;
int allowed = 0; int allowed = 0;
@ -834,7 +835,7 @@ static int
monitor_valid_userblob(u_char *data, u_int datalen) monitor_valid_userblob(u_char *data, u_int datalen)
{ {
Buffer b; Buffer b;
u_char *p; char *p;
u_int len; u_int len;
int fail = 0; int fail = 0;
@ -887,11 +888,11 @@ monitor_valid_userblob(u_char *data, u_int datalen)
} }
static int static int
monitor_valid_hostbasedblob(u_char *data, u_int datalen, u_char *cuser, monitor_valid_hostbasedblob(u_char *data, u_int datalen, char *cuser,
u_char *chost) char *chost)
{ {
Buffer b; Buffer b;
u_char *p; char *p;
u_int len; u_int len;
int fail = 0; int fail = 0;

View File

@ -25,7 +25,7 @@
*/ */
#include "includes.h" #include "includes.h"
RCSID("$OpenBSD: monitor_wrap.c,v 1.17 2002/09/09 06:48:06 itojun Exp $"); RCSID("$OpenBSD: monitor_wrap.c,v 1.18 2002/09/09 14:54:15 markus Exp $");
#include <openssl/bn.h> #include <openssl/bn.h>
#include <openssl/dh.h> #include <openssl/dh.h>
@ -599,7 +599,7 @@ int
mm_pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) mm_pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen)
{ {
Buffer m; Buffer m;
u_char *p; char *p;
int success = 0; int success = 0;
buffer_init(&m); buffer_init(&m);

View File

@ -26,7 +26,7 @@
#include "includes.h" #include "includes.h"
#include "uuencode.h" #include "uuencode.h"
RCSID("$OpenBSD: radix.c,v 1.21 2002/06/19 00:27:55 deraadt Exp $"); RCSID("$OpenBSD: radix.c,v 1.22 2002/09/09 14:54:15 markus Exp $");
#ifdef AFS #ifdef AFS
#include <krb.h> #include <krb.h>
@ -93,9 +93,10 @@ int
radix_to_creds(const char *buf, CREDENTIALS *creds) radix_to_creds(const char *buf, CREDENTIALS *creds)
{ {
Buffer b; Buffer b;
char c, version, *space, *p; u_char *space;
u_int endTime; char c, version, *p;
int len, blen, ret; u_int endTime, len;
int blen, ret;
ret = 0; ret = 0;
blen = strlen(buf); blen = strlen(buf);

View File

@ -23,9 +23,10 @@
*/ */
#include "includes.h" #include "includes.h"
RCSID("$OpenBSD: uuencode.c,v 1.16 2002/09/09 14:54:15 markus Exp $");
#include "xmalloc.h" #include "xmalloc.h"
#include "uuencode.h" #include "uuencode.h"
RCSID("$OpenBSD: uuencode.c,v 1.15 2002/03/04 17:27:39 stevesk Exp $");
int int
uuencode(u_char *src, u_int srclength, uuencode(u_char *src, u_int srclength,
@ -57,7 +58,7 @@ uudecode(const char *src, u_char *target, size_t targsize)
void void
dump_base64(FILE *fp, u_char *data, u_int len) dump_base64(FILE *fp, u_char *data, u_int len)
{ {
u_char *buf = xmalloc(2*len); char *buf = xmalloc(2*len);
int i, n; int i, n;
n = uuencode(data, len, buf, 2*len); n = uuencode(data, len, buf, 2*len);