User Tools

Site Tools


building_openssl_1.0.1_with_sctp_support

Building OpenSSL 1.0.1 with SCTP support

Download OpenSSL 1.0.1c or higher from http://www.openssl.org and detar it.

# Configure OpenSSL for Mac OS X 64 bit

./Configure darwin64-x86_64-cc sctp threads shared –prefix=$HOME/install

# Configure OpenSSL for any other system (Linux, FreeBSD, Solaris…)

./config sctp threads shared –prefix=$HOME/install

# Build everything and install software only (skips man pages to save a lot of time)

make

make install_sw

# Download Charachter Generator test program and certificates

dtls_sctp_chargen.zip

# Unzip

unzip dtls_sctp_chargen.zip

cd dtls_sctp_chargen

# Build Mac OS X or Linux

gcc -g -O2 -Wall -g -ansi -pedantic -L$HOME/install/lib -I$HOME/install/include -o dtls_sctp_chargen dtls_sctp_chargen.c -lssl -lcrypto -lpthread -lsctp

# Build FreeBSD

gcc -g -O2 -Wall -g -ansi -pedantic -L$HOME/install/lib -I$HOME/install/include -o dtls_sctp_chargen dtls_sctp_chargen.c -lssl -lcrypto -lpthread

# Set required environment variable for FreeBSD and Linux (bash)

export LD_LIBRARY_PATH=$HOME/install/lib

# Set required environment variable for FreeBSD and Linux (tcsh)

setenv LD_LIBRARY_PATH $HOME/install/lib

# Start server

./dtls_sctp_chargen

# Start client

./dtls_sctp_chargen 127.0.0.1

# Expected output (client)

Statistics:
========================================
Sent messages:                     17744
Received messages:                 17788

Sent messages on stream       0:    3516
Received messages on stream   0:    3520

Sent messages on stream       1:    3588
Received messages on stream   1:    3603

Sent messages on stream       2:    3611
Received messages on stream   2:    3622

Sent messages on stream       3:    3421
Received messages on stream   3:    3429

Sent messages on stream       4:    3608
Received messages on stream   4:    3614

Renegotiations initiated:             28


Numbers may vary, since random number generators are involved. If there is a problem,
no such message is shown, but an error message.
building_openssl_1.0.1_with_sctp_support.txt · Last modified: by admin