diff options
author | Colin Watson <cjwatson@debian.org> | 2010-01-24 22:46:54 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2010-01-24 22:46:54 +0000 |
commit | 59247ecde39f2d826a94ab07f6095ca1f6644e88 (patch) | |
tree | 5910d4a840352aafbf67e8a39fa63936e5529b26 /roaming_dummy.c | |
parent | 07d905b406c4ab64ea2f10a22f4f8f0d595269f6 (diff) | |
parent | 964476f91b66c475d5b8fa1e8b28d39a97a1b56e (diff) |
* New upstream release.
* Update to GSSAPI patch from
http://www.sxw.org.uk/computing/patches/openssh-5.3p1-gsskex-all-20100124.patch.
Diffstat (limited to 'roaming_dummy.c')
-rw-r--r-- | roaming_dummy.c | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/roaming_dummy.c b/roaming_dummy.c new file mode 100644 index 000000000..45c4008e7 --- /dev/null +++ b/roaming_dummy.c | |||
@@ -0,0 +1,61 @@ | |||
1 | /* $OpenBSD: roaming_dummy.c,v 1.3 2009/06/21 09:04:03 dtucker Exp $ */ | ||
2 | /* | ||
3 | * Copyright (c) 2004-2009 AppGate Network Security AB | ||
4 | * | ||
5 | * Permission to use, copy, modify, and distribute this software for any | ||
6 | * purpose with or without fee is hereby granted, provided that the above | ||
7 | * copyright notice and this permission notice appear in all copies. | ||
8 | * | ||
9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | */ | ||
17 | |||
18 | /* | ||
19 | * This file is included in the client programs which should not | ||
20 | * support roaming. | ||
21 | */ | ||
22 | |||
23 | #include "includes.h" | ||
24 | |||
25 | #include <sys/types.h> | ||
26 | #include <unistd.h> | ||
27 | |||
28 | #include "roaming.h" | ||
29 | |||
30 | int resume_in_progress = 0; | ||
31 | |||
32 | u_int64_t | ||
33 | get_recv_bytes(void) | ||
34 | { | ||
35 | return 0; | ||
36 | } | ||
37 | |||
38 | ssize_t | ||
39 | roaming_write(int fd, const void *buf, size_t count, int *cont) | ||
40 | { | ||
41 | return write(fd, buf, count); | ||
42 | } | ||
43 | |||
44 | ssize_t | ||
45 | roaming_read(int fd, void *buf, size_t count, int *cont) | ||
46 | { | ||
47 | if (cont) | ||
48 | *cont = 0; | ||
49 | return read(fd, buf, count); | ||
50 | } | ||
51 | |||
52 | void | ||
53 | add_recv_bytes(u_int64_t num) | ||
54 | { | ||
55 | } | ||
56 | |||
57 | int | ||
58 | resume_kex(void) | ||
59 | { | ||
60 | return 1; | ||
61 | } | ||