]> andersk Git - openssh.git/blame - roaming.h
- djm@cvs.openbsd.org 2010/01/30 02:54:53
[openssh.git] / roaming.h
CommitLineData
1270be26 1/* $OpenBSD: roaming.h,v 1.5 2009/10/24 11:11:58 andreas Exp $ */
d0137ef8 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#ifndef ROAMING_H
19#define ROAMING_H
20
e3fe98a2 21#define DEFAULT_ROAMBUF 65536
1270be26 22#define ROAMING_REQUEST "roaming@appgate.com"
e3fe98a2 23
1270be26 24extern int roaming_enabled;
d0137ef8 25extern int resume_in_progress;
26
1270be26 27void request_roaming(void);
e3fe98a2 28int get_snd_buf_size(void);
29int get_recv_buf_size(void);
d0137ef8 30void add_recv_bytes(u_int64_t);
1270be26 31int wait_for_roaming_reconnect(void);
32void roaming_reply(int, u_int32_t, void *);
e3fe98a2 33void set_out_buffer_size(size_t);
d0137ef8 34ssize_t roaming_write(int, const void *, size_t, int *);
35ssize_t roaming_read(int, void *, size_t, int *);
ac692f84 36size_t roaming_atomicio(ssize_t (*)(int, void *, size_t), int, void *, size_t);
d0137ef8 37u_int64_t get_recv_bytes(void);
38u_int64_t get_sent_bytes(void);
39void roam_set_bytes(u_int64_t, u_int64_t);
e3fe98a2 40void resend_bytes(int, u_int64_t *);
1270be26 41void calculate_new_key(u_int64_t *, u_int64_t, u_int64_t);
d0137ef8 42int resume_kex(void);
43
44#endif /* ROAMING */
This page took 0.065232 seconds and 5 git commands to generate.