bugfix: check for renegotiation and resumption corrected