Ignore:
Timestamp:
Jun 29, 2021, 10:19:30 PM (3 years ago)
Author:
katerina
Message:

Fix for ticket #451 (signify-openbsd in client/server mode not working).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_xfer_server.c

    r544 r561  
    12301230  int        bytes;
    12311231  SL_TICKET  sfd = -1;
    1232 #ifdef SH_ENCRYPT
    1233   int        blkfac;
    1234   int        rem;
    1235   int        send_bytes;
    1236 #endif
    12371232
    12381233  if (conn == NULL    || conn->FileName == NULL)
     
    12811276      if (bytes >= 0)
    12821277        {
     1278          send_buf = hash_me(conn->K, read_buf,  bytes);
    12831279#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"), 
    13001281                                      SH_PROTO_BIG|conn->client_entry->encf_flag);
    13011282#else
    1302           send_buf = hash_me(conn->K, read_buf, bytes);
    13031283          sh_xfer_send_crypt (conn, send_buf, bytes+KEY_LEN, _("FILE"), 
    13041284                                      SH_PROTO_BIG);
Note: See TracChangeset for help on using the changeset viewer.