Navigation


Changeset 29:5ba91682f0bc in freeDiameter for freeDiameter/fD.h


Ignore:
Timestamp:
Oct 28, 2009, 3:19:50 PM (15 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added a test for cnxctx (tbc) and fixed some bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/fD.h

    r28 r29  
    177177        (((int)(_e) >= FDEVP_DUMP_ALL) && ((int)(_e) <= FDEVP_PSM_TIMEOUT))
    178178
     179/* The data structure for FDEVP_CNX_INCOMING events */
     180struct cnx_incoming {
     181        struct msg      * cer;          /* the CER message received on this connection */
     182        struct cnxctx   * cnx;          /* The connection context */
     183        int               validate;     /* The peer is new, it must be validated (by an extension) or error CEA to be sent */
     184};
     185
    179186/* Structure to store a sent request */
    180187struct sentreq {
     
    190197int  fd_peer_alloc(struct fd_peer ** ptr);
    191198int  fd_peer_free(struct fd_peer ** ptr);
    192 int fd_peer_handle_newCER( struct msg ** cer, struct cnxctx ** cnx, int tls_done );
     199int fd_peer_handle_newCER( struct msg ** cer, struct cnxctx ** cnx );
    193200/* fd_peer_add declared in freeDiameter.h */
     201int fd_peer_validate( struct fd_peer * peer );
    194202
    195203/* Peer expiry */
     
    216224struct cnxctx * fd_cnx_cli_connect_tcp(sSA * sa, socklen_t addrlen);
    217225struct cnxctx * fd_cnx_cli_connect_sctp(int no_ip6, uint16_t port, struct fd_list * list);
     226int             fd_cnx_start_clear(struct cnxctx * conn, int loop);
     227int             fd_cnx_handshake(struct cnxctx * conn, int mode, char * priority, void * alt_creds);
    218228char *          fd_cnx_getid(struct cnxctx * conn);
    219 int             fd_cnx_start_clear(struct cnxctx * conn, int loop);
    220 int             fd_cnx_handshake(struct cnxctx * conn, int mode, char * priority);
     229int             fd_cnx_getproto(struct cnxctx * conn);
     230int             fd_cnx_getTLS(struct cnxctx * conn);
    221231int             fd_cnx_getcred(struct cnxctx * conn, const gnutls_datum_t **cert_list, unsigned int *cert_list_size);
    222232int             fd_cnx_getendpoints(struct cnxctx * conn, struct fd_list * local, struct fd_list * remote);
Note: See TracChangeset for help on using the changeset viewer.