Skip to content

Commit

Permalink
v9.25.0
Browse files Browse the repository at this point in the history
1.增加会话信息的SFTP备份和合并功能功能。
》》提供8种高强度加密算法供用户自由选择,降低数据库文件被暴力破解的风险。
》》提供多种合并模式。
2.修复Ubuntu系统下,终端与SFTP目录不同步的缺陷。
3.SSH断网后,重新连接时,增加是否恢复至断网前的目录功能。
  • Loading branch information
getwingm committed Dec 11, 2022
1 parent bc5393e commit 67b654a
Show file tree
Hide file tree
Showing 79 changed files with 8,555 additions and 535 deletions.
28 changes: 27 additions & 1 deletion kxterm/qkxtermitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -866,11 +866,37 @@ void QKxTermItem::onGuessActivePathChanged(const QString &path)
int idx = path.indexOf(":~");
if(idx < 0) {
idx = path.indexOf(":/");
if(idx < 0) {
idx = path.indexOf(':');
if(idx < 0) {
return;
}
bool ok = false;
for(int i = idx+1; i < path.length(); i++) {
QChar c = path.at(i);
if(path.at(i) == QChar::Space) {
continue;
}
if(!(c == '/' || c== '~')) {
return;
}
idx = i;
ok = true;
break;
}
if(!ok) {
return;
}
}else{
idx += 1;
}
}else{
idx += 1;
}
if(idx < 0) {
return;
}
QString pathAct = path.mid(idx+1);
QString pathAct = path.mid(idx);
emit activePathArrived(pathAct);
}

Expand Down
30 changes: 28 additions & 2 deletions kxutil/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ set(SOURCE_FILES
qkxsetting.cpp
qkxhttpclient.cpp
qkxrc4crypt.cpp
qkxaescrypt.cpp
qkxabstractcrypt.cpp
qkxcipher.cpp
qkxsharememory.cpp
qkxlocalpeer.cpp
qkxmacaddress.cpp
Expand All @@ -39,6 +42,9 @@ set(HEADER_FILES
qkxsetting.h
qkxhttpclient.h
qkxrc4crypt.h
qkxaescrypt.h
qkxabstractcrypt.h
qkxcipher.h
qkxutil_private.h
qkxutil_share.h
qkxsharememory.h
Expand Down Expand Up @@ -95,28 +101,48 @@ else()
#set(HEADER_FILES qtunixserversocket.h qtunixsocket.h)
endif()

include_directories(${ZLIB_ROOT_DIR}/include)
include_directories(${ZLIB_ROOT_DIR}/include
${OPENSSL_ROOT_DIR}/include
)

link_directories(${ZLIB_ROOT_DIR}/lib)
link_directories(${ZLIB_ROOT_DIR}/lib
${OPENSSL_ROOT_DIR}/lib
)

if(WIN32)
link_libraries(ws2_32)

add_library(libz_main STATIC IMPORTED)
set_target_properties(libz_main PROPERTIES IMPORTED_LOCATION
${ZLIB_ROOT_DIR}/lib/zlibstatic.lib)
link_libraries(libz_main)

add_library(openssl_crypto STATIC IMPORTED)
set_target_properties(openssl_crypto PROPERTIES IMPORTED_LOCATION
${OPENSSL_ROOT_DIR}/lib/libcrypto.lib)
link_libraries(openssl_crypto)
elseif(APPLE)
message("APPLE Here")
add_library(libz_main STATIC IMPORTED)
set_target_properties(libz_main PROPERTIES IMPORTED_LOCATION
${ZLIB_ROOT_DIR}/lib/libz.a)
link_libraries(libz_main)

add_library(openssl_crypto STATIC IMPORTED)
set_target_properties(openssl_crypto PROPERTIES IMPORTED_LOCATION
${OPENSSL_ROOT_DIR}/lib/libcrypto.a)
link_libraries(openssl_crypto)
else()
message("other")
add_library(libz_main STATIC IMPORTED)
set_target_properties(libz_main PROPERTIES IMPORTED_LOCATION
${ZLIB_ROOT_DIR}/lib/libz.a)
link_libraries(libz_main)

add_library(openssl_crypto STATIC IMPORTED)
set_target_properties(openssl_crypto PROPERTIES IMPORTED_LOCATION
${OPENSSL_ROOT_DIR}/lib/libcrypto.a)
link_libraries(openssl_crypto)
endif()

add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${SOURCE_FILES})
Expand Down
Loading

0 comments on commit 67b654a

Please sign in to comment.