- jmc@cvs.openbsd.org 2009/08/13 13:39:54
[openssh-git.git] / roaming_dummy.c
blob45c4008e7f9b9ff6f91606d701178cc90735c621
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
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.
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.
19 * This file is included in the client programs which should not
20 * support roaming.
23 #include "includes.h"
25 #include <sys/types.h>
26 #include <unistd.h>
28 #include "roaming.h"
30 int resume_in_progress = 0;
32 u_int64_t
33 get_recv_bytes(void)
35 return 0;
38 ssize_t
39 roaming_write(int fd, const void *buf, size_t count, int *cont)
41 return write(fd, buf, count);
44 ssize_t
45 roaming_read(int fd, void *buf, size_t count, int *cont)
47 if (cont)
48 *cont = 0;
49 return read(fd, buf, count);
52 void
53 add_recv_bytes(u_int64_t num)
57 int
58 resume_kex(void)
60 return 1;