move rsa keys to a file and load at connection

This commit is contained in:
jsorg71
2005-09-26 02:16:37 +00:00
parent 9ad83a3c23
commit 967f6592d5
6 changed files with 147 additions and 42 deletions
+5 -5
View File
@@ -172,9 +172,9 @@ file_read_section(int fd, char* section, struct list* names,
struct list* values)
{
struct stream* s;
char text[256];
char name[256];
char value[256];
char text[512];
char name[512];
char value[512];
char c;
int in_it;
int in_it_index;
@@ -184,7 +184,7 @@ file_read_section(int fd, char* section, struct list* names,
g_file_seek(fd, 0);
in_it_index = 0;
in_it = 0;
g_memset(text, 0, 256);
g_memset(text, 0, 512);
list_clear(names);
list_clear(values);
make_stream(s);
@@ -216,7 +216,7 @@ file_read_section(int fd, char* section, struct list* names,
}
in_it = 0;
in_it_index = 0;
g_memset(text, 0, 256);
g_memset(text, 0, 512);
}
else if (in_it)
{