22.10.2013 Views

System i: Programming Secure Sockets APIs - IBM

System i: Programming Secure Sockets APIs - IBM

System i: Programming Secure Sockets APIs - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>APIs</strong><br />

These are the <strong>APIs</strong> for this category.<br />

i5/OS Global <strong>Secure</strong> Toolkit (GSKit) <strong>APIs</strong><br />

GSkit <strong>APIs</strong>, when used in addition to the existing i5/OS <strong>Sockets</strong> <strong>APIs</strong>, provide the functions<br />

required for applications to establish secure communications. An application using GSKit for secure<br />

communications basically is a client/server application written using sockets.<br />

i5/OS ®<br />

The GSKit <strong>APIs</strong> are:<br />

v “gsk_attribute_get_buffer()—Get character information about a secure session or an SSL environment”<br />

on page 3 (Get character information about a secure session or an SSL environment) is used to obtain<br />

specific character string information about a secure session or an SSL environment.<br />

v “gsk_attribute_get_cert_info()—Get information about a local or partner certificate” on page 6 (Get<br />

information about a local or partner certificate) is used to obtain specific information about either the<br />

server or client certificate for a secure session or an SSL environment.<br />

v “gsk_attribute_get_enum()—Get enumerated information about a secure session or an SSL<br />

environment” on page 10 (Get enumerated information for a secure session or an SSL environment) is<br />

used to obtain values for specific enumerated data for a secure session or an SSL environment.<br />

v “gsk_attribute_get_numeric_value()—Get numeric information about a secure session or an SSL<br />

environment” on page 14 (Get numeric information about a secure session or an SSL environment) is<br />

used to obtain specific numeric information about a secure session or an SSL environment.<br />

v “gsk_attribute_set_buffer()—Set character information for a secure session or an SSL environment” on<br />

page 16 (Set character information for a secure session or an SSL environment) is used to set a<br />

specified buffer attribute to a value inside the specified secure session or SSL environment.<br />

v “gsk_attribute_set_callback()—Set callback pointers to routines in the user application” on page 20 (Set<br />

callback pointers to routines in the user application) is used to set callback callback pointers to routines<br />

in the user application.<br />

v “gsk_attribute_set_enum()—Set enumerated information for a secure session or an SSL environment”<br />

on page 24 (Set enumerated information for a secure session or an SSL environment) is used to set a<br />

specified enumerated type attribute to an enumerated value in the secure session or SSL environment.<br />

v “gsk_attribute_set_numeric_value()—Set numeric information for a secure session or an SSL<br />

environment” on page 28 (Set numeric information for a secure session or an SSL environment) is used<br />

to set specific numeric information for a secure session or an SSL environment.<br />

v “gsk_environment_close()—Close an SSL environment” on page 30 (Close an SSL environment) is used<br />

to close the SSL environment and release all storage associated with the environment.<br />

v “gsk_environment_init()—Initialize an SSL environment” on page 32 (Initialize an SSL environment) is<br />

used to initialize the SSL environment after any required attributes are set.<br />

v “gsk_environment_open()—Get a handle for an SSL environment” on page 34 (Get a handle for an SSL<br />

environment) is used to get storage for the SSL environment.<br />

v “gsk_secure_soc_close()—Close a secure session” on page 37 (Close a secure session) is used to close a<br />

secure session and free all the associated resources for that secure session.<br />

v “gsk_secure_soc_init()—Negotiate a secure session” on page 38 (Negotiate a secure session) is used to<br />

negotiate a secure session, using the attributes set for the SSL environment and the secure session.<br />

v “gsk_secure_soc_misc()—Perform miscellaneous functions for a secure session” on page 41 (Perform<br />

miscellaneous functions for a secure session) is used to perform miscellaneous functions for a secure<br />

session.<br />

v “gsk_secure_soc_open()—Get a handle for a secure session” on page 44 (Get a handle for a secure<br />

session) is used to get storage for a secure session, set default values for attributes, and return a handle<br />

that must be saved and used on secure session-related function calls.<br />

2 <strong>System</strong> i: <strong>Programming</strong> <strong>Secure</strong> <strong>Sockets</strong> <strong>APIs</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!