Branch Coverage

inc/const-c.inc
Criterion Covered Total %
branch 168 292 57.5


line true false branch
31 44 0 if (memEQ(name, "PS_PENDING", 10)) {
42 44 0 if (memEQ(name, "PS_FAILURE", 10)) {
53 44 0 if (memEQ(name, "PS_SUCCESS", 10)) {
75 22 0 if (memEQ(name, "TLS_MAJ_VER", 11)) {
86 44 0 if (memEQ(name, "PS_ARG_FAIL", 11)) {
97 22 0 if (memEQ(name, "TLS_MIN_VER", 11)) {
108 44 0 if (memEQ(name, "PS_MEM_FAIL", 11)) {
119 22 0 if (memEQ(name, "SNI_ENABLED", 11)) {
141 22 22 if (memEQ(name, "SSL2_MAJ_VER", 12)) {
150 22 0 if (memEQ(name, "SSL3_MAJ_VER", 12)) {
161 44 0 if (memEQ(name, "PS_AUTH_FAIL", 12)) {
172 22 0 if (memEQ(name, "SSL3_MIN_VER", 12)) {
183 22 0 if (memEQ(name, "ALPN_ENABLED", 12)) {
205 22 0 if (memEQ(name, "TLS_1_1_MIN_VER", 15)) {
216 22 0 if (memEQ(name, "TLS_1_2_MIN_VER", 15)) {
227 44 0 if (memEQ(name, "PS_TIMEOUT_FAIL", 15)) {
238 44 0 if (memEQ(name, "MATRIXSSL_ERROR", 15)) {
260 44 0 if (memEQ(name, "PS_PLATFORM_FAIL", 16)) {
271 22 0 if (memEQ(name, "SSL_MAX_BUF_SIZE", 16)) {
282 44 0 if (memEQ(name, "PS_PROTOCOL_FAIL", 16)) {
305 22 0 if (memEQ(name, "DH_PARAMS_ENABLED", 17)) {
316 44 0 if (memEQ(name, "PS_CERT_AUTH_FAIL", 17)) {
327 22 0 if (memEQ(name, "TLS_HIGHEST_MINOR", 17)) {
338 44 0 if (memEQ(name, "MATRIXSSL_SUCCESS", 17)) {
349 44 0 if (memEQ(name, "PS_INTERRUPT_FAIL", 17)) {
372 44 0 if (memEQ(name, "PS_CERT_AUTH_FAIL_BC", 20)) {
383 44 0 if (memEQ(name, "SSL_ALERT_UNKNOWN_CA", 20)) {
394 44 0 if (memEQ(name, "PS_CERT_AUTH_FAIL_DN", 20)) {
405 22 0 if (memEQ(name, "OCSP_STAPLES_ENABLED", 20)) {
428 44 0 if (memEQ(name, "SSL_ALERT_LEVEL_FATAL", 21)) {
439 44 0 if (memEQ(name, "PS_SIGNATURE_MISMATCH", 21)) {
450 22 0 if (memEQ(name, "SSL_RSA_WITH_NULL_MD5", 21)) {
461 22 0 if (memEQ(name, "SSL_MAX_PLAINTEXT_LEN", 21)) {
472 22 0 if (memEQ(name, "SSL_RSA_WITH_NULL_SHA", 21)) {
483 44 0 if (memEQ(name, "PS_CERT_AUTH_FAIL_SIG", 21)) {
506 44 0 if (memEQ(name, "MATRIXSSL_REQUEST_RECV", 22)) {
517 44 0 if (memEQ(name, "SSL_ALERT_CLOSE_NOTIFY", 22)) {
528 44 0 if (memEQ(name, "MATRIXSSL_REQUEST_SEND", 22)) {
539 44 0 if (memEQ(name, "SSL_ALERT_DECODE_ERROR", 22)) {
563 44 44 if (memEQ(name, "SSL_ALERT_ACCESS_DENIED", 23)) {
572 44 0 if (memEQ(name, "SSL_ALERT_LEVEL_WARNING", 23)) {
583 22 0 if (memEQ(name, "MATRIXSSL_VERSION_MAJOR", 23)) {
594 22 0 if (memEQ(name, "MATRIXSSL_VERSION_MINOR", 23)) {
605 44 0 if (memEQ(name, "MATRIXSSL_REQUEST_CLOSE", 23)) {
616 44 0 if (memEQ(name, "SSL_ALERT_DECRYPT_ERROR", 23)) {
627 22 0 if (memEQ(name, "MATRIXSSL_VERSION_PATCH", 23)) {
638 22 0 if (memEQ(name, "SSL_NULL_WITH_NULL_NULL", 23)) {
662 22 0 if (memEQ(name, "SSL_RSA_WITH_RC4_128_MD", 23)) {
673 22 0 if (memEQ(name, "SSL_RSA_WITH_RC4_128_SH", 23)) {
684 44 0 if (memEQ(name, "SSL_ALERT_BAD_RECORD_MA", 23)) {
695 44 0 if (memEQ(name, "SSL_ALERT_NO_CERTIFICAT", 23)) {
706 44 0 if (memEQ(name, "PS_DISABLED_FEATURE_FAI", 23)) {
717 44 0 if (memEQ(name, "SSL_ALERT_INTERNAL_ERRO", 23)) {
728 22 0 if (memEQ(name, "SSL_MAX_DISABLED_CIPHER", 23)) {
739 44 0 if (memEQ(name, "MATRIXSSL_RECEIVED_ALER", 23)) {
765 44 0 if (memEQ(name, "SSL_ALERT_NO_APP_PROTOCOL", 25)) {
776 44 44 if (memEQ(name, "PS_CERT_AUTH_FAIL_AUTHKEY", 25)) {
785 44 0 if (memEQ(name, "PS_CERT_AUTH_FAIL_REVOKED", 25)) {
796 22 0 if (memEQ(name, "TLS_RSA_WITH_IDEA_CBC_SHA", 25)) {
807 22 0 if (memEQ(name, "STATELESS_TICKETS_ENABLED", 25)) {
818 22 0 if (memEQ(name, "SSL_OPTION_FULL_HANDSHAKE", 25)) {
829 22 0 if (memEQ(name, "SSL_ALLOW_ANON_CONNECTION", 25)) {
840 44 0 if (memEQ(name, "SSL_ALERT_RECORD_OVERFLOW", 25)) {
851 22 0 if (memEQ(name, "TLS_RSA_WITH_SEED_CBC_SHA", 25)) {
862 44 0 if (memEQ(name, "SSL_ALERT_BAD_CERTIFICATE", 25)) {
885 44 0 if (memEQ(name, "SSL_ALERT_NO_RENEGOTIATION", 26)) {
896 44 0 if (memEQ(name, "SSL_ALERT_PROTOCOL_VERSION", 26)) {
907 44 0 if (memEQ(name, "PS_CERT_AUTH_FAIL_PATH_LEN", 26)) {
931 44 0 if (memEQ(name, "SSL_ALERT_HANDSHAKE_FAILURE", 27)) {
942 44 0 if (memEQ(name, "SSL_ALERT_DECRYPTION_FAILED", 27)) {
953 44 0 if (memEQ(name, "PS_CERT_AUTH_FAIL_EXTENSION", 27)) {
964 44 0 if (memEQ(name, "SSL_ALERT_ILLEGAL_PARAMETER", 27)) {
975 44 0 if (memEQ(name, "SSL_ALERT_UNRECOGNIZED_NAME", 27)) {
1000 44 0 if (memEQ(name, "SSL_ALERT_UNEXPECTED_MESSAGE", 28)) {
1011 22 0 if (memEQ(name, "SSL_DH_anon_WITH_RC4_128_MD5", 28)) {
1022 22 0 if (memEQ(name, "SHARED_SESSION_CACHE_ENABLED", 28)) {
1033 44 0 if (memEQ(name, "MATRIXSSL_HANDSHAKE_COMPLETE", 28)) {
1044 22 22 if (memEQ(name, "TLS_PSK_WITH_AES_128_CBC_SHA", 28)) {
1053 22 0 if (memEQ(name, "TLS_PSK_WITH_AES_256_CBC_SHA", 28)) {
1064 22 22 if (memEQ(name, "TLS_RSA_WITH_AES_128_CBC_SHA", 28)) {
1073 22 0 if (memEQ(name, "TLS_RSA_WITH_AES_256_CBC_SHA", 28)) {
1097 22 0 if (memEQ(name, "SSL_RSA_WITH_3DES_EDE_CBC_SHA", 29)) {
1108 44 0 if (memEQ(name, "SSL_ALERT_CERTIFICATE_EXPIRED", 29)) {
1119 44 0 if (memEQ(name, "MATRIXSSL_APP_DATA_COMPRESSED", 29)) {
1130 44 0 if (memEQ(name, "SSL_ALERT_CERTIFICATE_REVOKED", 29)) {
1141 44 0 if (memEQ(name, "SSL_ALERT_CERTIFICATE_UNKNOWN", 29)) {
1167 22 44 if (memEQ(name, "TLS_PSK_WITH_AES_128_CBC_SHA256", 31)) {
1176 22 22 if (memEQ(name, "TLS_RSA_WITH_AES_128_CBC_SHA256", 31)) {
1185 22 0 if (memEQ(name, "TLS_RSA_WITH_AES_128_GCM_SHA256", 31)) {
1196 22 44 if (memEQ(name, "TLS_PSK_WITH_AES_256_CBC_SHA384", 31)) {
1205 22 22 if (memEQ(name, "TLS_RSA_WITH_AES_256_CBC_SHA256", 31)) {
1214 22 0 if (memEQ(name, "TLS_RSA_WITH_AES_256_GCM_SHA384", 31)) {
1225 44 0 if (memEQ(name, "SSL_ALERT_INSUFFICIENT_SECURITY", 31)) {
1236 44 0 if (memEQ(name, "SSL_ALERT_DECOMPRESSION_FAILURE", 31)) {
1247 44 0 if (memEQ(name, "SSL_ALERT_UNSUPPORTED_EXTENSION", 31)) {
1272 22 0 if (memEQ(name, "CERTIFICATE_TRANSPARENCY_ENABLED", 32)) {
1283 22 22 if (memEQ(name, "TLS_DHE_PSK_WITH_AES_128_CBC_SHA", 32)) {
1292 22 0 if (memEQ(name, "TLS_DHE_PSK_WITH_AES_256_CBC_SHA", 32)) {
1303 22 22 if (memEQ(name, "TLS_DHE_RSA_WITH_AES_128_CBC_SHA", 32)) {
1312 22 0 if (memEQ(name, "TLS_DHE_RSA_WITH_AES_256_CBC_SHA", 32)) {
1323 44 0 if (memEQ(name, "SSL_ALERT_INAPPROPRIATE_FALLBACK", 32)) {
1334 22 22 if (memEQ(name, "TLS_DH_anon_WITH_AES_128_CBC_SHA", 32)) {
1343 22 0 if (memEQ(name, "TLS_DH_anon_WITH_AES_256_CBC_SHA", 32)) {
1367 22 0 if (memEQ(name, "TLS_ECDH_RSA_WITH_AES_128_CBC_SHA", 33)) {
1378 22 0 if (memEQ(name, "TLS_ECDH_RSA_WITH_AES_256_CBC_SHA", 33)) {
1389 22 22 if (memEQ(name, "SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA", 33)) {
1398 22 0 if (memEQ(name, "SSL_DH_anon_WITH_3DES_EDE_CBC_SHA", 33)) {
1409 44 0 if (memEQ(name, "SSL_ALERT_UNSUPPORTED_CERTIFICATE", 33)) {
1433 22 0 if (memEQ(name, "TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA", 35)) {
1444 22 0 if (memEQ(name, "TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA", 35)) {
1455 22 22 if (memEQ(name, "TLS_DHE_RSA_WITH_AES_128_CBC_SHA256", 35)) {
1464 22 0 if (memEQ(name, "TLS_DHE_RSA_WITH_AES_256_CBC_SHA256", 35)) {
1475 22 0 if (memEQ(name, "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA", 35)) {
1500 22 0 if (memEQ(name, "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA", 36)) {
1511 22 0 if (memEQ(name, "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA", 36)) {
1522 22 22 if (memEQ(name, "TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256", 36)) {
1531 22 0 if (memEQ(name, "TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384", 36)) {
1542 22 22 if (memEQ(name, "TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256", 36)) {
1551 22 0 if (memEQ(name, "TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384", 36)) {
1576 22 22 if (memEQ(name, "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256", 37)) {
1585 22 0 if (memEQ(name, "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", 37)) {
1596 22 22 if (memEQ(name, "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384", 37)) {
1605 22 0 if (memEQ(name, "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", 37)) {
1630 22 22 if (memEQ(name, "TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256", 38)) {
1639 22 0 if (memEQ(name, "TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256", 38)) {
1650 22 22 if (memEQ(name, "TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384", 38)) {
1659 22 0 if (memEQ(name, "TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384", 38)) {
1684 22 22 if (memEQ(name, "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", 39)) {
1693 22 0 if (memEQ(name, "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", 39)) {
1704 22 22 if (memEQ(name, "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", 39)) {
1713 22 0 if (memEQ(name, "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", 39)) {
1838 22 0 if (memEQ(name, "PS_TRUE", 7)) {
1848 22 0 if (memEQ(name, "PS_FALSE", 8)) {
1858 44 0 if (memEQ(name, "PS_EAGAIN", 9)) {
1882 44 0 if (memEQ(name, "PS_LIMIT_FAIL", 13)) {
1893 44 0 if (memEQ(name, "PS_PARSE_FAIL", 13)) {
1906 44 0 if (memEQ(name, "SSL_ALERT_NONE", 14)) {
1930 22 0 if (memEQ(name, "SSL_MAX_RECORD_LEN", 18)) {
1941 44 0 if (memEQ(name, "MATRIXSSL_APP_DATA", 18)) {
1954 44 0 if (memEQ(name, "PS_UNSUPPORTED_FAIL", 19)) {
1994 44 0 if (memEQ(name, "SSL_ALERT_UNKNOWN_PSK_IDENTITY", 30)) {
2018 22 0 if (memEQ(name, "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", 34)) {
2029 22 0 if (memEQ(name, "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", 34)) {
2057 44 0 if (memEQ(name, "SSL_ALERT_BAD_CERTIFICATE_STATUS_RESPONSE", 41)) {
2067 22 0 if (memEQ(name, "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256", 43)) {
2077 22 0 if (memEQ(name, "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256", 45)) {