X-Git-Url: http://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fsptps.c;fp=src%2Fsptps.c;h=b36079d3d73b33472c4294ee9d5bda394cc0cc19;hb=e994222a4370621a9ac69c13ed23531c1eaa6809;hp=9e637bef319d3c2f9cbcb595b95be916bf3a0a1e;hpb=4f48176209832913975843b6cf3bf1753152da3f;p=tinc diff --git a/src/sptps.c b/src/sptps.c index 9e637bef..b36079d3 100644 --- a/src/sptps.c +++ b/src/sptps.c @@ -186,7 +186,7 @@ static bool cipher_encrypt(uint8_t suite, void *ctx, uint32_t seqno, const uint8 #ifndef HAVE_OPENSSL case SPTPS_CHACHA_POLY1305: { - if(chachapoly_crypt(ctx, nonce, NULL, 0, (void *)in, inlen, out, out + inlen, 16, 1) != CHACHAPOLY_OK) { + if(chachapoly_crypt(ctx, nonce, (void *)in, inlen, out, out + inlen, 16, 1) != CHACHAPOLY_OK) { return false; } @@ -267,7 +267,7 @@ static bool cipher_decrypt(uint8_t suite, void *ctx, uint32_t seqno, const uint8 #ifndef HAVE_OPENSSL case SPTPS_CHACHA_POLY1305: - if(chachapoly_crypt(ctx, nonce, NULL, 0, (void *)in, inlen, out, (void *)(in + inlen), 16, 0) != CHACHAPOLY_OK) { + if(chachapoly_crypt(ctx, nonce, (void *)in, inlen, out, (void *)(in + inlen), 16, 0) != CHACHAPOLY_OK) { return false; }