提交 7c34fd25 编写于 作者: W WangFengTu 提交者: lifeng68

fix login failure

Signed-off-by: NWangFengTu <wangfengtu@huawei.com>
上级 508f6fd7
......@@ -136,7 +136,7 @@ int util_aes_encode(unsigned char *aeskey, unsigned char *bytes, size_t len, uns
}
size = tmp_out_len;
evp_ret = EVP_DecryptFinal(ctx, out + AES_256_CFB_IV_LEN + tmp_out_len, &tmp_out_len);
evp_ret = EVP_EncryptFinal(ctx, out + AES_256_CFB_IV_LEN + tmp_out_len, &tmp_out_len);
if (evp_ret != 1) {
ERROR("evp encrypt final failed, result %d: %s", evp_ret, strerror(errno));
ret = -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册