X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=storage.h;h=1b7162799f4214f17dfa3b55231c774d4d62c1b5;hb=9c5951ed35cf9019bf17685b4356212eae1a63b3;hp=4abdac10028fa493bf617aeb848d655bd8991d7b;hpb=5b2b3de044e56f924b224987d4686160b6dcc8e3;p=PuTTY.git diff --git a/storage.h b/storage.h index 4abdac10..1b716279 100644 --- a/storage.h +++ b/storage.h @@ -21,6 +21,10 @@ * then close it using close_settings_w(). At the end of this call * sequence the settings should have been written to the PuTTY * persistent storage area. + * + * A given key will be written at most once while saving a session. + * Keys may be up to 255 characters long. String values have no length + * limit. */ void *open_settings_w(char *sessionname); void write_setting_s(void *handle, char *key, char *value); @@ -67,19 +71,19 @@ void enum_settings_finish(void *handle); * be 0 (entry matches database), 1 (entry is absent in database), * or 2 (entry exists in database and is different). */ -int verify_host_key(char *hostname, char *keytype, char *key); +int verify_host_key(char *hostname, int port, char *keytype, char *key); /* * Write a host key into the database, overwriting any previous * entry that might have been there. */ -void store_host_key(char *hostname, char *keytype, char *key); +void store_host_key(char *hostname, int port, char *keytype, char *key); /* ---------------------------------------------------------------------- * Functions to access PuTTY's random number seed file. */ -typedef void (*noise_consumer_t)(void *data, int len); +typedef void (*noise_consumer_t) (void *data, int len); /* * Read PuTTY's random seed file and pass its contents to a noise