Navigation


Changeset 1180:773498f59520 in freeDiameter for libfdcore/cnxctx.h


Ignore:
Timestamp:
Jun 5, 2013, 4:02:29 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Preparing for future DTLS/SCTP support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/cnxctx.h

    r1127 r1180  
    7878        /* If both conditions */
    7979        struct {
    80                 struct sctps_ctx *array; /* an array of cc_sctp_para.pairs elements -- the #0 is special (session is outside)*/
     80                struct sctp3436_ctx *array; /* an array of cc_sctp_para.pairs elements -- the #0 is special (session is outside)*/
    8181                struct sr_store  *sess_store; /* Session data of the master session, to resume the children sessions */
    82         }               cc_sctps_data;
     82        }               cc_sctp3436_data;
    8383};
    8484
     
    121121
    122122/* TLS over SCTP (multi-stream) */
    123 struct sctps_ctx {
     123struct sctp3436_ctx {
    124124        struct cnxctx   *parent;        /* for info such as socket, conn name, event list */
    125125        uint16_t         strid;         /* Stream # of this session */
     
    134134};
    135135
    136 int fd_sctps_init(struct cnxctx * conn);
    137 int fd_sctps_handshake_others(struct cnxctx * conn, char * priority, void * alt_creds);
    138 int fd_sctps_startthreads(struct cnxctx * conn, int others);
    139 void fd_sctps_bye(struct cnxctx * conn);
    140 void fd_sctps_waitthreadsterm(struct cnxctx * conn);
    141 void fd_sctps_gnutls_deinit_others(struct cnxctx * conn);
    142 void fd_sctps_stopthreads(struct cnxctx * conn);
    143 void fd_sctps_destroy(struct cnxctx * conn);
     136int fd_sctp3436_init(struct cnxctx * conn);
     137int fd_sctp3436_handshake_others(struct cnxctx * conn, char * priority, void * alt_creds);
     138int fd_sctp3436_startthreads(struct cnxctx * conn, int others);
     139void fd_sctp3436_bye(struct cnxctx * conn);
     140void fd_sctp3436_waitthreadsterm(struct cnxctx * conn);
     141void fd_sctp3436_gnutls_deinit_others(struct cnxctx * conn);
     142void fd_sctp3436_stopthreads(struct cnxctx * conn);
     143void fd_sctp3436_destroy(struct cnxctx * conn);
    144144
    145145#endif /* DISABLE_SCTP */
Note: See TracChangeset for help on using the changeset viewer.