Branch Coverage

inc/matrixssl-3-9-3-open/matrixssl/psk.c
Criterion Covered Total %
branch 0 36 0.0


line true false branch
49 0 0 if (keys == NULL || key == NULL || id == NULL)
0 0 if (keys == NULL || key == NULL || id == NULL)
0 0 if (keys == NULL || key == NULL || id == NULL)
53 0 0 if (keyLen > SSL_PSK_MAX_KEY_SIZE)
59 0 0 if (idLen > SSL_PSK_MAX_ID_SIZE)
65 0 0 if (keyLen < 1 || idLen < 1)
0 0 if (keyLen < 1 || idLen < 1)
71 0 0 if ((psk = psMalloc(keys->pool, sizeof(psPsk_t))) == NULL)
77 0 0 if ((psk->pskKey = psMalloc(keys->pool, keyLen)) == NULL)
82 0 0 if ((psk->pskId = psMalloc(keys->pool, idLen)) == NULL)
94 0 0 if (keys->pskKeys == NULL)
101 0 0 while (list->next != NULL)
149 0 0 if (psk == NULL)
174 0 0 if (psk == NULL)
180 0 0 if (idLen <= 0)
189 0 0 while (psk)
191 0 0 if (psk->pskIdLen == idLen)
193 0 0 if (memcmp(psk->pskId, id, idLen) == 0)