)]}'
{"src/openvpn/ssl_mbedtls.c":[{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"5210acce423207fccf23e69050f9ba8b9f20912c","unresolved":true,"context_lines":[{"line_number":1246,"context_line":"    ALLOC_OBJ_CLEAR(ks_ssl-\u003ectx, mbedtls_ssl_context);"},{"line_number":1247,"context_line":"    mbedtls_ssl_init(ks_ssl-\u003ectx);"},{"line_number":1248,"context_line":"    mbed_ok(mbedtls_ssl_setup(ks_ssl-\u003ectx, ks_ssl-\u003essl_config));"},{"line_number":1249,"context_line":"    /* Tell mbedTLS that we generally do not care about the hostname */"},{"line_number":1250,"context_line":"    mbedtls_ssl_set_hostname(ks_ssl-\u003ectx, NULL);"},{"line_number":1251,"context_line":""},{"line_number":1252,"context_line":"#if HAVE_MBEDTLS_SSL_SET_EXPORT_KEYS_CB"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"f233a8d9_03afa70d","line":1249,"updated":"2025-03-26 12:54:25.000000000","message":"That sounds a bit broken. I would rather say Tell mbed TLS that we do not need the library to verify the hostname as we do the verification in our own callback using mbedtls_ssl_conf_verify if requested by options.","commit_id":"66bb43c1acb37b9e3edb27dd4ccc952e87c4c7e5"},{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"a437639362cd4adf6e7986005f9237f05c59512d","unresolved":false,"context_lines":[{"line_number":1246,"context_line":"    ALLOC_OBJ_CLEAR(ks_ssl-\u003ectx, mbedtls_ssl_context);"},{"line_number":1247,"context_line":"    mbedtls_ssl_init(ks_ssl-\u003ectx);"},{"line_number":1248,"context_line":"    mbed_ok(mbedtls_ssl_setup(ks_ssl-\u003ectx, ks_ssl-\u003essl_config));"},{"line_number":1249,"context_line":"    /* Tell mbedTLS that we generally do not care about the hostname */"},{"line_number":1250,"context_line":"    mbedtls_ssl_set_hostname(ks_ssl-\u003ectx, NULL);"},{"line_number":1251,"context_line":""},{"line_number":1252,"context_line":"#if HAVE_MBEDTLS_SSL_SET_EXPORT_KEYS_CB"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"27f3471d_e88982f4","line":1249,"in_reply_to":"f233a8d9_03afa70d","updated":"2025-03-27 09:15:48.000000000","message":"Done","commit_id":"66bb43c1acb37b9e3edb27dd4ccc952e87c4c7e5"},{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"729b64812937f82f92652c81a54326937948ed6d","unresolved":true,"context_lines":[{"line_number":1247,"context_line":"    mbedtls_ssl_init(ks_ssl-\u003ectx);"},{"line_number":1248,"context_line":"    mbed_ok(mbedtls_ssl_setup(ks_ssl-\u003ectx, ks_ssl-\u003essl_config));"},{"line_number":1249,"context_line":"    /* Tell mbedTLS that we generally do not care about the hostname */"},{"line_number":1250,"context_line":"    mbedtls_ssl_set_hostname(ks_ssl-\u003ectx, NULL);"},{"line_number":1251,"context_line":""},{"line_number":1252,"context_line":"#if HAVE_MBEDTLS_SSL_SET_EXPORT_KEYS_CB"},{"line_number":1253,"context_line":"    /* Initialize keying material exporter, new style. */"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"5a92e1f5_b6450745","line":1250,"updated":"2025-03-26 15:05:17.000000000","message":"Should we check the return value?\n\nThe only possible errors are \"allocation failed\" and \"hostname too long\", both of which don\u0027t apply. But ignoring a return value feels a bit wrong to me.","commit_id":"66bb43c1acb37b9e3edb27dd4ccc952e87c4c7e5"},{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"1fad0605ed77d31829d80b0f4a3a26a66dd7a184","unresolved":true,"context_lines":[{"line_number":1247,"context_line":"    mbedtls_ssl_init(ks_ssl-\u003ectx);"},{"line_number":1248,"context_line":"    mbed_ok(mbedtls_ssl_setup(ks_ssl-\u003ectx, ks_ssl-\u003essl_config));"},{"line_number":1249,"context_line":"    /* Tell mbedTLS that we generally do not care about the hostname */"},{"line_number":1250,"context_line":"    mbedtls_ssl_set_hostname(ks_ssl-\u003ectx, NULL);"},{"line_number":1251,"context_line":""},{"line_number":1252,"context_line":"#if HAVE_MBEDTLS_SSL_SET_EXPORT_KEYS_CB"},{"line_number":1253,"context_line":"    /* Initialize keying material exporter, new style. */"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"7a6475b0_b3aabe55","line":1250,"in_reply_to":"5a92e1f5_b6450745","updated":"2025-03-26 15:35:54.000000000","message":"That applies to a lot of calls in this function, right?\nSo what are you thinking? `ASSERT(mbed_ok(` ?","commit_id":"66bb43c1acb37b9e3edb27dd4ccc952e87c4c7e5"},{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"a437639362cd4adf6e7986005f9237f05c59512d","unresolved":false,"context_lines":[{"line_number":1247,"context_line":"    mbedtls_ssl_init(ks_ssl-\u003ectx);"},{"line_number":1248,"context_line":"    mbed_ok(mbedtls_ssl_setup(ks_ssl-\u003ectx, ks_ssl-\u003essl_config));"},{"line_number":1249,"context_line":"    /* Tell mbedTLS that we generally do not care about the hostname */"},{"line_number":1250,"context_line":"    mbedtls_ssl_set_hostname(ks_ssl-\u003ectx, NULL);"},{"line_number":1251,"context_line":""},{"line_number":1252,"context_line":"#if HAVE_MBEDTLS_SSL_SET_EXPORT_KEYS_CB"},{"line_number":1253,"context_line":"    /* Initialize keying material exporter, new style. */"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"0b79fb03_9d5e2a4a","line":1250,"in_reply_to":"7a6475b0_b3aabe55","updated":"2025-03-27 09:15:48.000000000","message":"Done","commit_id":"66bb43c1acb37b9e3edb27dd4ccc952e87c4c7e5"},{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"003e5e5a96fed71c7ea4822eef3c014c53a4d288","unresolved":true,"context_lines":[{"line_number":1247,"context_line":"    mbedtls_ssl_init(ks_ssl-\u003ectx);"},{"line_number":1248,"context_line":"    mbed_ok(mbedtls_ssl_setup(ks_ssl-\u003ectx, ks_ssl-\u003essl_config));"},{"line_number":1249,"context_line":"    /* Tell mbedTLS that we generally do not care about the hostname */"},{"line_number":1250,"context_line":"    mbedtls_ssl_set_hostname(ks_ssl-\u003ectx, NULL);"},{"line_number":1251,"context_line":""},{"line_number":1252,"context_line":"#if HAVE_MBEDTLS_SSL_SET_EXPORT_KEYS_CB"},{"line_number":1253,"context_line":"    /* Initialize keying material exporter, new style. */"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"76153d30_bff20349","line":1250,"in_reply_to":"7a6475b0_b3aabe55","updated":"2025-03-26 16:16:02.000000000","message":"Sounds good! But now I wonder what happens if mbedtls_ssl_setup returns an allocation error...","commit_id":"66bb43c1acb37b9e3edb27dd4ccc952e87c4c7e5"}]}
