src/wolfSSL/src/internal.c
void ShrinkOutputBuffer(WOLFSSL* ssl)
{
    WOLFSSL_MSG("Shrinking output buffer\n");
    XFREE(ssl->buffers.outputBuffer.buffer - ssl->buffers.outputBuffer.offset,
          ssl->heap, DYNAMIC_TYPE_OUT_BUFFER);
    ssl->buffers.outputBuffer.buffer = ssl->buffers.outputBuffer.staticBuffer;
    ssl->buffers.outputBuffer.bufferSize  = STATIC_BUFFER_LEN;
    ssl->buffers.outputBuffer.dynamicFlag = 0;
    ssl->buffers.outputBuffer.offset      = 0;
}
/* Switch dynamic output buffer back to static, buffer is assumed clear */
Switch dynamic output buffer back to static, buffer is assumed clear
Switch dynamic output buffer back to static buffer is assumed clear
void ShrinkOutputBuffer(WOLFSSL* ssl)
{
    WOLFSSL_MSG("Shrinking output buffer\n");
    XFREE(ssl->buffers.outputBuffer.buffer - ssl->buffers.outputBuffer.offset,
          ssl->heap, DYNAMIC_TYPE_OUT_BUFFER);
    ssl->buffers.outputBuffer.buffer = ssl->buffers.outputBuffer.staticBuffer;
    ssl->buffers.outputBuffer.bufferSize  = STATIC_BUFFER_LEN;
    ssl->buffers.outputBuffer.dynamicFlag = 0;
    ssl->buffers.outputBuffer.offset      = 0;
}
void ShrinkOutputBuffer ( WOLFSSL * ssl ) { WOLFSSL_MSG ( " \n " ) ; XFREE ( ssl -> buffers . outputBuffer . buffer - ssl -> buffers . outputBuffer . offset , ssl -> heap , DYNAMIC_TYPE_OUT_BUFFER ) ; ssl -> buffers . outputBuffer . buffer = ssl -> buffers . outputBuffer . staticBuffer ; ssl -> buffers . outputBuffer . bufferSize = STATIC_BUFFER_LEN ; ssl -> buffers . outputBuffer . dynamicFlag = 0 ; ssl -> buffers . outputBuffer . offset = 0 ; }
Switch dynamic output buffer back to static, buffer is assumed clear
Switch dynamic output buffer back to static buffer is assumed clear