Changeset 43:2db15632a63d in freeDiameter for include
- Timestamp:
- Nov 25, 2009, 7:07:09 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- include/freeDiameter
- Files:
-
- 2 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 */ -
include/freeDiameter/libfreeDiameter.h
r34 r43 718 718 } 719 719 720 721 720 */ 721 722 /* Special function: */ 723 uint32_t * fd_dict_get_vendorid_list(struct dictionary * dict); 722 724 723 725 /* … … 1329 1331 1330 1332 /* Define some hard-coded values */ 1333 /* Application */ 1334 #define AI_RELAY 0xffffffff 1335 1331 1336 /* Commands Codes */ 1332 1337 #define CC_CAPABILITIES_EXCHANGE 257 … … 1369 1374 #define AC_ORIGIN_REALM 296 1370 1375 #define AC_INBAND_SECURITY_ID 299 1376 #define ACV_ISI_NO_INBAND_SECURITY 0 1377 #define ACV_ISI_TLS 1 1371 1378 1372 1379 /* Error codes */ … … 2426 2433 * 2427 2434 * PARAMETERS: 2428 * old : Location of a FIFO that is to be emptied and deleted.2435 * old : Location of a FIFO that is to be emptied. 2429 2436 * new : A FIFO that will receive the old data. 2430 2437 * loc_update : if non NULL, a place to store the pointer to new FIFO atomically with the move. 2431 2438 * 2432 2439 * DESCRIPTION: 2433 * Deletea queue and move its content to another one atomically.2440 * Empties a queue and move its content to another one atomically. 2434 2441 * 2435 2442 * RETURN VALUE: … … 2437 2444 * EINVAL : A parameter is invalid. 2438 2445 */ 2439 int fd_fifo_move ( struct fifo * *old, struct fifo * new, struct fifo ** loc_update );2446 int fd_fifo_move ( struct fifo * old, struct fifo * new, struct fifo ** loc_update ); 2440 2447 2441 2448 /*
Note: See TracChangeset
for help on using the changeset viewer.