2 * Worldvisions Weaver Software:
3 * Copyright (C) 2003 Net Integration Technologies, Inc.
5 * ESP implementation for WvIPSec
8 #ifndef __WVESPSTREAM_H
9 #define __WVESPSTREAM_H
24 * A WvStream for an IPsec ESP connection.
26 class WvESPStream
: public WvIPRawStream
29 WvESPStream(const WvIPAddr
&_local
, const WvIPAddr
&_remote
,
30 WvDigest
*_auth
, WvEncoder
*_enc
, WvEncoder
*_dec
,
35 virtual void execute();
36 virtual size_t uwrite(const void *inbuf
, size_t count
);
37 virtual size_t uread(void *outbuf
, size_t count
);
38 virtual bool isok() const;
41 bool invalid_counter(unsigned int sn
);
42 std::bitset
<WindowSize
> window
;
43 unsigned int recv_seqno
;
50 // Security Parameters Index
53 // Sequence Number for this ESP session
54 unsigned int seq_number
;
61 #endif // __WVESPSTREAM_H