TeamTalk 5 C-API DLL Version 5.15A
Loading...
Searching...
No Matches
EncryptionContext Struct Reference

Configure peer verification for encrypted connection. More...

#include <TeamTalk.h>

Public Attributes

TTCHAR szCertificateFile [TT_STRLEN]
 Path to SSL certificate in PEM format.
 
TTCHAR szPrivateKeyFile [TT_STRLEN]
 Path to certificate's private key.
 
TTCHAR szCAFile [TT_STRLEN]
 Path to Certificate Authority (CA) Certificate in PEM format.
 
TTCHAR szCADir [TT_STRLEN]
 Path to directory containing Certificate Authority (CA) Certificates in PEM format.
 
TTBOOL bVerifyPeer
 Verify that peer (client or server) uses a certificate that has been generated by the Certificate Authority contained in szCAFile or szCAdir.
 
TTBOOL bVerifyClientOnce
 Whether to only verify client's certificate once during initial connection.
 
INT32 nVerifyDepth
 Set limit to depth in the certificate chain during the verification procedure.
 

Detailed Description

Configure peer verification for encrypted connection.

Client and server can verify that the remote end is using a valid cerficate that has been issued by the same certification authority.

Call TT_SetEncryptionContext() to set up peer verification.

Definition at line 2668 of file TeamTalk.h.

Member Data Documentation

◆ szCertificateFile

TTCHAR EncryptionContext::szCertificateFile[TT_STRLEN]

Path to SSL certificate in PEM format.

If server has enabled bVerifyPeer then the client (TTInstance) must have specified its certificate and private key.

Definition at line 2675 of file TeamTalk.h.

◆ szPrivateKeyFile

TTCHAR EncryptionContext::szPrivateKeyFile[TT_STRLEN]

Path to certificate's private key.

Definition at line 2677 of file TeamTalk.h.

◆ szCAFile

TTCHAR EncryptionContext::szCAFile[TT_STRLEN]

Path to Certificate Authority (CA) Certificate in PEM format.

If there's multiple CA certificates use szCADir.

Definition at line 2682 of file TeamTalk.h.

◆ szCADir

TTCHAR EncryptionContext::szCADir[TT_STRLEN]

Path to directory containing Certificate Authority (CA) Certificates in PEM format.

Definition at line 2685 of file TeamTalk.h.

◆ bVerifyPeer

TTBOOL EncryptionContext::bVerifyPeer

Verify that peer (client or server) uses a certificate that has been generated by the Certificate Authority contained in szCAFile or szCAdir.

For additional information checkout OpenSSL's SSL_CTX_set_verify() with property SSL_VERIFY_PEER

Definition at line 2692 of file TeamTalk.h.

◆ bVerifyClientOnce

TTBOOL EncryptionContext::bVerifyClientOnce

Whether to only verify client's certificate once during initial connection.

Default value is TRUE.

Only valid for server.

For additional information checkout OpenSSL's SSL_CTX_set_verify() with property SSL_VERIFY_CLIENT_ONCE.

Definition at line 2703 of file TeamTalk.h.

◆ nVerifyDepth

INT32 EncryptionContext::nVerifyDepth

Set limit to depth in the certificate chain during the verification procedure.

Default value is 0.

Set to -1 to not perform certificate check. -1 cannot be used if bVerifyPeer or bVerifyClientOnce are true.

For additional information checkout OpenSSL's SSL_CTX_set_verify_depth()

Definition at line 2714 of file TeamTalk.h.