2be4d6751e37909e8d0e0464e32335714063d03d
[radsecproxy.git] / lib / HACKING
1 HACKING file for libradsec (in Emacs -*- org -*- mode).
2
3 Status as of libradsec-0.0.1-dev (2011-03-12).
4
5 * Build instructions
6 cd libradsec/lib
7 sh autogen.sh
8 ./configure #--enable-tls
9 make
10
11 examples/client -r examples/client-tls.conf blocking-tls; echo $?
12
13 * Design of the API
14 - There are three usage modes
15   - You use the send and receive calls (blocking mode)
16   - You register callbacks and run the libevent dispatch loop (user
17     dispatch mode)
18   - You run your own event loop, using fd's for select and do the I/O
19     using the libradsec send/receive calls (on-your-own mode)
20 - Fully reentrant (FIXME: any issues with libfreeradius-radius?)
21
22 * Dependencies
23 This is on Ubuntu 10.10.
24
25 - libfreeradius-radius (2.1.9+dfsg-1ubuntu1)
26   sudo apt-get install libfreeradius-dev libfreeradius2
27 - libconfuse (2.7-1)
28   sudo apt-get install libconfuse-dev libconfuse0
29 - libevent from source (release-2.0.10-stable)
30   git clone --branch release-2.0.10-stable git://levent.git.sourceforge.net/gitroot/levent/levent
31   cd levent; sh autogen.sh && ./configure --enable-openssl
32   make && sudo make install
33   
34 * Functionality and quality
35 ** Tested and verified
36 ** Not well tested
37 - reading config file
38 - [TCP] short read
39 - [TCP] short write
40 - [TLS] basic tls support
41 ** Known issues
42 - leaking memory
43 - error stack is only one entry deep
44 ** Not implemented
45 - custom allocation scheme used in all places
46 - server failover
47 - [TLS] verification of CNAME
48 - [TLS] preshared key support
49 - [DTLS] support