BASS_CONFIG_ENCODE_SERVER_CERT config option


The certificate file for encrypted servers.

BASS_SetConfigPtr(
    BASS_CONFIG_ENCODE_SERVER_CERT,
    char *filename
);

Parameters

filenameThe filename of the certificate.

Remarks

This setting determines what certificate is used for SSL/TLS encrypted server connections. The file should be in PEM format. It can also include intermediate and root certificates (in that order) after the server's certificate. The corresponding private key also needs to be set via the BASS_CONFIG_ENCODE_SERVER_KEY option.

A copy is made of the provided string, so it does not need to persist beyond the BASS_SetConfigPtr call. Changes take effect from the next BASS_Encode_ServerInit call. Existing servers are unaffected.

Platform-specific

On Windows and Windows CE, the BASS_UNICODE flag can be used with a UTF-16 string ("wchar_t" rather than "char").

See also

BASS_Encode_ServerInit, BASS_CONFIG_ENCODE_SERVER_KEY

BASS_GetConfigPtr, BASS_SetConfigPtr