System SSL also known as GS kit provides an API for doing
- TLS handshakes
- Keyring manipulation
- Encryption and signing of data
See First steps in using system ssl gives some introductions to gskit.
The blog post provides the script I used to compile my programs. Not everything may be relevant.
name=main export _C89_CCMODE=1 p5="-I. -I/usr/include " p7="-Wc,DLL " p8="-Wc,LIST(c.lst),SOURCE,XREX,SHOWINC" p8=" " # no listing/bin/xlc $p5 $p7 $p8 -c $name.c -o $name.o l1="-Wl,LIST=ALL,MAP,XREF " bind=" /usr/lib/GSKCMS31.x /usr/lib/GSKSSL.x " /bin/xlc $name.o ${bind} -o $name -v $l1 1>bind.lst
The output from the C compile goes into c.lst, and from the bind it goes into bind.lst
The gsk includes are in /usr/include.
For the bind you need /usr/lib/GSKCMS31.x /usr/lib/GSKSSL.x
One thought on “First steps in using system ssl: compiling a program”