Navigation



Ignore:
Timestamp:
Oct 29, 2009, 6:05:45 PM (15 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added a lot of TODOs :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/freeDiameter.h

    r25 r33  
    258258#define STATE_MAX STATE_ZOMBIE
    259259};
    260 extern const char *peer_state_str[]; /* defined in freeDiameter/p_psm.c */
     260/* The following macro is called in freeDiameter/p_psm.c */
     261#define DECLARE_STATE_STR()             \
     262const char *peer_state_str[] = {        \
     263          "STATE_NEW"                   \
     264        , "STATE_OPEN"                  \
     265        , "STATE_CLOSED"                \
     266        , "STATE_CLOSING"               \
     267        , "STATE_WAITCNXACK"            \
     268        , "STATE_WAITCNXACK_ELEC"       \
     269        , "STATE_WAITCEA"               \
     270        , "STATE_OPEN_HANDSHAKE"        \
     271        , "STATE_SUSPECT"               \
     272        , "STATE_REOPEN"                \
     273        , "STATE_ZOMBIE"                \
     274        };
     275extern const char *peer_state_str[];
    261276#define STATE_STR(state) \
    262277        (((unsigned)(state)) <= STATE_MAX ? peer_state_str[((unsigned)(state)) ] : "<Invalid>")
     
    316331        struct {
    317332                char                    *priority;      /* In case the default priority is not appropriate */
    318                 /* This is inspired from http://www.gnu.org/software/gnutls/manual/gnutls.html#ex_003ax509_002dinfo */
     333                /* This is inspired from http://www.gnu.org/software/gnutls/manual/gnutls.html#ex_003ax509_002dinfo see there for example of using this data */
    319334                const gnutls_datum_t    *cert_list;     /* The (valid) credentials that the peer has presented */
    320335                unsigned int             cert_list_size;/* Number of certificates in the list */
     
    378393 * All registered callbacks are called until a callback sets auth = -1 or auth = 1.
    379394 * If no callback returns a clear decision, the default behavior is applied (reject unknown connections)
     395 * The callbacks are called in FILO order of their registration.
    380396 *
    381397 * RETURN VALUE:
     
    512528int fd_ep_filter( struct fd_list * list, uint32_t flags );
    513529int fd_ep_clearflags( struct fd_list * list, uint32_t flags );
    514 
    515 
     530void fd_ep_dump_one( char * prefix, struct fd_endpoint * ep, char * suffix );
     531void fd_ep_dump( int indent, struct fd_list * eps );
    516532
    517533#endif /* _FREEDIAMETER_H */
Note: See TracChangeset for help on using the changeset viewer.