Re: Please help me with ntp_caps

Renaud Deraison <[email protected]>
Newsgroups gmane.comp.security.nessus.devel
Message-ID <[email protected]>
On Tue, Jan 14, 2003 at 01:26:43PM -0500, WILLIAM HEINBOCKEL wrote:
> In an effort to add more client side options, I need to modify
> the ntp_caps struct in libnessus/comm.h.  When I add new vars to
> that struct, uninstall nessus, compile the libraries, and install them
> (adding the lib path to /etc/ld.so.conf and running /sbin/ldconfig),
> my other code in nessus/d can't see them.
> 
> Is the structure/vars of ntp_caps hard coded into the configs somewhere?
> Or, may the code is not being linked to the libraries correctly?
> 
> Any suggestions? (Renaud? Mike?)
> 
> Thus far, I have:
> 1. added "int dep:1;" as the last var in the ntp_caps struct in
> libnessus/comm.h
> 2. added "else if(!strcmp( t, "dep" )) caps->dep = 1;" to nessusd/comm.c
> Diffs attached...

The struct ntp_caps is redeclared in nessus-core/include/nessus-devel.h
(yes, that's UGLY). You need to modify this one as well.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.