11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

createSecurityContext<br />

Syntax<br />

createSecurityContext(context, version)<br />

Note: This function is case-sensitive. If you want it to be case-insensitive, you<br />

must compile your programs using the BASIC command with the -i option.<br />

Description<br />

The createSecurityContext function creates a security context and returns a handle<br />

to the context.<br />

A security context is a data structure that holds all aspects of security characteristics<br />

that the application intends to associate with a secured connection. Specifically, the<br />

following information may be held for each context:<br />

Protocol version<br />

Sender’s certificate to be sent to the peer<br />

Issuer’s certificate or certificate chain to be used to authenticate incoming<br />

certificate<br />

Certificate verification depth<br />

Certificate Revocation List<br />

Sender’s private key for signature and key exchange<br />

Flag to perform client authentication (useful for server socket only)<br />

Context ID and time stamp<br />

For detailed information about the createSecurityContext function, see <strong>UniBasic</strong><br />

Extensions.<br />

createSecurityContext 1-186

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

Saved successfully!

Ooh no, something went wrong!