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

SEQS Syntax SEQS("char.expr") Description The UniBasic SEQS function converts the first character in each element of a dynamic array to its ASCII code value. SEQS supports multibyte languages. Example In the following example, the program statement prints the ASCII code corresponding to the value in each element of the dynamic array ARR1. The result is 65}66}67}68. 1-714 UniBasic Commands Reference ARR1 = "A":@AM:"B":@AM:"C":@AM:"D" PRINT SEQS(ARR1) Related Commands UniBasic ASCII, CHAR, CHARS, EBCDIC, SEQ

setAuthenticationDepth Syntax setAuthenticationDepth(context, depth, serverOrClient) 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 setAuthenticationDepth() function sets how deeply UniData should verify before deciding that a certificate is not valid. You can use this function to set both server authentication and client certification, determined by the value in serverOrClient parameter. The default depth for both is 1. The depth is the maximum number of intermediate issuer certificate, or CA certificates which must be examined while verifying an incoming certificate. Specifically, a depth of 0 means that the certificate must be self-signed. A default depth of 1 means that the incoming certificate can be either self-signed, or signed by a CA which is known to the context. Parameters The following table describes each parameter of the syntax. Parameter Description context The Security Context handle. depth Numeric value for verification depth. serverOrClient 1 - Server 2 - Client setAuthenticationDepth Parameters setAuthenticationDepth 1-715

setAuthenticationDepth<br />

Syntax<br />

setAuthenticationDepth(context, depth, serverOrClient)<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 setAuthenticationDepth() function sets how deeply UniData should verify<br />

before deciding that a certificate is not valid.<br />

You can use this function to set both server authentication and client certification,<br />

determined by the value in serverOrClient parameter. The default depth for both is 1.<br />

The depth is the maximum number of intermediate issuer certificate, or CA certificates<br />

which must be examined while verifying an incoming certificate. Specifically,<br />

a depth of 0 means that the certificate must be self-signed. A default depth of 1 means<br />

that the incoming certificate can be either self-signed, or signed by a CA which is<br />

known to the context.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

context The Security Context handle.<br />

depth Numeric value for verification depth.<br />

serverOrClient 1 - Server<br />

2 - Client<br />

setAuthenticationDepth Parameters<br />

setAuthenticationDepth 1-715

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

Saved successfully!

Ooh no, something went wrong!