]> git.tuebingen.mpg.de Git - paraslash.git/commit
preparations for user list in memory
authorAndre <maan@meins.(none)>
Wed, 1 Nov 2006 11:21:30 +0000 (12:21 +0100)
committerAndre <maan@meins.(none)>
Wed, 1 Nov 2006 11:21:30 +0000 (12:21 +0100)
commitf269333700038603703ec79c909d514bee731faf
treeeffcbe6d3cf47e1163423cbff83d5094331369a8
parent8e1e5cc794c84fcfee75f701b339ae85a02eb1b8
preparations for user list in memory

The idea is to not lookup the user file/rsa key for
each connection/each buffer to be sent, but to load
it only once on startup.

This patch

* renames list_add to para_list_add, as list_add is
an exported symbol of mysql.h

* makes get_key of crypt.c non-static and renames it to get_rsa_key.
It is used from server.c to load the rsa key.

* introduces struct _user, the new struct to hold user info. It is
meant to replace the current struct user soon.

* Introdoces init_user_list(), populate_user_list() and _get_user()
in server.c. The latter is meant to replace get_user() of command.c

The new functions are not used yet.
12 files changed:
close_on_fork.c
crypt.c
crypt.h
dccp_send.c
grab_client.c
http_send.c
list.h
ortp_send.c
sched.c
server.c
server.h
stat.c