I am trying to achieve DTLS over SCTP using OpenSSL with c++ on Linux (Fedora21 x86_64)
Problematic Code:
BIO *sbio=BIO_new_dgram_sctp( m_sctp_socket,BIO_NOCLOSE)
Could you please let me know on why OpenSSL is asserting ?
Crashing frame:
#0 0x00007f86fbed98d7 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#1 0x00007f86fbedb53a in __GI_abort () at abort.c:89
#2 0x00007f86fcf7512f in OpenSSLDie () from /lib64/libcrypto.so.1.0.0
#3 0x00007f86fd028c3a in BIO_new_dgram_sctp () from /lib64/libcrypto.so.1.0.0
Gettting the below assertion message runtime at BIO_new_dgram_sctp()
bss_dgram.c(1041): OpenSSL internal error, assertion failed: auth_data
SCTP support in kernel checked:
[blackmamba@fedora21]$ checksctp
SCTP supported
Enabled auth chunk in sysctl
net.sctp.auth_enable = 1
OpenSSL version
OpenSSL 1.0.2a 19 Mar 2015