Re: SSL_read() failed: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 26/10/17 11:22, Kadlecsik József wrote:
> Hello,
> 
> We upgraded one of our dovecot servers to debian stretch with dovecot 
> 2.2.27 and since then an alpine MUA user has been experiencing random IMAP 
> failures.
> 
> We enabled debugging at both sides, the client tells only:
> 
> {XXXX}INBOX: [CLOSED] IMAP connection broken (server response)
> 
> and we could verify that the client indeed did not receive the server 
> response.
> 
> On the server side the raw log shows that the correct response is pushed 
> to the client, but at the same time in the debug log we see:
> 
> Oct 20 18:50:05 mail2 dovecot: imap-login: Debug: SSL error: SSL_read() 
> failed: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init
> 
> The openssl package is 1.1.0f-3.
> 
> The error messsage is total cryptic to me: how could three states be 
> intermixed?
> 
> I think it's a dovecot issue about how the openssl library is used but I'm 
> unfamiliar with the details of the openssl library: what function, macro 
> is used incorrectly then, at which state?

SSL_shutdown() is used to shut down an SSL/TLS connection that has
already been established (meaning that the SSL/TLS handshake has
completed and we are ready to send/receive application data). If you
call SSL_shutdown() while the handshake is still in progress then you
get the "shutdown while in init" error message.

Matt

-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux