0

我在 Windows 上运行 uftp,在 qnx Rtos 上运行 uftpd。当我发送未加密的数据时,它对我来说很好。我正在使用以下命令发送未加密的数据。

 UFTP: uftp -Y none -h sha1 -r 0.5:0.5:0.5 -t 20 -s 10 -M 230.4.4.1 -P 
 230.5.5.1 -p 32322 D:\FTPServer\automationbuild\options-350-19-
 01B_7830_7835none.dat

UFTPD: "/usr/bin/uftpd", "uftpd", "-M",
(const char )m_puftpfiletransferparams->m_MulticastIp, "-p",
(const char )m_puftpfiletransferparams->m_iPort, "-D",
"/ram/tmp",NULL

它工作正常,我正在获取日志

UFTP version 4.9.4 Copyright (C) 2001-2017 Dennis A. Bush
Starting at Sat Dec 9 21:20:57 2017
Transfer rate: 1000 Kbps (125 KB/s)
Wait between packets: 10562 us
Using private multicast address 230.5.5.1 Group ID: 112029B8
Initializing group
Sending ANNOUNCE 1
Sending ANNOUNCE 2
Received REGISTER from client 0x0A026CE3
Sending REG_CONF 3.1
Sending ANNOUNCE 3
Sending ANNOUNCE 4
Sending ANNOUNCE 5
Sending ANNOUNCE 6
Sending ANNOUNCE 7
Sending ANNOUNCE 8
Sending ANNOUNCE 9
Sending ANNOUNCE 10
----- options-350-20-01A_6626_7808_7809.dat -----
File ID: 0001 Name: options-350-19-01B_7830_7835none.dat
sending as: options-350-19-01B_7830_7835none.dat
Bytes: 6096 Blocks: 5 Sec         

当我尝试发送加密数据时,我遇到了问题。我正在使用命令

 UFTP: uftp -Y des -h sha1 -r 0.5:0.5:0.5 -t 20 -s 10 -M 230.4.4.1 -P 
 230.5.5.1 -p 32322 D:\FTPServer\automationbuild\options-350-19-
 01B_7830_7835none.dat

 UFTPD: "/usr/bin/uftpd", "uftpd", "-M",
 (const char )m_puftpfiletransferparams->m_MulticastIp, "-p",
 (const char )m_puftpfiletransferparams->m_iPort, "-D",
 "/ram/tmp",NULL

我收到错误日志说 keytype Invalid

UFTP version 4.9.4 Copyright (C) 2001-2017 Dennis A. Bush
Starting at Sat Dec 9 21:20:05 2017
Loaded 512 bit RSA key with fingerprint 
BA:2A:C2:1A:3B:1A:2A:59:A3:D1:14:3A:7A:92:79:93:6D:D8:BD:28
Transfer rate: 1000 Kbps (125 KB/s)
Wait between packets: 11031 us
Using private multicast address 230.5.5.1 Group ID: 6EE9BB50
Initializing group
Sending ANNOUNCE 1
Sending ANNOUNCE 2
Transfer aborted by 0A026CE3: Keytype invalid or not supported here
Sending ANNOUNCE 3
Transfer aborted by 0A026CE3: Keytype invalid or not supported here
Sending ANNOUNCE 4
Transfer aborted by 0A026CE3: Keytype invalid or not supported here
Sending ANNOUNCE 5
Transfer aborted by 0A026CE3: Keytype invalid or not supported here
Sending ANNOUNCE 6
Transfer aborted by 0A026CE3: Keytype invalid or not supported here
Sending ANNOUNCE 7
Transfer aborted by 0A026CE3: Keytype invalid or not supported here
Sending ANNOUNCE 8
Transfer aborted by 0A026CE3: Keytype invalid or not supported here
Sending ANNOUNCE 9
Transfer aborted by 0A026CE3: Keytype invalid or not supported here
Sending ANNOUNCE 10
Transfer aborted by 0A026CE3: Keytype invalid or not supported here
Announce timed out
uftp: Finishing at Sat Dec 9 21:20:20 2017

接收端也有类似的错误:

UFTP version 4.7 Copyright (C) 2001-2015 Dennis A. Bush
2013/04/20 05:48:33.175124: tos / traffic class byte = 00
2013/04/20 05:48:33.266040: [1C17429A/00:0]: Keytype invalid or not supported here
2013/04/20 05:48:34.671744: tos / traffic class byte = 00
2013/04/20 05:48:34.687729: [1C17429A/00:0]: Keytype invalid or not supported here
2013/04/20 05:48:36.169363: tos / traffic class byte = 00
2013/04/20 05:48:36.184350: [1C17429A/00:0]: Keytype invalid or not supported here
2013/04/20 05:48:37.668981: tos / traffic class byte = 00
2013/04/20 05:48:37.685965: [1C17429A/00:0]: Keytype invalid or not supported here
2013/04/20 05:48:39.163603: tos / traffic class byte = 00
2013/04/20 05:48:39.178589: [1C17429A/00:0]: Keytype invalid or not supported here
2013/04/20 05:48:40.661223: tos / traffic class byte = 00
2013/04/20 05:48:40.676209: [1C17429A/00:0]: Keytype invalid or not supported here
2013/04/20 05:48:42.157843: tos / traffic class byte = 00
2013/04/20 05:48:42.172829: [1C17429A/00:0]: Keytype invalid or not supported here
2013/04/20 05:48:43.655462: tos / traffic class byte = 00
2013/04/20 05:48:43.669450: [1C17429A/00:0]: Keytype invalid or not supported here
2013/04/20 05:48:45.152083: tos / traffic class byte = 00
2013/04/20 05:48:45.168068: [1C17429A/00:0]: Keytype invalid or not supported here

我没有得到使它工作所需的其他东西。我是否需要在两边都添加 -k 或 -K ,如果我不添加它会不起作用吗?我的理解是,如果我不使用 -k 它将默认生成 512 位 rsa 密钥。

我没有得到任何帮助。请帮助我更好地理解它。

4

1 回答 1

0

正如在 sourceforge 的讨论线程中提到的,接收器日志不显示任何有关在启动时加载或生成密钥的消息。这表明接收器是在没有加密支持的情况下编译的。

您需要重建接收器以启用加密。

于 2018-01-23T13:44:56.917 回答