[FFmpeg-devel] [PATCH] TLS OPENSSL SSL_get_error

Mirko Puliafito mirko.puliafito at gmail.com
Thu Aug 29 09:19:22 CEST 2013


Ok,

what about this:

ret = SSL_get_error(c->ssl, ret);
 if (ret == SSL_ERROR_WANT_READ) {
p.events = POLLIN;
 } else if (ret == SSL_ERROR_WANT_WRITE) {
p.events = POLLOUT;
 } else {
if(ret == SSL_ERROR_SYSCALL)
 return AVERROR(errno);
else{
 av_log(h, AV_LOG_ERROR, "%s\n", ERR_error_string(ERR_get_error(), NULL));
 return AVERROR(EIO);
}
    }

If it's ok I'll make a patch..

Mirko


More information about the ffmpeg-devel mailing list