source: TI05-delivery/trunk/src/bbftp-server-3.2.0/includes/ndg.h @ 1195

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

Defined constants used by bbftp in delivery.server.

Line 
1/**
2 * NDG python embedded bbftp daemon module.
3 *
4 * @author Stephen Pascoe
5 *
6 * Copyright (C) 2006 CCLRC & NERC
7 *
8 * This software may be distributed under the terms of the Q Public Licence, version 1.0 or later.
9 *
10 */
11
12#include <bbftpd.h>
13#include <netinet/in.h>
14#include <structures.h>
15
16/* The logmessage size limit is hard coded into the bbFTP source.  I define a macro here to avoid
17 *  buffer overflows.
18 */
19#define NDG_MAX_LOGMESSAGE 1024
20#define NDG_MESSAGE_LEN 256
21
22#define NDG_STR(s) #s
23#define NDG_XSTR(s) NDG_STR(s)
24#define NDG_HANDSHAKE ("NDG-Delivery-server " NDG_XSTR(NDG_DELIVERY_VERSION))
25
26
27#ifdef NDG_PYTHON_EMBED
28#include <Python.h>
29
30int bbftpd_private_authz_control(int msgcode, int transferoption, char *path, char *logmessage);
31int bbftpd_private_authz_retr(char *path, char *logmessage);
32int bbftpd_private_authz_store(char *path, char *logmessage);
33
34int ndg_message_send(char *buffer, int length, char *logmessage);
35int ndg_message_recv(char **buffer, int *length, char *logmessage);
36
37int ndg_auth(char *logmessage);
38char *ndg_getusername(char *logmessage);
39
40int ndg_authz_control(int msgcode, int transferoption, char *path, char *logmessage);
41int ndg_authz_retr(char *path, char *logmessage);
42int ndg_authz_store(char *path, char *logmessage);
43
44
45#endif // NDG_PYTHON_EMBED
Note: See TracBrowser for help on using the repository browser.