Skip to content

Commit ac2425c

Browse files
author
Mika Leppänen
committed
Corrected compiling errors
1 parent d4fded3 commit ac2425c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/Security/protocols/sec_prot_keys.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
typedef struct {
6262
uint8_t key[GTK_LEN]; /**< Group Transient Key (128 bits) */
6363
uint32_t lifetime; /**< GTK lifetime in seconds */
64-
uint8_t status : 2; /**< Group Transient Key status */
65-
uint8_t install_order : 2; /**< Order in which GTK keys are added */
64+
unsigned status : 2; /**< Group Transient Key status */
65+
unsigned install_order : 2; /**< Order in which GTK keys are added */
6666
bool set: 1; /**< Group Transient Key set (valid value) */
6767
} gtk_key_t;
6868

source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ int8_t tls_sec_prot_lib_process(tls_security_t *sec)
321321
while (ret != MBEDTLS_ERR_SSL_WANT_READ) {
322322
ret = mbedtls_ssl_handshake_step(&sec->ssl);
323323

324-
#ifdef MBEDTLS_ECP_RESTARTABLE
324+
#if defined(MBEDTLS_ECP_RESTARTABLE) && defined(MBEDTLS_ERR_SSL_CRYPTO_IN_PROGRESS)
325325
if (ret == MBEDTLS_ERR_SSL_CRYPTO_IN_PROGRESS /* || ret == MBEDTLS_ERR_SSL_ASYNC_IN_PROGRESS */) {
326326
return TLS_SEC_PROT_LIB_CALCULATING;
327327
}

0 commit comments

Comments
 (0)