mirror of git://anongit.mindrot.org/openssh.git
upstream: whitespace
OpenBSD-Commit-ID: bf9e4a1049562ee4322684fbdce07142f04fdbb7
This commit is contained in:
parent
0d96b1506b
commit
c283f29d23
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: gss-genr.c,v 1.28 2021/01/27 10:05:28 djm Exp $ */
|
/* $OpenBSD: gss-genr.c,v 1.29 2024/02/01 02:37:33 djm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001-2007 Simon Wilkinson. All rights reserved.
|
* Copyright (c) 2001-2007 Simon Wilkinson. All rights reserved.
|
||||||
|
@ -278,7 +278,7 @@ ssh_gssapi_check_mechanism(Gssctxt **ctx, gss_OID oid, const char *host)
|
||||||
gss_OID_desc spnego_oid = {6, (void *)"\x2B\x06\x01\x05\x05\x02"};
|
gss_OID_desc spnego_oid = {6, (void *)"\x2B\x06\x01\x05\x05\x02"};
|
||||||
|
|
||||||
/* RFC 4462 says we MUST NOT do SPNEGO */
|
/* RFC 4462 says we MUST NOT do SPNEGO */
|
||||||
if (oid->length == spnego_oid.length &&
|
if (oid->length == spnego_oid.length &&
|
||||||
(memcmp(oid->elements, spnego_oid.elements, oid->length) == 0))
|
(memcmp(oid->elements, spnego_oid.elements, oid->length) == 0))
|
||||||
return 0; /* false */
|
return 0; /* false */
|
||||||
|
|
||||||
|
@ -286,7 +286,7 @@ ssh_gssapi_check_mechanism(Gssctxt **ctx, gss_OID oid, const char *host)
|
||||||
ssh_gssapi_set_oid(*ctx, oid);
|
ssh_gssapi_set_oid(*ctx, oid);
|
||||||
major = ssh_gssapi_import_name(*ctx, host);
|
major = ssh_gssapi_import_name(*ctx, host);
|
||||||
if (!GSS_ERROR(major)) {
|
if (!GSS_ERROR(major)) {
|
||||||
major = ssh_gssapi_init_ctx(*ctx, 0, GSS_C_NO_BUFFER, &token,
|
major = ssh_gssapi_init_ctx(*ctx, 0, GSS_C_NO_BUFFER, &token,
|
||||||
NULL);
|
NULL);
|
||||||
gss_release_buffer(&minor, &token);
|
gss_release_buffer(&minor, &token);
|
||||||
if ((*ctx)->context != GSS_C_NO_CONTEXT)
|
if ((*ctx)->context != GSS_C_NO_CONTEXT)
|
||||||
|
@ -294,7 +294,7 @@ ssh_gssapi_check_mechanism(Gssctxt **ctx, gss_OID oid, const char *host)
|
||||||
GSS_C_NO_BUFFER);
|
GSS_C_NO_BUFFER);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GSS_ERROR(major))
|
if (GSS_ERROR(major))
|
||||||
ssh_gssapi_delete_ctx(ctx);
|
ssh_gssapi_delete_ctx(ctx);
|
||||||
|
|
||||||
return (!GSS_ERROR(major));
|
return (!GSS_ERROR(major));
|
||||||
|
|
4
nchan.c
4
nchan.c
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: nchan.c,v 1.74 2022/02/01 23:32:51 djm Exp $ */
|
/* $OpenBSD: nchan.c,v 1.75 2024/02/01 02:37:33 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved.
|
* Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved.
|
||||||
*
|
*
|
||||||
|
@ -349,7 +349,7 @@ chan_is_dead(struct ssh *ssh, Channel *c, int do_send)
|
||||||
if (c->flags & CHAN_LOCAL) {
|
if (c->flags & CHAN_LOCAL) {
|
||||||
debug2("channel %d: is dead (local)", c->self);
|
debug2("channel %d: is dead (local)", c->self);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (!(c->flags & CHAN_CLOSE_SENT)) {
|
if (!(c->flags & CHAN_CLOSE_SENT)) {
|
||||||
if (do_send) {
|
if (do_send) {
|
||||||
chan_send_close2(ssh, c);
|
chan_send_close2(ssh, c);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: session.c,v 1.336 2023/08/10 23:05:48 djm Exp $ */
|
/* $OpenBSD: session.c,v 1.337 2024/02/01 02:37:33 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
* All rights reserved
|
* All rights reserved
|
||||||
|
@ -1327,7 +1327,7 @@ safely_chroot(const char *path, uid_t uid)
|
||||||
memcpy(component, path, cp - path);
|
memcpy(component, path, cp - path);
|
||||||
component[cp - path] = '\0';
|
component[cp - path] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
debug3_f("checking '%s'", component);
|
debug3_f("checking '%s'", component);
|
||||||
|
|
||||||
if (stat(component, &st) != 0)
|
if (stat(component, &st) != 0)
|
||||||
|
|
44
sftp.c
44
sftp.c
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: sftp.c,v 1.236 2023/09/10 23:12:32 djm Exp $ */
|
/* $OpenBSD: sftp.c,v 1.237 2024/02/01 02:37:33 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
|
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
|
||||||
*
|
*
|
||||||
|
@ -177,24 +177,24 @@ struct CMD {
|
||||||
#define LOCAL 2
|
#define LOCAL 2
|
||||||
|
|
||||||
static const struct CMD cmds[] = {
|
static const struct CMD cmds[] = {
|
||||||
{ "bye", I_QUIT, NOARGS, NOARGS },
|
{ "bye", I_QUIT, NOARGS, NOARGS },
|
||||||
{ "cd", I_CHDIR, REMOTE, NOARGS },
|
{ "cd", I_CHDIR, REMOTE, NOARGS },
|
||||||
{ "chdir", I_CHDIR, REMOTE, NOARGS },
|
{ "chdir", I_CHDIR, REMOTE, NOARGS },
|
||||||
{ "chgrp", I_CHGRP, REMOTE, NOARGS },
|
{ "chgrp", I_CHGRP, REMOTE, NOARGS },
|
||||||
{ "chmod", I_CHMOD, REMOTE, NOARGS },
|
{ "chmod", I_CHMOD, REMOTE, NOARGS },
|
||||||
{ "chown", I_CHOWN, REMOTE, NOARGS },
|
{ "chown", I_CHOWN, REMOTE, NOARGS },
|
||||||
{ "copy", I_COPY, REMOTE, LOCAL },
|
{ "copy", I_COPY, REMOTE, LOCAL },
|
||||||
{ "cp", I_COPY, REMOTE, LOCAL },
|
{ "cp", I_COPY, REMOTE, LOCAL },
|
||||||
{ "df", I_DF, REMOTE, NOARGS },
|
{ "df", I_DF, REMOTE, NOARGS },
|
||||||
{ "dir", I_LS, REMOTE, NOARGS },
|
{ "dir", I_LS, REMOTE, NOARGS },
|
||||||
{ "exit", I_QUIT, NOARGS, NOARGS },
|
{ "exit", I_QUIT, NOARGS, NOARGS },
|
||||||
{ "get", I_GET, REMOTE, LOCAL },
|
{ "get", I_GET, REMOTE, LOCAL },
|
||||||
{ "help", I_HELP, NOARGS, NOARGS },
|
{ "help", I_HELP, NOARGS, NOARGS },
|
||||||
{ "lcd", I_LCHDIR, LOCAL, NOARGS },
|
{ "lcd", I_LCHDIR, LOCAL, NOARGS },
|
||||||
{ "lchdir", I_LCHDIR, LOCAL, NOARGS },
|
{ "lchdir", I_LCHDIR, LOCAL, NOARGS },
|
||||||
{ "lls", I_LLS, LOCAL, NOARGS },
|
{ "lls", I_LLS, LOCAL, NOARGS },
|
||||||
{ "lmkdir", I_LMKDIR, LOCAL, NOARGS },
|
{ "lmkdir", I_LMKDIR, LOCAL, NOARGS },
|
||||||
{ "ln", I_LINK, REMOTE, REMOTE },
|
{ "ln", I_LINK, REMOTE, REMOTE },
|
||||||
{ "lpwd", I_LPWD, LOCAL, NOARGS },
|
{ "lpwd", I_LPWD, LOCAL, NOARGS },
|
||||||
{ "ls", I_LS, REMOTE, NOARGS },
|
{ "ls", I_LS, REMOTE, NOARGS },
|
||||||
{ "lumask", I_LUMASK, NOARGS, NOARGS },
|
{ "lumask", I_LUMASK, NOARGS, NOARGS },
|
||||||
|
@ -203,17 +203,17 @@ static const struct CMD cmds[] = {
|
||||||
{ "mput", I_PUT, LOCAL, REMOTE },
|
{ "mput", I_PUT, LOCAL, REMOTE },
|
||||||
{ "progress", I_PROGRESS, NOARGS, NOARGS },
|
{ "progress", I_PROGRESS, NOARGS, NOARGS },
|
||||||
{ "put", I_PUT, LOCAL, REMOTE },
|
{ "put", I_PUT, LOCAL, REMOTE },
|
||||||
{ "pwd", I_PWD, REMOTE, NOARGS },
|
{ "pwd", I_PWD, REMOTE, NOARGS },
|
||||||
{ "quit", I_QUIT, NOARGS, NOARGS },
|
{ "quit", I_QUIT, NOARGS, NOARGS },
|
||||||
{ "reget", I_REGET, REMOTE, LOCAL },
|
{ "reget", I_REGET, REMOTE, LOCAL },
|
||||||
{ "rename", I_RENAME, REMOTE, REMOTE },
|
{ "rename", I_RENAME, REMOTE, REMOTE },
|
||||||
{ "reput", I_REPUT, LOCAL, REMOTE },
|
{ "reput", I_REPUT, LOCAL, REMOTE },
|
||||||
{ "rm", I_RM, REMOTE, NOARGS },
|
{ "rm", I_RM, REMOTE, NOARGS },
|
||||||
{ "rmdir", I_RMDIR, REMOTE, NOARGS },
|
{ "rmdir", I_RMDIR, REMOTE, NOARGS },
|
||||||
{ "symlink", I_SYMLINK, REMOTE, REMOTE },
|
{ "symlink", I_SYMLINK, REMOTE, REMOTE },
|
||||||
{ "version", I_VERSION, NOARGS, NOARGS },
|
{ "version", I_VERSION, NOARGS, NOARGS },
|
||||||
{ "!", I_SHELL, NOARGS, NOARGS },
|
{ "!", I_SHELL, NOARGS, NOARGS },
|
||||||
{ "?", I_HELP, NOARGS, NOARGS },
|
{ "?", I_HELP, NOARGS, NOARGS },
|
||||||
{ NULL, -1, -1, -1 }
|
{ NULL, -1, -1, -1 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: sshbuf-getput-crypto.c,v 1.10 2022/05/25 06:03:44 djm Exp $ */
|
/* $OpenBSD: sshbuf-getput-crypto.c,v 1.11 2024/02/01 02:37:33 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 Damien Miller
|
* Copyright (c) 2011 Damien Miller
|
||||||
*
|
*
|
||||||
|
@ -123,7 +123,7 @@ sshbuf_get_eckey(struct sshbuf *buf, EC_KEY *v)
|
||||||
SSHBUF_ABORT();
|
SSHBUF_ABORT();
|
||||||
return SSH_ERR_INTERNAL_ERROR;
|
return SSH_ERR_INTERNAL_ERROR;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif /* OPENSSL_HAS_ECC */
|
#endif /* OPENSSL_HAS_ECC */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue