blob: f081bffe94ff4795017ac3b45a7579079e515230 [file] [log] [blame]
Darren Tuckere6b590e2009-06-21 19:08:48 +10001/* $OpenBSD: roaming_dummy.c,v 1.3 2009/06/21 09:04:03 dtucker 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
23#include <sys/types.h>
24#include <unistd.h>
25
Darren Tuckere6b590e2009-06-21 19:08:48 +100026#include "roaming.h"
27
Darren Tuckerc5564e12009-06-21 18:53:53 +100028int resume_in_progress = 0;
29
Darren Tuckere6b590e2009-06-21 19:08:48 +100030u_int64_t
31get_recv_bytes(void)
Darren Tuckerc5564e12009-06-21 18:53:53 +100032{
33 return 0;
34}
35
36ssize_t
37roaming_write(int fd, const void *buf, size_t count, int *cont)
38{
39 return write(fd, buf, count);
40}
41
42ssize_t
43roaming_read(int fd, void *buf, size_t count, int *cont)
44{
45 if (cont)
46 *cont = 0;
47 return read(fd, buf, count);
48}
49
50void
51add_recv_bytes(u_int64_t num)
52{
53}
54
55int
Darren Tuckere6b590e2009-06-21 19:08:48 +100056resume_kex(void)
Darren Tuckerc5564e12009-06-21 18:53:53 +100057{
58 return 1;
59}