Changeset 33:e6fcdf12b9a0 in freeDiameter for include/freeDiameter/freeDiameter.h
- Timestamp:
- Oct 29, 2009, 6:05:45 PM (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/freeDiameter.h
r25 r33 258 258 #define STATE_MAX STATE_ZOMBIE 259 259 }; 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() \ 262 const 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 }; 275 extern const char *peer_state_str[]; 261 276 #define STATE_STR(state) \ 262 277 (((unsigned)(state)) <= STATE_MAX ? peer_state_str[((unsigned)(state)) ] : "<Invalid>") … … 316 331 struct { 317 332 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 */ 319 334 const gnutls_datum_t *cert_list; /* The (valid) credentials that the peer has presented */ 320 335 unsigned int cert_list_size;/* Number of certificates in the list */ … … 378 393 * All registered callbacks are called until a callback sets auth = -1 or auth = 1. 379 394 * 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. 380 396 * 381 397 * RETURN VALUE: … … 512 528 int fd_ep_filter( struct fd_list * list, uint32_t flags ); 513 529 int fd_ep_clearflags( struct fd_list * list, uint32_t flags ); 514 515 530 void fd_ep_dump_one( char * prefix, struct fd_endpoint * ep, char * suffix ); 531 void fd_ep_dump( int indent, struct fd_list * eps ); 516 532 517 533 #endif /* _FREEDIAMETER_H */
Note: See TracChangeset
for help on using the changeset viewer.