// // CryptoMacros.h // PIATunnel // // Created by Davide De Rosa on 06/07/2018. // Copyright © 2018 London Trust Media. All rights reserved. // #import #define PIA_CRYPTO_SUCCESS(ret) (ret > 0) #define PIA_CRYPTO_TRACK_STATUS(ret) if (ret > 0) ret = #define PIA_CRYPTO_RETURN_STATUS(ret)\ if (ret <= 0) {\ if (error) {\ *error = PIATunnelErrorWithCode(PIATunnelErrorCodeCryptoBoxEncryption);\ }\ return NO;\ }\ return YES;