mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-10 00:49:04 +08:00
ssl_server2: small improvement of code readability
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
3d59ebef2c
commit
74d48c89fa
@ -2155,18 +2155,18 @@ usage:
|
||||
if (opt.ticket_timeout < 0) {
|
||||
goto usage;
|
||||
}
|
||||
} else
|
||||
}
|
||||
#if defined(MBEDTLS_CIPHER_C)
|
||||
if (strcmp(p, "ticket_aead") == 0) {
|
||||
else if (strcmp(p, "ticket_aead") == 0) {
|
||||
const mbedtls_cipher_info_t *ci = mbedtls_cipher_info_from_string(q);
|
||||
|
||||
if (ci == NULL) {
|
||||
goto usage;
|
||||
}
|
||||
opt.ticket_aead = mbedtls_cipher_info_get_type(ci);
|
||||
} else
|
||||
}
|
||||
#endif
|
||||
if (strcmp(p, "cache_max") == 0) {
|
||||
else if (strcmp(p, "cache_max") == 0) {
|
||||
opt.cache_max = atoi(q);
|
||||
if (opt.cache_max < 0) {
|
||||
goto usage;
|
||||
|
Loading…
x
Reference in New Issue
Block a user