- Timestamp:
- Jun 29, 2021, 10:19:30 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_sig.c
r553 r561 717 717 sl_rewind (fdTmp); 718 718 719 #if 0719 #if defined(SH_DEBUG_SIGNIFY) 720 720 fin_cp = fdopen(dup(get_the_fd(fdTmp)), "rb"); 721 721 FILE * fout = fopen("xxx.out", "w+"); -
trunk/src/sh_xfer_server.c
r544 r561 1230 1230 int bytes; 1231 1231 SL_TICKET sfd = -1; 1232 #ifdef SH_ENCRYPT1233 int blkfac;1234 int rem;1235 int send_bytes;1236 #endif1237 1232 1238 1233 if (conn == NULL || conn->FileName == NULL) … … 1281 1276 if (bytes >= 0) 1282 1277 { 1278 send_buf = hash_me(conn->K, read_buf, bytes); 1283 1279 #ifdef SH_ENCRYPT 1284 /* need to send N * B_SIZ bytes 1285 */ 1286 blkfac = bytes / B_SIZ; 1287 rem = bytes - (blkfac * B_SIZ); 1288 if (rem != 0) 1289 { 1290 memset(&read_buf[bytes], '\n', (B_SIZ-rem)); 1291 ++blkfac; 1292 send_bytes = blkfac * B_SIZ; 1293 } 1294 else 1295 send_bytes = bytes; 1296 1297 send_buf = hash_me(conn->K, read_buf, send_bytes); 1298 1299 sh_xfer_send_crypt (conn, send_buf, send_bytes+KEY_LEN, _("FILE"), 1280 sh_xfer_send_crypt (conn, send_buf, bytes+KEY_LEN, _("FILE"), 1300 1281 SH_PROTO_BIG|conn->client_entry->encf_flag); 1301 1282 #else 1302 send_buf = hash_me(conn->K, read_buf, bytes);1303 1283 sh_xfer_send_crypt (conn, send_buf, bytes+KEY_LEN, _("FILE"), 1304 1284 SH_PROTO_BIG); -
trunk/test/test.sh
r550 r561 164 164 echo " ${S}test.sh 26${E} -- Test c/s case one (testrc_2.in)" 165 165 echo " ${S}test.sh 27${E} -- Test c/s case two (testrc_2.in)" 166 echo " ${S}test.sh 28${E} -- Test full c/s w/signify (testrc_2.in)" 166 167 echo " ${S}test.sh all${E} -- All tests" 167 168 } … … 175 176 echo " (20) testrun_2.sh (21) testrun_2a.sh (22) testrun_2b.sh (23) testrun_2c.sh" 176 177 echo " (24) testrun_2d.sh (25) testrun_2e.sh (26) testrun_2f.sh (27) testrun_2g.sh" 177 } 178 echo " (28) testrun_2h.sh" 179 } 178 180 179 181 # … … 715 717 exit $? 716 718 fi 719 if test x$1 = x28; then 720 . ${SCRIPTDIR}/testrun_2a.sh 721 . ${SCRIPTDIR}/testrun_2h.sh 722 testrun2h $hostname 723 print_summary 724 exit $? 725 fi 717 726 if test x$1 = xall; then 718 727 TEST_MAX=0 … … 760 769 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null 761 770 . ${SCRIPTDIR}/testrun_2g.sh 771 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null 772 . ${SCRIPTDIR}/testrun_2h.sh 762 773 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null 763 774 # … … 854 865 MAXTEST=${TEST_MAX}; export MAXTEST 855 866 testrun2g $hostname 867 # 868 . ${SCRIPTDIR}/testrun_2h.sh 869 MAXTEST=${TEST_MAX}; export MAXTEST 870 testrun2h $hostname 856 871 # 857 872 print_summary -
trunk/test/testrun_1i.sh
r550 r561 244 244 fi 245 245 if [ -z "$SIGNIFY" ]; then 246 log_skip 1 $MAXTEST ' gpgnot found in $PATH'247 log_skip 2 $MAXTEST ' gpgnot found in $PATH'248 log_skip 3 $MAXTEST ' gpgnot found in $PATH'249 log_skip 4 $MAXTEST ' gpgnot found in $PATH'246 log_skip 1 $MAXTEST 'signify not found in $PATH' 247 log_skip 2 $MAXTEST 'signify not found in $PATH' 248 log_skip 3 $MAXTEST 'signify not found in $PATH' 249 log_skip 4 $MAXTEST 'signify not found in $PATH' 250 250 else 251 251 eval "ls ~/.signify/samhain.pub >/dev/null 2>/dev/null"
Note:
See TracChangeset
for help on using the changeset viewer.