void store_host_key(char *hostname, int port, char *keytype, char *key)
void store_host_key(const char *hostname, int port, const char *keytype, const char *key)
void store_host_key(char *hostname, int port, char *keytype, char *key){    char *regname;    HKEY rkey;    regname = smalloc(3 * (strlen(hostname) + strlen(keytype)) + 15);    hostkey_regname(regname, hostname, port, keytype);    if (RegCreateKey(HKEY_CURRENT_USER, PUTTY_REG_POS "\\SshHostKeys",		     &rkey) != ERROR_SUCCESS)	return;			       /* key does not exist in registry */    RegSetValueEx(rkey, regname, 0, REG_SZ, key, strlen(key) + 1);    RegCloseKey(rkey);}