Navigation


Changeset 256:042af0000c0a in freeDiameter for extensions/app_radgw/rgw_common.h


Ignore:
Timestamp:
Apr 16, 2010, 4:57:39 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Ported the auth plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_radgw/rgw_common.h

    r255 r256  
    5656/* This structure points to a RADIUS client description, the definition is not known to plugins */
    5757struct rgw_client;
     58/* This function is required to be able to translate user paswords */
     59int rgw_clients_getkey(struct rgw_client * cli, unsigned char **key, size_t *key_len);
    5860
    5961/* Each plugin must provide the following structure. */
    6062extern struct rgw_api {
     63        /* The name of the plugin */
     64        const char * rgwp_name;
     65
    6166        /* Parse the configuration file. It may be called several times with different configurations.
    62             Returns NULL on errors.
    63             Called even if no configuration file is passed (with NULL parameter then) */
    64         struct rgwp_config * (*rgwp_conf_parse) ( char * conf_file );
     67            Called even if no configuration file is passed (with NULL conf_file parameter then) */
     68        int (*rgwp_conf_parse) ( char * conf_file, struct rgwp_config ** state );
    6569       
    66         /* Cleanup the configuration state when the daemon is exiting. */
    67         void (*rgwp_conf_free) (struct rgwp_config * conf);
     70        /* Cleanup the configuration state when the daemon is exiting (called even if state is NULL). */
     71        void (*rgwp_conf_free) (struct rgwp_config * state);
    6872
    6973        /* handle an incoming RADIUS message */
Note: See TracChangeset for help on using the changeset viewer.