Do not deprecate until replacement
Implement new compression framing later.
This commit is contained in:
parent
4bb9eaeddc
commit
94890c08cf
|
@ -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).
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue