roaming_dummy.c revision 256281
1189251Ssam/* $OpenBSD: roaming_dummy.c,v 1.3 2009/06/21 09:04:03 dtucker Exp $ */ 2189251Ssam/* 3214734Srpaulo * Copyright (c) 2004-2009 AppGate Network Security AB 4189251Ssam * 5189251Ssam * Permission to use, copy, modify, and distribute this software for any 6189251Ssam * purpose with or without fee is hereby granted, provided that the above 7189251Ssam * copyright notice and this permission notice appear in all copies. 8189251Ssam * 9189251Ssam * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10189251Ssam * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11189251Ssam * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12189251Ssam * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13189251Ssam * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14189251Ssam * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15214734Srpaulo * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16189251Ssam */ 17214734Srpaulo 18214734Srpaulo/* 19214734Srpaulo * This file is included in the client programs which should not 20189251Ssam * support roaming. 21189251Ssam */ 22214734Srpaulo 23189251Ssam#include "includes.h" 24189251Ssam 25214734Srpaulo#include <sys/types.h> 26214734Srpaulo#include <unistd.h> 27214734Srpaulo 28189251Ssam#include "roaming.h" 29189251Ssam 30189251Ssamint resume_in_progress = 0; 31189251Ssam 32189251Ssamu_int64_t 33189251Ssamget_recv_bytes(void) 34189251Ssam{ 35189251Ssam return 0; 36189251Ssam} 37189251Ssam 38189251Ssamssize_t 39214734Srpauloroaming_write(int fd, const void *buf, size_t count, int *cont) 40189251Ssam{ 41214734Srpaulo return write(fd, buf, count); 42214734Srpaulo} 43214734Srpaulo 44189251Ssamssize_t 45189251Ssamroaming_read(int fd, void *buf, size_t count, int *cont) 46189251Ssam{ 47189251Ssam if (cont) 48189251Ssam *cont = 0; 49189251Ssam return read(fd, buf, count); 50189251Ssam} 51189251Ssam 52189251Ssamvoid 53189251Ssamadd_recv_bytes(u_int64_t num) 54189251Ssam{ 55189251Ssam} 56189251Ssam 57189251Ssamint 58189251Ssamresume_kex(void) 59189251Ssam{ 60189251Ssam return 1; 61189251Ssam} 62189251Ssam