Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] OpenSSL error

Hi,

I'm still seeing it a lot in mosquitto 1.4.10 log:

Oct 09 18:23:22 mosquitto[2828]: OpenSSL Error: error:140F3042:SSL 
routines:SSL_UNDEFINED_CONST_FUNCTION:called a function you should not call

and it's always followed by "Socket error":

Oct 09 18:23:22 mosquitto[2828]: Socket error on client <unknown>, 
disconnecting.

And many of the times the client id in the following socket error log 
line is <unknown>.

So calling SSL_pending() actually causes socket error and connection lost?

It's mosquitto 1.4.10 running on Ubuntu 14.04 LTS x86_64.


Thanks
Khitai

On 2015/12/8 4:43, Roger Light wrote:
> Hi Jon,
>
> I was wrong, I do use SSL_pending, I should have been looking in the
> .h files as well.
>
> It looks like I'm calling SSL_pending() on a connection that hasn't
> yet completed its handshake, so the SSL_pending function isn't in use.
>
> The good news for you is that it doesn't particularly matter apart
> from the messages in your logs. It should be fixed of course.
>
> I think the other message is probably unrelated.
>
> Cheers,
>
> Roger
>
>
>
> On Mon, Dec 7, 2015 at 5:20 PM, Jon Mansey <jon@xxxxxxxxxx> wrote:
>> Roger, Its Debian Jessie, mosquitto version 1.4.3, OpenSSL 1.0.1k 8 Jan 2015
>>
>> I got this extra one the other day too, not sure if its related
>>
>> Dec  4 01:29:31 dev mosquitto[9626]: OpenSSL Error: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac
>>
>> Jon
>>
>>> Date: Sun, 6 Dec 2015 22:42:33 +0000
>>> From: Roger Light <roger@xxxxxxxxxx>
>>> To: General development discussions for the mosquitto project
>>>        <mosquitto-dev@xxxxxxxxxxx>
>>> Subject: Re: [mosquitto-dev] OpenSSL error
>>> Message-ID:
>>>        <CAH7zdyc2f+hY4vJbwwGtk5dvY8VtXtMkx-LZNHLoHUg38h4J2A@xxxxxxxxxxxxxx>
>>> Content-Type: text/plain; charset=UTF-8
>>>
>>> Hi Jon,
>>>
>>> [1] suggests this is related to SSL_pending(), but that isn't used by
>>> mosquitto. What OS, mosquitto version and openssl version are you
>>> using?
>>>
>>> Cheers,
>>>
>>> Roger
>>>
>>> [1] http://stackoverflow.com/questions/19286131/why-does-openssl-give-me-a-called-a-function-you-should-not-call-error
>>>
>>> On Thu, Dec 3, 2015 at 5:33 PM, Jon Mansey <jon@xxxxxxxxxx> wrote:
>>>> Im seeing this intermittently in my logs
>>>>
>>>> Dec  3 16:50:09 dev mosquitto[9626]: OpenSSL Error: error:140F3042:SSL
>>>> routines:SSL_UNDEFINED_CONST_FUNCTION:called a function you should not call
>>>> Dec  3 16:50:19 dev mosquitto[9626]: OpenSSL Error: error:140F3042:SSL
>>>> routines:SSL_UNDEFINED_CONST_FUNCTION:called a function you should not call
>>>> Dec  3 16:50:26 dev mosquitto[9626]: OpenSSL Error: error:140F3042:SSL
>>>> routines:SSL_UNDEFINED_CONST_FUNCTION:called a function you should not call
>>>> Dec  3 16:50:51 dev mosquitto[9626]: OpenSSL Error: error:140F3042:SSL
>>>> routines:SSL_UNDEFINED_CONST_FUNCTION:called a function you should not call
>>>> Dec  3 16:50:59 dev mosquitto[9626]: OpenSSL Error: error:140F3042:SSL
>>>> routines:SSL_UNDEFINED_CONST_FUNCTION:called a function you should not call
>>>> Dec  3 16:51:05 dev mosquitto[9626]: OpenSSL Error: error:140F3042:SSL
>>>> routines:SSL_UNDEFINED_CONST_FUNCTION:called a function you should not call
>>>> Dec  3 16:51:17 dev mosquitto[9626]: OpenSSL Error: error:140F3042:SSL
>>>> routines:SSL_UNDEFINED_CONST_FUNCTION:called a function you should not call
>>>>
>>>>
>>>> any ideas why thats happening?
>>>>
>> _______________________________________________
>> mosquitto-dev mailing list
>> mosquitto-dev@xxxxxxxxxxx
>> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev



Back to the top