[openssl-dev] [openssl.org #4396]: OS X 10-5, 64-bit PowerPC, error: 'split_send_fragment' undeclared (first use in this function)

Matt Caswell matt at openssl.org
Tue Mar 8 00:04:54 UTC 2016



On 07/03/16 23:43, noloader at gmail.com via RT wrote:
> On Mon, Mar 7, 2016 at 6:29 PM, Matt Caswell via RT <rt at openssl.org> wrote:
>> Fix already on the way.
>>
> 
> Thanks.  I'm not sure what's triggering it on OS X because those
> defines don't seem to show up in the configuration gear:


EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK is defined in evp.h:

# define         EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK 0x400000


Then at the top of rec_layer_s3.c we have this:

#if     defined(OPENSSL_SMALL_FOOTPRINT) || \
        !(      defined(AES_ASM) &&     ( \
                defined(__x86_64)       || defined(__x86_64__)  || \
                defined(_M_AMD64)       || defined(_M_X64)      || \
                defined(__INTEL__)      ) \
        )
# undef EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK
# define EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK 0
#endif

So, if the above condition evaluates to true then
EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK is redefined to be 0 and then when we
get here:

#if !defined(OPENSSL_NO_MULTIBLOCK) && EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK
    unsigned int max_send_fragment, split_send_fragment, maxpipes;
    unsigned int u_len = (unsigned int)len;
#endif

The condition will evaluate to false, and so the variables in question
will not be defined.

Matt


More information about the openssl-dev mailing list