BASS_CONFIG_ENCODE_SERVER_KEY config option

The private key file for encrypted servers.

BASS_SetConfigPtr(
    BASS_CONFIG_ENCODE_SERVER_KEY,
    char *filename
);

Parameters

filenameThe filename of the private key.

Remarks

This setting determines what private key is used for SSL/TLS encrypted server connections. The file should be in PEM format. The corresponding certificate also needs to be set via the BASS_CONFIG_ENCODE_SERVER_CERT 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_CERT

BASS_GetConfigPtr, BASS_SetConfigPtr