summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--monitor.c6
-rw-r--r--monitor_wrap.c6
-rw-r--r--sshconnect2.c6
4 files changed, 16 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index e10a3c425..ba3e56d8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,9 @@
19 - markus@cvs.openbsd.org 2003/08/22 20:55:06 19 - markus@cvs.openbsd.org 2003/08/22 20:55:06
20 [LICENCE] 20 [LICENCE]
21 add Simon Wilkinson 21 add Simon Wilkinson
22 - deraadt@cvs.openbsd.org 2003/08/24 17:36:52
23 [monitor.c monitor_wrap.c sshconnect2.c]
24 64 bit cleanups; markus ok
22 - (dtucker) [Makefile.in acconfig.h auth-krb5.c auth-pam.c auth-pam.h 25 - (dtucker) [Makefile.in acconfig.h auth-krb5.c auth-pam.c auth-pam.h
23 configure.ac defines.h gss-serv-krb5.c session.c ssh-gss.h sshconnect1.c 26 configure.ac defines.h gss-serv-krb5.c session.c ssh-gss.h sshconnect1.c
24 sshconnect2.c] Add Portable GSSAPI support, patch by Simon Wilkinson. 27 sshconnect2.c] Add Portable GSSAPI support, patch by Simon Wilkinson.
@@ -894,4 +897,4 @@
894 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. 897 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
895 Report from murple@murple.net, diagnosis from dtucker@zip.com.au 898 Report from murple@murple.net, diagnosis from dtucker@zip.com.au
896 899
897$Id: ChangeLog,v 1.2911 2003/08/26 02:09:53 dtucker Exp $ 900$Id: ChangeLog,v 1.2912 2003/08/26 02:10:48 dtucker Exp $
diff --git a/monitor.c b/monitor.c
index f90a90461..e08181f74 100644
--- a/monitor.c
+++ b/monitor.c
@@ -25,7 +25,7 @@
25 */ 25 */
26 26
27#include "includes.h" 27#include "includes.h"
28RCSID("$OpenBSD: monitor.c,v 1.46 2003/08/22 10:56:09 markus Exp $"); 28RCSID("$OpenBSD: monitor.c,v 1.47 2003/08/24 17:36:52 deraadt Exp $");
29 29
30#include <openssl/dh.h> 30#include <openssl/dh.h>
31 31
@@ -1817,8 +1817,10 @@ mm_answer_gss_accept_ctx(int socket, Buffer *m)
1817 gss_buffer_desc out = GSS_C_EMPTY_BUFFER; 1817 gss_buffer_desc out = GSS_C_EMPTY_BUFFER;
1818 OM_uint32 major,minor; 1818 OM_uint32 major,minor;
1819 OM_uint32 flags = 0; /* GSI needs this */ 1819 OM_uint32 flags = 0; /* GSI needs this */
1820 u_int len;
1820 1821
1821 in.value = buffer_get_string(m, &in.length); 1822 in.value = buffer_get_string(m, &len);
1823 in.length = len;
1822 major = ssh_gssapi_accept_ctx(gsscontext, &in, &out, &flags); 1824 major = ssh_gssapi_accept_ctx(gsscontext, &in, &out, &flags);
1823 xfree(in.value); 1825 xfree(in.value);
1824 1826
diff --git a/monitor_wrap.c b/monitor_wrap.c
index 4073905f6..82649a7cc 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -25,7 +25,7 @@
25 */ 25 */
26 26
27#include "includes.h" 27#include "includes.h"
28RCSID("$OpenBSD: monitor_wrap.c,v 1.29 2003/08/22 10:56:09 markus Exp $"); 28RCSID("$OpenBSD: monitor_wrap.c,v 1.30 2003/08/24 17:36:52 deraadt Exp $");
29 29
30#include <openssl/bn.h> 30#include <openssl/bn.h>
31#include <openssl/dh.h> 31#include <openssl/dh.h>
@@ -1134,6 +1134,7 @@ mm_ssh_gssapi_accept_ctx(Gssctxt *ctx, gss_buffer_desc *in,
1134{ 1134{
1135 Buffer m; 1135 Buffer m;
1136 OM_uint32 major; 1136 OM_uint32 major;
1137 u_int len;
1137 1138
1138 buffer_init(&m); 1139 buffer_init(&m);
1139 buffer_put_string(&m, in->value, in->length); 1140 buffer_put_string(&m, in->value, in->length);
@@ -1142,7 +1143,8 @@ mm_ssh_gssapi_accept_ctx(Gssctxt *ctx, gss_buffer_desc *in,
1142 mm_request_receive_expect(pmonitor->m_recvfd, MONITOR_ANS_GSSSTEP, &m); 1143 mm_request_receive_expect(pmonitor->m_recvfd, MONITOR_ANS_GSSSTEP, &m);
1143 1144
1144 major = buffer_get_int(&m); 1145 major = buffer_get_int(&m);
1145 out->value = buffer_get_string(&m, &out->length); 1146 out->value = buffer_get_string(&m, &len);
1147 out->length = len;
1146 if (flags) 1148 if (flags)
1147 *flags = buffer_get_int(&m); 1149 *flags = buffer_get_int(&m);
1148 1150
diff --git a/sshconnect2.c b/sshconnect2.c
index 558a0a749..22795395e 100644
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: sshconnect2.c,v 1.122 2003/08/22 13:20:03 markus Exp $"); 26RCSID("$OpenBSD: sshconnect2.c,v 1.123 2003/08/24 17:36:52 deraadt Exp $");
27 27
28#include "openbsd-compat/sys-queue.h" 28#include "openbsd-compat/sys-queue.h"
29 29
@@ -647,12 +647,14 @@ input_gssapi_errtok(int type, u_int32_t plen, void *ctxt)
647 gss_buffer_desc send_tok = GSS_C_EMPTY_BUFFER; 647 gss_buffer_desc send_tok = GSS_C_EMPTY_BUFFER;
648 gss_buffer_desc recv_tok; 648 gss_buffer_desc recv_tok;
649 OM_uint32 status, ms; 649 OM_uint32 status, ms;
650 u_int len;
650 651
651 if (authctxt == NULL) 652 if (authctxt == NULL)
652 fatal("input_gssapi_response: no authentication context"); 653 fatal("input_gssapi_response: no authentication context");
653 gssctxt = authctxt->methoddata; 654 gssctxt = authctxt->methoddata;
654 655
655 recv_tok.value = packet_get_string(&recv_tok.length); 656 recv_tok.value = packet_get_string(&len);
657 recv_tok.length = len;
656 658
657 packet_check_eom(); 659 packet_check_eom();
658 660