Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Commit b747695

Browse files
committed
Documentation change only: explain why we do a check.
1 parent 27c75a8 commit b747695

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

common/security/src/u_security_tls.c

+2
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ uSecurityTlsContext_t *pUSecurityTlsAdd(uDeviceHandle_t devHandle,
175175
}
176176
} else if (devType == (int32_t) U_DEVICE_TYPE_CELL) {
177177
errorCode = (int32_t) U_ERROR_COMMON_TOO_BIG;
178+
// Make sure that the number of cipher suites selected is
179+
// supported by the cellular module we are using
178180
if ((pSettings == NULL) ||
179181
(pSettings->cipherSuites.num <= 1) ||
180182
uCellSecTlsCipherSuiteMoreThanOne(devHandle)) {

0 commit comments

Comments
 (0)