forked from open-quantum-safe/openssh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated base of Branch x25519 to OpenSSH v9.8p1
- Loading branch information
Showing
117 changed files
with
4,882 additions
and
3,490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* $OpenBSD: addr.c,v 1.7 2023/03/27 03:31:05 djm Exp $ */ | ||
/* $OpenBSD: addr.c,v 1.8 2024/04/02 09:29:31 deraadt Exp $ */ | ||
|
||
/* | ||
* Copyright (c) 2004-2008 Damien Miller <[email protected]> | ||
|
@@ -27,6 +27,7 @@ | |
#include <string.h> | ||
#include <stdlib.h> | ||
#include <stdio.h> | ||
#include <limits.h> | ||
|
||
#include "addr.h" | ||
|
||
|
@@ -457,8 +458,9 @@ int | |
addr_pton_cidr(const char *p, struct xaddr *n, u_int *l) | ||
{ | ||
struct xaddr tmp; | ||
long unsigned int masklen = 999; | ||
char addrbuf[64], *mp, *cp; | ||
u_int masklen = 999; | ||
char addrbuf[64], *mp; | ||
const char *errstr; | ||
|
||
/* Don't modify argument */ | ||
if (p == NULL || strlcpy(addrbuf, p, sizeof(addrbuf)) >= sizeof(addrbuf)) | ||
|
@@ -467,8 +469,8 @@ addr_pton_cidr(const char *p, struct xaddr *n, u_int *l) | |
if ((mp = strchr(addrbuf, '/')) != NULL) { | ||
*mp = '\0'; | ||
mp++; | ||
masklen = strtoul(mp, &cp, 10); | ||
if (*mp < '0' || *mp > '9' || *cp != '\0' || masklen > 128) | ||
masklen = (u_int)strtonum(mp, 0, INT_MAX, &errstr); | ||
if (errstr) | ||
return -1; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* $OpenBSD: auth-rhosts.c,v 1.57 2022/12/09 00:17:40 dtucker Exp $ */ | ||
/* $OpenBSD: auth-rhosts.c,v 1.58 2024/05/17 00:30:23 djm Exp $ */ | ||
/* | ||
* Author: Tatu Ylonen <[email protected]> | ||
* Copyright (c) 1995 Tatu Ylonen <[email protected]>, Espoo, Finland | ||
|
@@ -46,7 +46,6 @@ | |
|
||
/* import */ | ||
extern ServerOptions options; | ||
extern int use_privsep; | ||
|
||
/* | ||
* This function processes an rhosts-style file (.rhosts, .shosts, or | ||
|
Oops, something went wrong.