Navigation


Changeset 1181:22de21feec64 in freeDiameter for libfdcore/cnxctx.h


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

Preparing for DTLS support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/cnxctx.h

    r1180 r1181  
    4141/* The connection context structure */
    4242struct cnxctx {
    43         char            cc_id[60];      /* The name of this connection */
     43        char            cc_id[60];      /* The name of this connection. the first 5 chars are reserved for flags display (cc_state). */
    4444        char            cc_remid[60];   /* Id of remote peer */
    4545       
     
    6565                DiamId_t                         cn;            /* If not NULL, remote certif will be checked to match this Common Name */
    6666                int                              mode;          /* GNUTLS_CLIENT / GNUTLS_SERVER */
     67                int                              algo;          /* ALGO_HANDSHAKE_DEFAULT / ALGO_HANDSHAKE_3436 */
    6768                gnutls_session_t                 session;       /* Session object (stream #0 in case of SCTP) */
    6869        }               cc_tls_para;
     
    9798/* TLS */
    9899int fd_tls_rcvthr_core(struct cnxctx * conn, gnutls_session_t session);
    99 int fd_tls_prepare(gnutls_session_t * session, int mode, char * priority, void * alt_creds);
     100int fd_tls_prepare(gnutls_session_t * session, int mode, int dtls, char * priority, void * alt_creds);
    100101#ifndef GNUTLS_VERSION_300
    101102int fd_tls_verify_credentials(gnutls_session_t session, struct cnxctx * conn, int verbose);
Note: See TracChangeset for help on using the changeset viewer.