blob: 837de695ddf142c5df89ce893ec529eeee874216 [file] [log] [blame]
markus@openbsd.org091c3022015-01-19 19:52:16 +00001/* $OpenBSD: roaming_dummy.c,v 1.4 2015/01/19 19:52:16 markus Exp $ */
Darren Tuckerc5564e12009-06-21 18:53:53 +10002/*
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
Darren Tucker828c96d2009-06-21 22:22:08 +100023#include "includes.h"
24
Darren Tuckerc5564e12009-06-21 18:53:53 +100025#include <sys/types.h>
26#include <unistd.h>
27
Darren Tuckere6b590e2009-06-21 19:08:48 +100028#include "roaming.h"
29
Darren Tuckerc5564e12009-06-21 18:53:53 +100030int resume_in_progress = 0;
31
Darren Tuckere6b590e2009-06-21 19:08:48 +100032u_int64_t
33get_recv_bytes(void)
Darren Tuckerc5564e12009-06-21 18:53:53 +100034{
35 return 0;
36}
37
markus@openbsd.org091c3022015-01-19 19:52:16 +000038u_int64_t
39get_sent_bytes(void)
40{
41 return 0;
42}
43
44void
45roam_set_bytes(u_int64_t sent, u_int64_t recvd)
46{
47}
48
Darren Tuckerc5564e12009-06-21 18:53:53 +100049ssize_t
50roaming_write(int fd, const void *buf, size_t count, int *cont)
51{
52 return write(fd, buf, count);
53}
54
55ssize_t
56roaming_read(int fd, void *buf, size_t count, int *cont)
57{
58 if (cont)
59 *cont = 0;
60 return read(fd, buf, count);
61}
62
63void
64add_recv_bytes(u_int64_t num)
65{
66}
67
68int
Darren Tuckere6b590e2009-06-21 19:08:48 +100069resume_kex(void)
Darren Tuckerc5564e12009-06-21 18:53:53 +100070{
71 return 1;
72}