Do not deprecate until replacement

Implement new compression framing later.
This commit is contained in:
Davide De Rosa 2018-08-24 00:47:19 +02:00
parent 4bb9eaeddc
commit 94890c08cf
6 changed files with 7 additions and 7 deletions

View File

@ -129,7 +129,7 @@ extension TunnelKitProvider {
public var mtu: NSNumber
/// Enables LZO framing (deprecated).
@available(*, deprecated)
// @available(*, deprecated)
public var LZOFraming: Bool
/// The number of seconds after which a renegotiation is started. Set to `nil` to disable renegotiation (default).

View File

@ -24,7 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface DataPathCryptoAEAD : NSObject <DataPathEncrypter, DataPathDecrypter>
@property (nonatomic, assign) uint32_t peerId;
@property (nonatomic, assign) BOOL LZOFraming DEPRECATED_ATTRIBUTE;
@property (nonatomic, assign) BOOL LZOFraming;// DEPRECATED_ATTRIBUTE;
- (instancetype)initWithCrypto:(nonnull CryptoAEAD *)crypto;

View File

@ -23,7 +23,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface DataPathCryptoCBC : NSObject <DataPathEncrypter, DataPathDecrypter>
@property (nonatomic, assign) uint32_t peerId;
@property (nonatomic, assign) BOOL LZOFraming DEPRECATED_ATTRIBUTE;
@property (nonatomic, assign) BOOL LZOFraming;// DEPRECATED_ATTRIBUTE;
- (instancetype)initWithCrypto:(nonnull CryptoCBC *)crypto;

View File

@ -23,7 +23,7 @@
usesReplayProtection:(BOOL)usesReplayProtection;
- (void)setPeerId:(uint32_t)peerId; // 24-bit, discard most significant byte
- (void)setLZOFraming:(BOOL)LZOFraming DEPRECATED_ATTRIBUTE;
- (void)setLZOFraming:(BOOL)LZOFraming;// DEPRECATED_ATTRIBUTE;
- (NSArray<NSData *> *)encryptPackets:(nonnull NSArray<NSData *> *)packets key:(uint8_t)key error:(NSError **)error;
- (NSArray<NSData *> *)decryptPackets:(nonnull NSArray<NSData *> *)packets keepAlive:(nullable bool *)keepAlive error:(NSError **)error;

View File

@ -13,8 +13,8 @@
- (int)overheadLength;
- (uint32_t)peerId;
- (void)setPeerId:(uint32_t)peerId;
- (BOOL)LZOFraming DEPRECATED_ATTRIBUTE;
- (void)setLZOFraming:(BOOL)LZOFraming DEPRECATED_ATTRIBUTE;
- (BOOL)LZOFraming;// DEPRECATED_ATTRIBUTE;
- (void)setLZOFraming:(BOOL)LZOFraming;// DEPRECATED_ATTRIBUTE;
@end

View File

@ -59,7 +59,7 @@ extension SessionProxy {
public var caPath: String?
/// Enables LZO compression framing (deprecated in OpenVPN 2.4).
@available(*, deprecated)
// @available(*, deprecated)
public var LZOFraming: Bool
/// Sends periodical keep-alive packets if set.