Skip to content

Commit 957cb0f

Browse files
committed
Minor resync with upstream
Reorder definitions add whitespace to eliminate diffs vs upstream.
1 parent 4922635 commit 957cb0f

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

auth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ allowed_user(struct ssh *ssh, struct passwd * pw)
9898
{
9999
struct stat st;
100100
const char *hostname = NULL, *ipaddr = NULL;
101-
u_int i;
102101
int r;
102+
u_int i;
103103

104104
/* Shouldn't be called if pw is NULL, but better safe than sorry... */
105105
if (!pw || !pw->pw_name)

misc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ void sock_set_v6only(int);
118118

119119
struct passwd *pwcopy(struct passwd *);
120120
void pwfree(struct passwd *); /* NB. only use with pwcopy */
121+
121122
const char *ssh_gai_strerror(int);
122123

123124
typedef void privdrop_fn(struct passwd *);

pathnames.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
#define _PATH_SERVER_CONFIG_FILE SSHDIR "/sshd_config"
3838
#define _PATH_HOST_CONFIG_FILE SSHDIR "/ssh_config"
3939
#define _PATH_HOST_ECDSA_KEY_FILE SSHDIR "/ssh_host_ecdsa_key"
40-
#define _PATH_HOST_ED25519_KEY_FILE SSHDIR "/ssh_host_ed25519_key"
4140
#define _PATH_HOST_RSA_KEY_FILE SSHDIR "/ssh_host_rsa_key"
41+
#define _PATH_HOST_ED25519_KEY_FILE SSHDIR "/ssh_host_ed25519_key"
4242
#define _PATH_DH_MODULI SSHDIR "/moduli"
4343

4444
#ifndef _PATH_SSH_PROGRAM
@@ -169,6 +169,9 @@
169169
#ifndef _PATH_SFTP_SERVER
170170
#define _PATH_SFTP_SERVER "/usr/libexec/sftp-server"
171171
#endif
172+
#ifndef _PATH_LS
173+
#define _PATH_LS "ls"
174+
#endif
172175

173176
/* chroot directory for unprivileged user when UsePrivilegeSeparation=yes */
174177
#ifndef _PATH_PRIVSEP_CHROOT_DIR
@@ -177,11 +180,7 @@
177180

178181
/* for passwd change */
179182
#ifndef _PATH_PASSWD_PROG
180-
#define _PATH_PASSWD_PROG "/usr/bin/passwd"
181-
#endif
182-
183-
#ifndef _PATH_LS
184-
#define _PATH_LS "ls"
183+
#define _PATH_PASSWD_PROG "/usr/bin/passwd"
185184
#endif
186185

187186
/* Askpass program define */

sshbuf-getput-basic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1616
*/
1717

18-
#define SSHBUF_INTERNAL
1918
#include "includes.h"
2019

2120
#include <sys/types.h>
@@ -27,6 +26,7 @@
2726
#include <stdint.h>
2827

2928
#include "ssherr.h"
29+
#define SSHBUF_INTERNAL
3030
#include "sshbuf.h"
3131

3232
int

sshbuf-getput-crypto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1616
*/
1717

18-
#define SSHBUF_INTERNAL
1918
#include "includes.h"
2019

2120
#include <sys/types.h>
@@ -30,6 +29,7 @@
3029
#endif /* OPENSSL_HAS_ECC */
3130

3231
#include "ssherr.h"
32+
#define SSHBUF_INTERNAL
3333
#include "sshbuf.h"
3434

3535
int

sshbuf.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <sys/types.h>
2222
#include <stdarg.h>
2323
#include <stdio.h>
24+
2425
#ifdef WITH_OPENSSL
2526
# include <openssl/bn.h>
2627
# include <openssl/evp.h>

0 commit comments

Comments
 (0)