EFI_STATUS Status;\r
TLS_INSTANCE *Instance;\r
UINT16 *CipherId;\r
+ CONST EFI_TLS_CIPHER *TlsCipherList;\r
UINTN CipherCount;\r
UINTN Index;\r
\r
goto ON_EXIT;\r
}\r
\r
+ TlsCipherList = (CONST EFI_TLS_CIPHER *) Data;\r
CipherCount = DataSize / sizeof (EFI_TLS_CIPHER);\r
for (Index = 0; Index < CipherCount; Index++) {\r
- *(CipherId +Index) = HTONS (*(((UINT16 *) Data) + Index));\r
+ CipherId[Index] = ((TlsCipherList[Index].Data1 << 8) |\r
+ TlsCipherList[Index].Data2);\r
}\r
\r
Status = TlsSetCipherList (Instance->TlsConn, CipherId, CipherCount);\r