]> git.tuebingen.mpg.de Git - paraslash.git/commit
Make crypo a per fd feature
authorAndre <maan@p133.(none)>
Mon, 12 Jun 2006 03:51:41 +0000 (05:51 +0200)
committerAndre <maan@p133.(none)>
Mon, 12 Jun 2006 03:51:41 +0000 (05:51 +0200)
commita87d4a87ac7418084eb78f0bcb3accff1388df3a
treeff679121ce1d41e457a9fae34a3234a5b1d93ae0
parent685a2bc66e77978104039b8173a6039a80d8b733
Make crypo a per fd feature

The current code checked if the global pointers crypt_function_recv and
crypt_function_send are non-NULL. In this case it used the given crypt
functions unconditionally for each fd. This makes it messy to enable
crypto only for some fds.

This patch removes these global pointers in favour of an array of
crypt function pointers. Users may use this function to activate
crypto for each fd separately.
audioc.c
client.c
command.c
net.c
net.h
recv_common.c