El 22/06/17 a las 18:56, Margaret Cullen escribió:
> Hi Stefan,
>
>> On Jun 22, 2017, at 12:27 PM, Stefan Paetow <[log in to unmask]> wrote:
>>
>> Ok,
>>
>>> Am building mech_eap on Mac, but seem to be getting errors that radsec cannot be found. According to Adam, the client mechanism shouldn't need radsec, so why is it trying to build with it?
>> I've been told to pass --enable-acceptor=no. Does this negatively affect anything on a client, or is the 'acceptor' the server side?
> The GSS acceptor is the server side of the GSS connection, so I don’t think this will affect anything unless you want the Mac to be able to server as an RP/SP.
>> Either way, I'm now getting openssl errors:
>>
>> src/crypto/crypto_openssl.c:874:53: error: invalid operands to binary expression ('void' and 'int')
>> if (HMAC_Init_ex(ctx->ctx, key, key_len, md, NULL) != 1) {
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
>> src/crypto/crypto_openssl.c:907:6: error: assigning to 'int' from incompatible type 'void'
>> res = HMAC_Final(ctx->ctx, mac, &mdlen);
>> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> src/crypto/crypto_openssl.c:935:6: error: assigning to 'int' from incompatible type 'void'
>> res = HMAC_Init_ex(ctx, key, key_len, type, NULL);
>> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> src/crypto/crypto_openssl.c:942:6: error: assigning to 'int' from incompatible type 'void'
>> res = HMAC_Final(ctx, mac, &mdlen);
>> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 4 errors generated.
>>
>> While the error is obvious, I'm not sure about the error itself. The version of openssl that was included is 'openssl-0.9.8zg', which is the latest for Mac. It was installed (for build purposes) into /usr/local.
> Could HMAC_*() be void functions on the Mac (i.e. they don’t return anything), but return integers on Linux? That appears to be the issue, from these code snippets and compiler errors.
HMAC_Init_e), HMAC_Update() and HMAC_Final() did not return values in
versions of OpenSSL before 1.0.0.
From the OpenSSL man page.
Regards,
Alejandro
>
> Margaret
>
>> Am I missing something else?
>>
>> With Regards
>>
>> Stefan Paetow
>> Moonshot Industry & Research Liaison Coordinator
>>
>> t: +44 (0)1235 822 125
>> gpg: 0x3FCE5142
>> xmpp: [log in to unmask]
>> skype: stefan.paetow.janet
>>
>> jisc.ac.uk
>>
>> Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.
>>
|