Add an update to enable a user to specify a function for extracting a host key.