From: Stephen D. <sd...@gm...> - 2008-10-22 18:40:23
|
On Wed, Oct 22, 2008 at 3:14 AM, Vlad Seryakov <ser...@us...> wrote: > Update of /cvsroot/naviserver/naviserver > In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv17830 > > Modified Files: > ChangeLog > Log Message: > nsssl module ported, sock context and driver context exposed > > > Index: ChangeLog > =================================================================== > RCS file: /cvsroot/naviserver/naviserver/ChangeLog,v > retrieving revision 1.820 > retrieving revision 1.821 > diff -C2 -d -r1.820 -r1.821 > *** ChangeLog 21 Oct 2008 21:46:36 -0000 1.820 > --- ChangeLog 22 Oct 2008 02:14:23 -0000 1.821 > *************** > *** 13,16 **** > --- 13,24 ---- > modules/nstftpd: ported to new driver API > > + modules/nsssl: Ported to new API > + > + nsd/conn.c: Added new Ns_ConnSockContext function which returns sock->arg, > + socket-wide context > + > + Ns_ConnDriverContext will now return connPtr->drvPtr->arg, this is driver-wide > + context. > + These structure members are already public, so Ns_ConnSockContext() and Ns_ConnDriverContext() are not needed: include/ns.h: typedef struct Ns_Sock { Ns_Driver *driver; SOCKET sock; /* Connection socket */ struct sockaddr_in sa; /* Actual peer address */ void *arg; /* Driver context. */ } Ns_Sock; typedef struct Ns_Driver { void *arg; /* Driver callback data. */ ... |