"Fossies" - the Fresh Open Source Software Archive

Member "zorp-7.0.4/modules/ftp/ftpolicy.h" (28 Oct 2019, 2155 Bytes) of package /linux/privat/zorp-7.0.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "ftpolicy.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 6.0.11_vs_7.0.1.

    1 /***************************************************************************
    2  *
    3  * Copyright (c) 2000-2015 BalaBit IT Ltd, Budapest, Hungary
    4  * Copyright (c) 2015-2018 BalaSys IT Ltd, Budapest, Hungary
    5  *
    6  * This program is free software; you can redistribute it and/or modify
    7  * it under the terms of the GNU General Public License as published by
    8  * the Free Software Foundation; either version 2 of the License, or
    9  * (at your option) any later version.
   10  *
   11  * This program is distributed in the hope that it will be useful,
   12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14  * GNU General Public License for more details.
   15  *
   16  * You should have received a copy of the GNU General Public License along
   17  * with this program; if not, write to the Free Software Foundation, Inc.,
   18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
   19  *
   20  *
   21  ***************************************************************************/
   22 
   23 #ifndef ZORP_MODULES_FTP_FTPOLICY_H
   24 #define ZORP_MODULES_FTP_FTPOLICY_H
   25 
   26 struct _FtpProxy;
   27 
   28 typedef struct _FtpCommandDescriptor
   29 {
   30   unsigned int flags;
   31   char *event;
   32 } FtpCommandDescriptor;
   33 
   34 typedef struct _FtpAnswerDescriptor
   35 {
   36   unsigned int flags;
   37   char *event;
   38 } FTPAnswerDescriptor;
   39 
   40 gboolean ftp_policy_bounce_check(struct _FtpProxy *self,
   41                                     guint  side,
   42                                 ZSockAddr *remote,
   43                                  gboolean  connect);
   44 gboolean ftp_policy_parse_authinfo(struct _FtpProxy *self,
   45                                    const gchar *cmd,
   46                                    GString *param);
   47 GHashTable *ftp_policy_command_hash_create(void);
   48 gboolean ftp_policy_command_hash_search(struct _FtpProxy *self, gchar *command);
   49 guint ftp_policy_command_hash_do(struct _FtpProxy *self);
   50 
   51 ZDimHashTable *ftp_policy_answer_hash_create(void);
   52 guint ftp_policy_answer_hash_do(struct _FtpProxy *self);
   53 
   54 guint ftp_policy_feature_hash_search(struct _FtpProxy *self, const gchar *feature);
   55 void ftp_policy_feature_hash_handle_insert(struct _FtpProxy *self, GHashTable *features);
   56 
   57 #endif