src/wolfSSL/src/internal.c
void AddLateRecordHeader(const RecordLayerHeader* rl, TimeoutInfo* info)
    {
        /* make sure we have a valid previous one */
        if (info->numberPackets > 0 && info->numberPackets <
                                                        MAX_PACKETS_HANDSHAKE) {
            if (info->packets[info->numberPackets - 1].bufferValue)
                XMEMCPY(info->packets[info->numberPackets - 1].bufferValue, rl,
                       RECORD_HEADER_SZ);
            else
                XMEMCPY(info->packets[info->numberPackets - 1].value, rl,
                       RECORD_HEADER_SZ);
        }
    }
/* Add record header to previsouly added packet info */
Add record header to previsouly added packet info
Add record header to previsouly added packet info
void AddLateRecordHeader(const RecordLayerHeader* rl, TimeoutInfo* info)
    {
        if (info->numberPackets > 0 && info->numberPackets <
                                                        MAX_PACKETS_HANDSHAKE) {
            if (info->packets[info->numberPackets - 1].bufferValue)
                XMEMCPY(info->packets[info->numberPackets - 1].bufferValue, rl,
                       RECORD_HEADER_SZ);
            else
                XMEMCPY(info->packets[info->numberPackets - 1].value, rl,
                       RECORD_HEADER_SZ);
        }
    }
void AddLateRecordHeader ( const RecordLayerHeader * rl , TimeoutInfo * info ) { if ( info -> numberPackets > 0 && info -> numberPackets < MAX_PACKETS_HANDSHAKE ) { if ( info -> packets [ info -> numberPackets - 1 ] . bufferValue ) XMEMCPY ( info -> packets [ info -> numberPackets - 1 ] . bufferValue , rl , RECORD_HEADER_SZ ) ; else XMEMCPY ( info -> packets [ info -> numberPackets - 1 ] . value , rl , RECORD_HEADER_SZ ) ; } }
Add record header to previsouly added packet info
Add record header to previsouly added packet info
/* make sure we have a valid previous one */