11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

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.

setCipherSuite<br />

Syntax<br />

setCipherSuite(context,cipherSpecs)<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 setCipherSuite() function enables you to identify which cipher suites to support<br />

for the specified context. It affects the cipher suites and public key algorithms<br />

supported during the SSL/TLS handshake and subsequent data exchanges.<br />

When a context is created, its cipher suites will all be set to SSLv3 suites by default.<br />

The CipherSpecs parameter is a string containing cipher-spec separated by colons.<br />

An SSL cipher specification in cipher-spec is composed of 4 major attributes as well<br />

as several, less significant attributes. These are defined below.<br />

Some of this information on ciphers is excerpted from the mod_ssl open source<br />

package of the Apache web server.<br />

Key Exchange Algorithm - RSA or Diffie-Hellman variants.<br />

Authentication Algorithm - RSA, Diffie-Hellman, DSS or none.<br />

Cipher/Encryption Algorithm - DES, Triple-DES, RC4, RC2, or none.<br />

MAC Digest Algorithm - MD5, SHA or SHA1.<br />

An SSL cipher can also be an export cipher and is either an SSLv2 or SSLv3/TLSv1<br />

cipher (here TLSv1 is equivalent to SSLv3). To specify which ciphers to use, one can<br />

either specify all the ciphers, one at a time, or use aliases to specify the preference<br />

and order for the ciphers.<br />

For detailed information about cipher algorithms, see <strong>UniBasic</strong> Extensions.<br />

setCipherSuite 1-717

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

Saved successfully!

Ooh no, something went wrong!