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

Commit

Permalink
Documentation change only: explain why we do a check.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobMeades committed Mar 6, 2024
1 parent 27c75a8 commit b747695
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/security/src/u_security_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ uSecurityTlsContext_t *pUSecurityTlsAdd(uDeviceHandle_t devHandle,
}
} else if (devType == (int32_t) U_DEVICE_TYPE_CELL) {
errorCode = (int32_t) U_ERROR_COMMON_TOO_BIG;
// Make sure that the number of cipher suites selected is
// supported by the cellular module we are using
if ((pSettings == NULL) ||
(pSettings->cipherSuites.num <= 1) ||
uCellSecTlsCipherSuiteMoreThanOne(devHandle)) {
Expand Down

0 comments on commit b747695

Please sign in to comment.