… | |
… | |
2056 | } |
2056 | } |
2057 | } |
2057 | } |
2058 | |
2058 | |
2059 | # poll the write BIO and send the data if applicable |
2059 | # poll the write BIO and send the data if applicable |
2060 | # also decode read data if possible |
2060 | # also decode read data if possible |
2061 | # this is basiclaly our TLS state machine |
2061 | # this is basically our TLS state machine |
2062 | # more efficient implementations are possible with openssl, |
2062 | # more efficient implementations are possible with openssl, |
2063 | # but not with the buggy and incomplete Net::SSLeay. |
2063 | # but not with the buggy and incomplete Net::SSLeay. |
2064 | sub _dotls { |
2064 | sub _dotls { |
2065 | my ($self) = @_; |
2065 | my ($self) = @_; |
2066 | |
2066 | |
… | |
… | |
2255 | |
2255 | |
2256 | return unless $self->{tls}; |
2256 | return unless $self->{tls}; |
2257 | |
2257 | |
2258 | $self->{tls_ctx}->_put_session (delete $self->{tls}) |
2258 | $self->{tls_ctx}->_put_session (delete $self->{tls}) |
2259 | if $self->{tls} > 0; |
2259 | if $self->{tls} > 0; |
2260 | |
2260 | |
2261 | delete @$self{qw(_rbio _wbio _tls_wbuf _on_starttls)}; |
2261 | delete @$self{qw(_rbio _wbio _tls_wbuf _on_starttls)}; |
2262 | } |
2262 | } |
2263 | |
2263 | |
2264 | =item $handle->resettls |
2264 | =item $handle->resettls |
2265 | |
2265 | |