Use the record layer msg_callback not the SSL object msg_callback