diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rwxr-xr-x | config.sub | 4 | ||||
-rw-r--r-- | configure.ac | 28 | ||||
-rw-r--r-- | openbsd-compat/base64.c | 9 | ||||
-rw-r--r-- | openbsd-compat/base64.h | 11 |
5 files changed, 36 insertions, 19 deletions
@@ -86,6 +86,7 @@ | |||
86 | - (djm) Rest of Bug #499: Import a basename() function from OpenBSD libc | 86 | - (djm) Rest of Bug #499: Import a basename() function from OpenBSD libc |
87 | - (djm) Bug #494: Allow multiple accounts on Windows 9x/Me; | 87 | - (djm) Bug #494: Allow multiple accounts on Windows 9x/Me; |
88 | From vinschen@redhat.com | 88 | From vinschen@redhat.com |
89 | - (djm) Bug #456: Support for NEC SX6 with Unicos; from wendyp@cray.com | ||
89 | 90 | ||
90 | 20030211 | 91 | 20030211 |
91 | - (djm) Cygwin needs libcrypt too. Patch from vinschen@redhat.com | 92 | - (djm) Cygwin needs libcrypt too. Patch from vinschen@redhat.com |
@@ -1186,4 +1187,4 @@ | |||
1186 | save auth method before monitor_reset_key_state(); bugzilla bug #284; | 1187 | save auth method before monitor_reset_key_state(); bugzilla bug #284; |
1187 | ok provos@ | 1188 | ok provos@ |
1188 | 1189 | ||
1189 | $Id: ChangeLog,v 1.2620 2003/02/24 02:04:01 djm Exp $ | 1190 | $Id: ChangeLog,v 1.2621 2003/02/24 04:45:42 djm Exp $ |
diff --git a/config.sub b/config.sub index 9ff085efa..a03c1d15a 100755 --- a/config.sub +++ b/config.sub | |||
@@ -887,6 +887,10 @@ case $basic_machine in | |||
887 | basic_machine=sv1-cray | 887 | basic_machine=sv1-cray |
888 | os=-unicos | 888 | os=-unicos |
889 | ;; | 889 | ;; |
890 | sx*-nec) | ||
891 | basic_machine=sx6-nec | ||
892 | os=-sysv | ||
893 | ;; | ||
890 | symmetry) | 894 | symmetry) |
891 | basic_machine=i386-sequent | 895 | basic_machine=i386-sequent |
892 | os=-dynix | 896 | os=-dynix |
diff --git a/configure.ac b/configure.ac index 20110761b..bdf80288e 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.108 2003/02/24 01:55:55 djm Exp $ | 1 | # $Id: configure.ac,v 1.109 2003/02/24 04:45:43 djm Exp $ |
2 | 2 | ||
3 | AC_INIT | 3 | AC_INIT |
4 | AC_CONFIG_SRCDIR([ssh.c]) | 4 | AC_CONFIG_SRCDIR([ssh.c]) |
@@ -600,18 +600,20 @@ AC_ARG_WITH(tcp-wrappers, | |||
600 | ] | 600 | ] |
601 | ) | 601 | ) |
602 | 602 | ||
603 | dnl Checks for library functions. | 603 | dnl Checks for library functions. Please keep in alphabetical order |
604 | AC_CHECK_FUNCS(arc4random b64_ntop bcopy basename bindresvport_sa \ | 604 | AC_CHECK_FUNCS(\ |
605 | clock fchmod fchown freeaddrinfo futimes gai_strerror \ | 605 | arc4random __b64_ntop b64_ntop __b64_pton b64_pton basename bcopy \ |
606 | getaddrinfo getcwd getgrouplist getnameinfo getopt getpeereid\ | 606 | bindresvport_sa clock fchmod fchown freeaddrinfo futimes \ |
607 | getrlimit getrusage getttyent glob inet_aton inet_ntoa \ | 607 | gai_strerror getaddrinfo getcwd getgrouplist getnameinfo getopt \ |
608 | inet_ntop innetgr login_getcapbool md5_crypt memmove mkdtemp \ | 608 | getpeereid _getpty getrlimit getrusage getttyent glob inet_aton \ |
609 | mmap ngetaddrinfo nsleep openpty ogetaddrinfo pstat readpassphrase \ | 609 | inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \ |
610 | realpath recvmsg rresvport_af sendmsg setdtablesize setegid \ | 610 | mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openpty pstat \ |
611 | setenv seteuid setgroups setlogin setproctitle setresgid setreuid \ | 611 | readpassphrase realpath recvmsg rresvport_af sendmsg setdtablesize \ |
612 | setrlimit setsid setpcred setvbuf sigaction sigvec snprintf \ | 612 | setegid setenv seteuid setgroups setlogin setpcred setproctitle \ |
613 | socketpair strerror strlcat strlcpy strmode strnvis sysconf tcgetpgrp \ | 613 | setresgid setreuid setrlimit setsid setvbuf sigaction sigvec \ |
614 | truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty) | 614 | snprintf socketpair strerror strlcat strlcpy strmode strnvis \ |
615 | sysconf tcgetpgrp truncate utimes vhangup vsnprintf waitpid \ | ||
616 | ) | ||
615 | 617 | ||
616 | AC_SEARCH_LIBS(nanosleep, rt posix4, AC_DEFINE(HAVE_NANOSLEEP)) | 618 | AC_SEARCH_LIBS(nanosleep, rt posix4, AC_DEFINE(HAVE_NANOSLEEP)) |
617 | 619 | ||
diff --git a/openbsd-compat/base64.c b/openbsd-compat/base64.c index 005170b80..91a5ab0ed 100644 --- a/openbsd-compat/base64.c +++ b/openbsd-compat/base64.c | |||
@@ -44,7 +44,7 @@ | |||
44 | 44 | ||
45 | #include "includes.h" | 45 | #include "includes.h" |
46 | 46 | ||
47 | #if !defined(HAVE_B64_NTOP) && !defined(HAVE___B64_NTOP) | 47 | #if (!defined(HAVE_B64_NTOP) && !defined(HAVE___B64_NTOP)) || (!defined(HAVE_B64_PTON) && !defined(HAVE___B64_PTON)) |
48 | 48 | ||
49 | #include <sys/types.h> | 49 | #include <sys/types.h> |
50 | #include <sys/param.h> | 50 | #include <sys/param.h> |
@@ -130,6 +130,7 @@ static const char Pad64 = '='; | |||
130 | characters followed by one "=" padding character. | 130 | characters followed by one "=" padding character. |
131 | */ | 131 | */ |
132 | 132 | ||
133 | #if !defined(HAVE_B64_NTOP) && !defined(HAVE___B64_NTOP) | ||
133 | int | 134 | int |
134 | b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize) | 135 | b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize) |
135 | { | 136 | { |
@@ -190,6 +191,9 @@ b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize) | |||
190 | target[datalength] = '\0'; /* Returned value doesn't count \0. */ | 191 | target[datalength] = '\0'; /* Returned value doesn't count \0. */ |
191 | return (datalength); | 192 | return (datalength); |
192 | } | 193 | } |
194 | #endif /* !defined(HAVE_B64_NTOP) && !defined(HAVE___B64_NTOP) */ | ||
195 | |||
196 | #if !defined(HAVE_B64_PTON) && !defined(HAVE___B64_PTON) | ||
193 | 197 | ||
194 | /* skips all whitespace anywhere. | 198 | /* skips all whitespace anywhere. |
195 | converts characters, four at a time, starting at (or after) | 199 | converts characters, four at a time, starting at (or after) |
@@ -314,4 +318,5 @@ b64_pton(char const *src, u_char *target, size_t targsize) | |||
314 | return (tarindex); | 318 | return (tarindex); |
315 | } | 319 | } |
316 | 320 | ||
317 | #endif /* !defined(HAVE_B64_NTOP) && !defined(HAVE___B64_NTOP) */ | 321 | #endif /* !defined(HAVE_B64_PTON) && !defined(HAVE___B64_PTON) */ |
322 | #endif | ||
diff --git a/openbsd-compat/base64.h b/openbsd-compat/base64.h index c92e70ea0..72db3ffc7 100644 --- a/openbsd-compat/base64.h +++ b/openbsd-compat/base64.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: base64.h,v 1.3 2002/02/26 16:59:59 stevesk Exp $ */ | 1 | /* $Id: base64.h,v 1.4 2003/02/24 04:45:43 djm Exp $ */ |
2 | 2 | ||
3 | #ifndef _BSD_BASE64_H | 3 | #ifndef _BSD_BASE64_H |
4 | #define _BSD_BASE64_H | 4 | #define _BSD_BASE64_H |
@@ -9,10 +9,15 @@ | |||
9 | # ifndef HAVE_B64_NTOP | 9 | # ifndef HAVE_B64_NTOP |
10 | int b64_ntop(u_char const *src, size_t srclength, char *target, | 10 | int b64_ntop(u_char const *src, size_t srclength, char *target, |
11 | size_t targsize); | 11 | size_t targsize); |
12 | int b64_pton(char const *src, u_char *target, size_t targsize); | ||
13 | # endif /* !HAVE_B64_NTOP */ | 12 | # endif /* !HAVE_B64_NTOP */ |
14 | # define __b64_ntop b64_ntop | 13 | # define __b64_ntop b64_ntop |
15 | # define __b64_pton b64_pton | ||
16 | #endif /* HAVE___B64_NTOP */ | 14 | #endif /* HAVE___B64_NTOP */ |
17 | 15 | ||
16 | #ifndef HAVE___B64_PTON | ||
17 | # ifndef HAVE_B64_PTON | ||
18 | int b64_pton(char const *src, u_char *target, size_t targsize); | ||
19 | # endif /* !HAVE_B64_PTON */ | ||
20 | # define __b64_pton b64_pton | ||
21 | #endif /* HAVE___B64_PTON */ | ||
22 | |||
18 | #endif /* _BSD_BASE64_H */ | 23 | #endif /* _BSD_BASE64_H */ |