[Tfug] Vsftpd compile error on OpenBSD

Steven Bowers steveb7 at bblabs.net
Tue Jun 7 21:45:45 MST 2005


Jeremy C. Reed wrote:
 >>>>gcc -c tcpwrap.c -O2 -Wall -W -Wshadow -idirafter dummyinc
 >>>>In file included from tcpwrap.c:15:
 >>>>/usr/include/tcpd.h:108: error: syntax error before "size_t"
 >>>>/usr/include/tcpd.h:115: error: syntax error before "in_addr_t"
 >>>>/usr/include/tcpd.h:116: error: syntax error before "dot_quad_addr"
 >
 >
 > Maybe sure the tcpwrap.c includes sys/types.h before it includes tcpd.h.
 >
 > #include <sys/types.h>
 >
 >
 >  Jeremy C. Reed


Thanks to Jeremy vsftpd seems to build correctly with SSL and 
tcpwrappers enabled!! Testing vsftpd I am able to successfully login and 
transfer data. However, SSL is still a bit elusive. I've enabled 
debugging in vsftpd but all I get back from the log is:

Tue Jun  7 21:30:31 2005 [pid 4515] FTP response: Client "192.168.1.1", 
"220 (vsFTPd 2.0.3)"
Tue Jun  7 21:30:31 2005 [pid 4515] FTP command: Client "192.168.1.1", 
"AUTH TLS"
Tue Jun  7 21:30:31 2005 [pid 4515] FTP response: Client "192.168.1.1", 
"234 Proceed with negotiation."

and my ftp client generates the error:
onnect socket #4420 to 192.168.1.1, port 21...
220 (vsFTPd 2.0.3)
AUTH TLS
234 Proceed with negotiation.
SSL/TLS error - 0, SSL error - 5
SSL Connection not established

I've googled but the only relevant thing I'm finding is this, but I 
suspect this is more Linux oriented than BSD.

vsftp - when configured for ssl - is looking for the header files in 
/usr/include/openssl. Well, my openssl package was installed to 
/usr/local/include/openssl. I reran my config for openssl like this:
./config --prefix=/usr --openssldir=/usr/local/openssl
That installed the header files to the base dir of /usr. ARGH! I can't 
believe it was just that!

I believe the header files for OBSD are located in /usr/sbin/openssl and 
suspect there is a way to pass this to vsftpd without having to do 
anything with openssl. Just not sure how.


More information about the tfug mailing list