Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Sample C++ SSL files z/OS Cryptographic Services System SSL Programming SC14-7495-00 |
|
A sample set of files is shipped to provide an example of what is needed to build a C++ System SSL application. These files build one DLL (SECURES) and three programs: client, server, and display_certificate. These sample files are in /usr/lpp/gskssl/examples:
Note: Reference the sample source for SSL environment and connection
attributes. File name and password attributes are hard-coded in the
kdb file.
server (source file: server.cpp) is a multithreaded program that opens a socket on IP address 127.0.0.1, port 4321 and listens for client requests. server can run in either secure (using SSL) mode or nonsecure (using normal socket reads and writes) mode. By default, server runs with one socket listen thread and 20 work threads. The socket listen thread listens for connections from clients and puts each request onto the work list. The work threads check the work list for work and then perform the work. The number of work threads can be specified using the -numthreads parameter when starting server. To get information about the parameters accepted when invoking the server program, issue server -? client (source file: client.cpp) is a single threaded program that connects to the server program and exchanges one or more data packets. client can also run in secure or nonsecure mode, but its mode must match the mode of the server to which it is connecting. The number of connections, the number of read/write packets per connection, the number of bytes in each write packet, and the number of bytes in each read packet can be specified. Multiple clients can be run simultaneously to the same server. To get information about the parameters accepted when invoking the client program, issue client -? display_certificate (source file: display_certificate.c) is a program that can display an X.509 certificate stored in a file. The display_certificate program is only supported as a 31-bit application. The files included in the examples are:
|
Copyright IBM Corporation 1990, 2014
|