提交 94daf904 authored 作者: Andrew Thompson's avatar Andrew Thompson

Fix offset


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13827 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 f17991b7
......@@ -223,7 +223,7 @@ static void event_handler(switch_event_t *event)
EVP_EncryptInit(&ctx, NULL, (unsigned char*) globals.psk, (unsigned char*) uuid_str);
EVP_EncryptUpdate(&ctx, (unsigned char*) buf + sizeof(globals.host_hash) + SWITCH_UUID_FORMATTED_LENGTH,
&outlen, (unsigned char*) packet, (int) strlen(packet));
EVP_EncryptFinal(&ctx, (unsigned char*) buf + outlen, &tmplen);
EVP_EncryptFinal(&ctx, (unsigned char*) buf + sizeof(globals.host_hash) + SWITCH_UUID_FORMATTED_LENGTH + outlen, &tmplen);
outlen += tmplen;
len = (size_t) outlen + sizeof(globals.host_hash) + SWITCH_UUID_FORMATTED_LENGTH;
} else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论