stun

simple point to point tunnel
git clone git://git.2f30.org/stun
Log | Files | Refs | README

commit 777ef1489c602ac28cc6a068b2a7a48f77126ce1
parent 0e78bda4c13f689bf95400d7e9b4f76eebf38898
Author: sin <sin@2f30.org>
Date:   Tue, 29 Mar 2016 09:45:00 +0100

no need to init

Diffstat:
Mstun.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/stun.c b/stun.c @@ -159,7 +159,7 @@ int aesenc(EVP_CIPHER_CTX *ectx, unsigned char *ciphertext, unsigned char *plaintext, int len) { - int clen = len + AES_BLOCK_SIZE; + int clen; EVP_EncryptUpdate(ectx, ciphertext, &clen, plaintext, len); return clen; @@ -169,7 +169,7 @@ int aesdec(EVP_CIPHER_CTX *dctx, unsigned char *plaintext, unsigned char *ciphertext, int len) { - int plen = len; + int plen; EVP_DecryptUpdate(dctx, plaintext, &plen, ciphertext, len); return plen;