MbedTLS: Don't include the sentinel in suites count calculation
This commit is contained in:
parent
df51e80717
commit
0db0805ed5
1 changed files with 1 additions and 1 deletions
|
@ -508,7 +508,7 @@ rb_setup_ssl_server(const char *const certfile, const char *keyfile,
|
||||||
rb_lib_log("rb_setup_ssl_server: Using default ciphersuites");
|
rb_lib_log("rb_setup_ssl_server: Using default ciphersuites");
|
||||||
|
|
||||||
rb_ciphersuites = rb_mbedtls_ciphersuites;
|
rb_ciphersuites = rb_mbedtls_ciphersuites;
|
||||||
suites_count = sizeof(rb_mbedtls_ciphersuites) / sizeof(rb_mbedtls_ciphersuites[0]);
|
suites_count = (sizeof(rb_mbedtls_ciphersuites) / sizeof(rb_mbedtls_ciphersuites[0])) - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
mbedtls_ssl_conf_ciphersuites(&newcfg->server_cfg, rb_ciphersuites);
|
mbedtls_ssl_conf_ciphersuites(&newcfg->server_cfg, rb_ciphersuites);
|
||||||
|
|
Loading…
Reference in a new issue