BASS_CONFIG_ENCODE_SERVER_KEYPASS config option

The passphrase for an encrypted private key.

BASS_SetConfigPtr(
    BASS_CONFIG_ENCODE_SERVER_KEYPASS,
    char *passphrase
);

Parameters

passphraseThe passphrase.

Remarks

This passphrase will be used if the private key set via the BASS_CONFIG_ENCODE_SERVER_KEY option is encrypted, or if the certificate set via the BASS_CONFIG_ENCODE_SERVER_CERT option is. If neither are encrypted then it will be ignoed.

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, 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