int __stdcall SME_ConfigureDeviceSecurity ( SME_HANDLE  handle,
int  securityMode,
char *  securityKey 

Configures security mode for an Ethernet device.

[in]handleValid handle returned by SME_Initialize().
[in]securityModeType of encryption.
[in]securityKeyHexadecimal encryption key in ASCII format.
Return values
0Successful completion.
-1Invalid SME_Initialize handle.
-2Invalid security mode.
-3Invalid encryption key.
-4No module selected. Call SME_SearchForModules() first.
-5Could not set device's configuration. Possible network error.

For securityMode values, see Security Type.

The securityKey parameter must include a C String containing two hexadecimal characters per byte of encryption. For example, an AES 256 key would be represented as 64 hexadecimal characters: "0102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F20".

Devices with encryption enabled will not respond to broadcasts. Secured devices will not be discoverable with SME_SearchForModules() and will not be configurable with other SME methods. In order to reconfigure the device, first disable security on the device with SME_DisableDeviceSecurity().
Generated on Mon Nov 26 2018.