Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
76ac9464
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
76ac9464
编写于
7月 16, 2019
作者:
S
slguan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
The password is no longer stored in clear text, so you may need to reinstall the database
上级
7fa03ddf
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
17 addition
and
7 deletion
+17
-7
src/client/src/tscSql.c
src/client/src/tscSql.c
+1
-1
src/inc/tutil.h
src/inc/tutil.h
+10
-0
src/system/src/mgmtShell.c
src/system/src/mgmtShell.c
+1
-1
src/system/src/mgmtUser.c
src/system/src/mgmtUser.c
+1
-1
src/util/src/version.c
src/util/src/version.c
+4
-4
未找到文件。
src/client/src/tscSql.c
浏览文件 @
76ac9464
...
...
@@ -74,7 +74,7 @@ TAOS *taos_connect_imp(char *ip, char *user, char *pass, char *db, int port, voi
pObj
->
signature
=
pObj
;
strncpy
(
pObj
->
user
,
user
,
TSDB_USER_LEN
);
strncpy
(
pObj
->
pass
,
pass
,
TSDB_KEY_LEN
);
taosEncryptPass
(
pass
,
strlen
(
pass
),
pObj
->
pass
);
pObj
->
mgmtPort
=
port
?
port
:
tsMgmtShellPort
;
if
(
db
)
{
...
...
src/inc/tutil.h
浏览文件 @
76ac9464
...
...
@@ -16,6 +16,8 @@
#ifndef TDENGINE_TUTIL_H
#define TDENGINE_TUTIL_H
#include "tmd5.h"
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
@@ -199,6 +201,14 @@ bool taosUcs4ToMbs(void *ucs4, int32_t ucs4_max_len, char *mbs);
bool
taosValidateEncodec
(
char
*
encodec
);
static
FORCE_INLINE
void
taosEncryptPass
(
uint8_t
*
inBuf
,
unsigned
int
inLen
,
char
*
target
)
{
MD5_CTX
context
;
MD5Init
(
&
context
);
MD5Update
(
&
context
,
inBuf
,
inLen
);
MD5Final
(
&
context
);
memcpy
(
target
,
context
.
digest
,
TSDB_KEY_LEN
);
}
#define __sync_val_compare_and_swap_64 __sync_val_compare_and_swap
#define __sync_val_compare_and_swap_32 __sync_val_compare_and_swap
#define __sync_add_and_fetch_64 __sync_add_and_fetch
...
...
src/system/src/mgmtShell.c
浏览文件 @
76ac9464
...
...
@@ -440,7 +440,7 @@ int mgmtProcessAlterUserMsg(char *pMsg, int msgLen, SConnObj *pConn) {
(
strcmp
(
pConn
->
pUser
->
user
,
"root"
)
==
0
))
{
if
((
pAlter
->
flag
&
TSDB_ALTER_USER_PASSWD
)
!=
0
)
{
memset
(
pUser
->
pass
,
0
,
sizeof
(
pUser
->
pass
));
strcpy
(
pUser
->
pass
,
pAlt
er
->
pass
);
taosEncryptPass
((
uint8_t
*
)(
pAlter
->
pass
),
strlen
(
pAlter
->
pass
),
pUs
er
->
pass
);
}
if
((
pAlter
->
flag
&
TSDB_ALTER_USER_PRIVILEGES
)
!=
0
)
{
if
(
pAlter
->
privilege
==
1
)
{
// super
...
...
src/system/src/mgmtUser.c
浏览文件 @
76ac9464
...
...
@@ -109,7 +109,7 @@ int mgmtCreateUser(SAcctObj *pAcct, char *name, char *pass) {
pUser
=
malloc
(
sizeof
(
SUserObj
));
memset
(
pUser
,
0
,
sizeof
(
SUserObj
));
strcpy
(
pUser
->
user
,
name
);
strcpy
(
pUser
->
pass
,
pass
);
taosEncryptPass
((
uint8_t
*
)
pass
,
strlen
(
pass
),
pUser
->
pass
);
strcpy
(
pUser
->
acct
,
pAcct
->
user
);
pUser
->
createdTime
=
taosGetTimestampMs
();
pUser
->
superAuth
=
0
;
...
...
src/util/src/version.c
浏览文件 @
76ac9464
char
version
[
64
]
=
"1.6.
0
.0"
;
char
compatible_version
[
64
]
=
"1.6.
0
.0"
;
char
gitinfo
[
128
]
=
"
82cbce3261d06ab37c3bd4786c7b2e3d2316c42a
"
;
char
buildinfo
[
512
]
=
"Built by ubuntu at 2019-07-
05 18:42
"
;
char
version
[
64
]
=
"1.6.
1
.0"
;
char
compatible_version
[
64
]
=
"1.6.
1
.0"
;
char
gitinfo
[
128
]
=
"
01eb2fd1402c952689a6874a5b1ec09fca5f4f13
"
;
char
buildinfo
[
512
]
=
"Built by ubuntu at 2019-07-
16 10:18
"
;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录