OpenVPN 3 Core Library
Loading...
Searching...
No Matches
compnull.hpp
Go to the documentation of this file.
1// OpenVPN -- An application to securely tunnel IP networks
2// over a single port, with support for SSL/TLS-based
3// session authentication and key exchange,
4// packet encryption, packet authentication, and
5// packet compression.
6//
7// Copyright (C) 2012- OpenVPN Inc.
8//
9// SPDX-License-Identifier: MPL-2.0 OR AGPL-3.0-only WITH openvpn3-openssl-exception
10//
11
12// A null compression class.
13
14#ifndef OPENVPN_COMPRESS_COMPNULL_H
15#define OPENVPN_COMPRESS_COMPNULL_H
16
17namespace openvpn {
18
19class CompressNull : public Compress
20{
21 public:
26
27 const char *name() const override
28 {
29 return "null";
30 }
31 void compress(BufferAllocated &buf, const bool hint) override
32 {
33 }
34 void decompress(BufferAllocated &buf) override
35 {
36 }
37};
38
39} // namespace openvpn
40
41#endif // OPENVPN_COMPRESS_COMPNULL_H
void decompress(BufferAllocated &buf) override
Definition compnull.hpp:34
CompressNull(const Frame::Ptr &frame, const SessionStats::Ptr &stats)
Definition compnull.hpp:22
const char * name() const override
Definition compnull.hpp:27
void compress(BufferAllocated &buf, const bool hint) override
Definition compnull.hpp:31
Frame::Ptr frame
Definition compress.hpp:127
SessionStats::Ptr stats
Definition compress.hpp:128