source: TI05-delivery/trunk/src/bbftp-server-3.2.0/includes/bbftpd_private_user.h @ 1064

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/trunk/src/bbftp-server-3.2.0/includes/bbftpd_private_user.h@1064
Revision 1064, 1.6 KB checked in by spascoe, 13 years ago (diff)

A python module which provides a function to start the daemon can be
built using the setup.py script. This method of invoking the server
has been briefly tested but no test cases yet.

I've taken out the initialisation/finalisation hooks from the auth API because
we shouldn't need them now. They were written assuming the python interpretter
was going to be embedded within bbftpd, but I've inverted the embedding by
wrapping bbftpd.c:main in a python extension function.

Line 
1/*
2 * includes/bbftpd_private_user.h
3 * Copyright (C) 1999, 2000, 2001, 2002 IN2P3, CNRS
4 * bbftp@in2p3.fr
5 * http://doc.in2p3.fr/bbftp
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20 */ 
21
22/****************************************************************************
23
24 
25 
26 bbftpd_private_user.h  v 2.1.0 2001/05/25  - Header creation
27                         
28*****************************************************************************/
29
30#include <Python.h>
31
32/*
33** This include must contain all global variable to be used for private
34** authentication. All definition to be put here are normal definitions.
35**
36** For example to define the variable myprivatevar as an integer you must
37** add the following line in bbftp_private_user.h
38
39int myprivatevar ;
40
41**/
42
43#define NDG_FTP_VERSION "v0.0.1"
44#define NDG_FTP_PROTOCOL ("NDG-bbFTP" NDG_BBFTP_VERSION)
45
46/* The logmessage size limit is hard coded into the bbFTP source.  I define a macro here to avoid
47   buffer overflows.
48*/
49#define NDG_MAX_LOGMESSAGE 1024
50#define NDG_MESSAGE_LEN 256
Note: See TracBrowser for help on using the repository browser.