First phase of porting. pterm now compiles and runs under Linux+gtk.
[u/mdw/putty] / unix / uxstore.c
CommitLineData
1709795f 1/*
2 * uxstore.c: Unix-specific implementation of the interface defined
3 * in storage.h.
4 */
5
6#include <stdio.h>
7#include <stdlib.h>
8#include "putty.h"
9#include "storage.h"
10
11/* FIXME. For the moment, we do nothing at all here. */
12
13void *open_settings_w(char *sessionname)
14{
15 return NULL;
16}
17
18void write_setting_s(void *handle, char *key, char *value)
19{
20}
21
22void write_setting_i(void *handle, char *key, int value)
23{
24}
25
26void close_settings_w(void *handle)
27{
28}
29
30void *open_settings_r(char *sessionname)
31{
32 return NULL;
33}
34
35char *read_setting_s(void *handle, char *key, char *buffer, int buflen)
36{
37 return NULL;
38}
39
40int read_setting_i(void *handle, char *key, int defvalue)
41{
42 return defvalue;
43}
44
45void close_settings_r(void *handle)
46{
47}
48
49void del_settings(char *sessionname)
50{
51}
52
53void *enum_settings_start(void)
54{
55 return NULL;
56}
57
58char *enum_settings_next(void *handle, char *buffer, int buflen)
59{
60 return NULL;
61}
62
63void enum_settings_finish(void *handle)
64{
65}
66
67int verify_host_key(char *hostname, int port, char *keytype, char *key)
68{
69 return 1; /* key does not exist in registry */
70}
71
72void store_host_key(char *hostname, int port, char *keytype, char *key)
73{
74}
75
76void read_random_seed(noise_consumer_t consumer)
77{
78}
79
80void write_random_seed(void *data, int len)
81{
82}
83
84void cleanup_all(void)
85{
86}