[BACK]Return to roaming_dummy.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Annotation of src/usr.bin/ssh/roaming_dummy.c, Revision 1.4

1.4     ! markus      1: /* $OpenBSD: roaming_dummy.c,v 1.3 2009/06/21 09:04:03 dtucker Exp $ */
1.1       andreas     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: /*
                     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:
1.2       andreas    26: #include "roaming.h"
                     27:
1.1       andreas    28: int resume_in_progress = 0;
                     29:
1.2       andreas    30: u_int64_t
                     31: get_recv_bytes(void)
1.1       andreas    32: {
                     33:        return 0;
1.4     ! markus     34: }
        !            35:
        !            36: u_int64_t
        !            37: get_sent_bytes(void)
        !            38: {
        !            39:        return 0;
        !            40: }
        !            41:
        !            42: void
        !            43: roam_set_bytes(u_int64_t sent, u_int64_t recvd)
        !            44: {
1.1       andreas    45: }
                     46:
                     47: ssize_t
                     48: roaming_write(int fd, const void *buf, size_t count, int *cont)
                     49: {
                     50:        return write(fd, buf, count);
                     51: }
                     52:
                     53: ssize_t
                     54: roaming_read(int fd, void *buf, size_t count, int *cont)
                     55: {
                     56:        if (cont)
                     57:                *cont = 0;
                     58:        return read(fd, buf, count);
                     59: }
                     60:
                     61: void
                     62: add_recv_bytes(u_int64_t num)
                     63: {
                     64: }
                     65:
                     66: int
1.2       andreas    67: resume_kex(void)
1.1       andreas    68: {
                     69:        return 1;
                     70: }