RDT_Base.SetTLSContext (METH)ΒΆ
METHOD SetTLSContext : NBS.ERROR
Sets all the data neccessary to handle encrypted tcp connections
- InOut:
Scope
Name
Type
Initial
Comment
Return
SetTLSContextNBS.ERRORInput
xUseCertBOOLIf the certificate is used or not
psUseCaseNamePOINTER TO STRING
A name to identify this context in the security manager, the name can be completely user defined
ePurposeNBS.PURPOSEThis context can be used on the server side or on the client side.
psTLSVersionPOINTER TO STRING
A string to select the correct protocol version
psCipherListPOINTER TO NBS.CIPHER_LIST
A string to select the correct encryption cipher suites.psHostnamePOINTER TO STRING
A hostname to select the correct certificate on the server side.
udiVerificationModeUDINT1 => No peer verification2 => Active Peer verification(4) => 2+4 = 6 => Force termination, if no client certificate(8) => 2+8=10 or 2+4+8 = 14 => Request client certificate only whithin initial handshakepsCertCommonNamePOINTER TO STRING
A string to select the correct certificate in local certificate store It can be empty in case of an external cert handle is passed
hCertRTS_IEC_HANDLERTS_INVALID_HANDLE
External cert handle to use. Exclusive use vs cert name
itfCertVeriferNBS.ICertificateVerifierA callback for application specific certificate verification