First phase of porting. pterm now compiles and runs under Linux+gtk.
[u/mdw/putty] / unix / uxstore.c
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
13 void *open_settings_w(char *sessionname)
14 {
15 return NULL;
16 }
17
18 void write_setting_s(void *handle, char *key, char *value)
19 {
20 }
21
22 void write_setting_i(void *handle, char *key, int value)
23 {
24 }
25
26 void close_settings_w(void *handle)
27 {
28 }
29
30 void *open_settings_r(char *sessionname)
31 {
32 return NULL;
33 }
34
35 char *read_setting_s(void *handle, char *key, char *buffer, int buflen)
36 {
37 return NULL;
38 }
39
40 int read_setting_i(void *handle, char *key, int defvalue)
41 {
42 return defvalue;
43 }
44
45 void close_settings_r(void *handle)
46 {
47 }
48
49 void del_settings(char *sessionname)
50 {
51 }
52
53 void *enum_settings_start(void)
54 {
55 return NULL;
56 }
57
58 char *enum_settings_next(void *handle, char *buffer, int buflen)
59 {
60 return NULL;
61 }
62
63 void enum_settings_finish(void *handle)
64 {
65 }
66
67 int verify_host_key(char *hostname, int port, char *keytype, char *key)
68 {
69 return 1; /* key does not exist in registry */
70 }
71
72 void store_host_key(char *hostname, int port, char *keytype, char *key)
73 {
74 }
75
76 void read_random_seed(noise_consumer_t consumer)
77 {
78 }
79
80 void write_random_seed(void *data, int len)
81 {
82 }
83
84 void cleanup_all(void)
85 {
86 }