UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

The following table describes the status of each return code. Return Code Status 0 Success. 1-716 UniBasic Commands Reference 1 Invalid Security Context handle. 2 Invalid depth (must be greater than or equal to 0). 3 Invalid value for serverOrClient (must be 1 or 2) Return Code Status

setCipherSuite Syntax setCipherSuite(context,cipherSpecs) Note: This function is case-sensitive. If you want it to be case-insensitive, you must compile your programs using the BASIC command with the -i option. Description The setCipherSuite() function enables you to identify which cipher suites to support for the specified context. It affects the cipher suites and public key algorithms supported during the SSL/TLS handshake and subsequent data exchanges. When a context is created, its cipher suites will all be set to SSLv3 suites by default. The CipherSpecs parameter is a string containing cipher-spec separated by colons. An SSL cipher specification in cipher-spec is composed of 4 major attributes as well as several, less significant attributes. These are defined below. Some of this information on ciphers is excerpted from the mod_ssl open source package of the Apache web server. Key Exchange Algorithm - RSA or Diffie-Hellman variants. Authentication Algorithm - RSA, Diffie-Hellman, DSS or none. Cipher/Encryption Algorithm - DES, Triple-DES, RC4, RC2, or none. MAC Digest Algorithm - MD5, SHA or SHA1. An SSL cipher can also be an export cipher and is either an SSLv2 or SSLv3/TLSv1 cipher (here TLSv1 is equivalent to SSLv3). To specify which ciphers to use, one can either specify all the ciphers, one at a time, or use aliases to specify the preference and order for the ciphers. For detailed information about cipher algorithms, see UniBasic Extensions. setCipherSuite 1-717

The following table describes the status of each return code.<br />

Return<br />

Code Status<br />

0 Success.<br />

1-716 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

1 Invalid Security Context handle.<br />

2 Invalid depth (must be greater than or equal to 0).<br />

3 Invalid value for serverOrClient (must be 1 or 2)<br />

Return Code Status

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

Saved successfully!

Ooh no, something went wrong!