Mercurial > hg > freeDiameter-dtls
diff libfdcore/cnxctx.h @ 1188:e1ced4db7f67
Backup work in progress on DTLS, not usable
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Tue, 11 Jun 2013 18:13:29 +0800 |
parents | 56c36d1007b4 |
children | 76ac4bb75f0e |
line wrap: on
line diff
--- a/libfdcore/cnxctx.h Mon Jun 10 12:05:38 2013 +0800 +++ b/libfdcore/cnxctx.h Tue Jun 11 18:13:29 2013 +0800 @@ -121,6 +121,11 @@ ssize_t fd_sctp_sendstrv(struct cnxctx * conn, uint16_t strid, const struct iovec *iov, int iovcnt); int fd_sctp_recvmeta(struct cnxctx * conn, uint16_t * strid, uint8_t ** buf, size_t * len, int *event); +/* DTLS over SCTP */ +int fd_sctp_dtls_prepare(gnutls_session_t session); +int fd_sctp_dtls_settransport(gnutls_session_t session, struct cnxctx * conn); +void * fd_sctp_dtls_rcvthr(void * arg); + /* TLS over SCTP (multi-stream) */ struct sctp3436_ctx { struct cnxctx *parent; /* for info such as socket, conn name, event list */