Changeset 43:2db15632a63d in freeDiameter for include/freeDiameter/freeDiameter.h
- Timestamp:
- Nov 25, 2009, 7:07:09 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/freeDiameter.h
r42 r43 336 336 int pir_relay; /* The remote peer advertized the relay application */ 337 337 struct fd_list pir_apps; /* applications advertised by the remote peer, except relay (pi_flags.relay) */ 338 int pir_isi; /* Inband-Security-Id advertised (PI_SEC_* bits) */ 338 339 339 340 int pir_proto; /* The L4 protocol currently used with the peer (IPPROTO_TCP or IPPROTO_SCTP) */ … … 423 424 * after the CER is received. An extension must register such callback with peer_validate_register. 424 425 * 425 * If (info->pi_flags.sec == PI_SEC_TLS_OLD) the extension may instruct the daemon explicitely 426 * to not use TLS by clearing info->pi_flags.inband_tls -- only if inband_none is set. 427 * 428 * If (info->pi_flags.sec == PI_SEC_TLS_OLD) and info->pi_flags.inband_tls is set, 426 * The callback can learn if the peer has sent Inband-Security-Id AVPs in runtime.pir_isi fields. 427 * It can also learn if a handshake has already been performed in runtime.pir_cert_list field. 428 * The callback must set the value of config.pic_flags.sec appropriately to allow a connection without TLS. 429 * 430 * If the old TLS mechanism is used, 429 431 * the extension may also need to check the credentials provided during the TLS 430 432 * exchange (remote certificate). For this purpose, it may set the address of a new callback 431 433 * to be called once the handshake is completed. This new callback receives the information 432 * structure as parameter (with pi _sec_dataset) and returns 0 if the credentials are correct,434 * structure as parameter (with pir_cert_list set) and returns 0 if the credentials are correct, 433 435 * or an error code otherwise. If the error code is received, the connection is closed and the 434 436 * peer is destroyed. … … 545 547 void fd_ep_dump( int indent, struct fd_list * eps ); 546 548 549 /***************************************/ 550 /* Applications lists helpers */ 551 /***************************************/ 552 553 int fd_app_merge(struct fd_list * list, application_id_t aid, vendor_id_t vid, int auth, int acct); 554 int fd_app_find_common(struct fd_list * target, struct fd_list * reference); 555 int fd_app_gotcommon(struct fd_list * apps); 556 547 557 #endif /* _FREEDIAMETER_H */
Note: See TracChangeset
for help on using the changeset viewer.