)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"32eeb17485eaebd65e8ae48b356c2cd9d83e5cd3","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":1,"id":"3f1bdab6_d222e2e4","updated":"2026-10-22 18:27:20.000000000","message":"There is also a clang-format failure","commit_id":"2063f63886796ac4afd05e7509268c03bbee5d3c"},{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"43027f35b0a9929db9aa4cf4c043dc29f9c845ea","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"b41ae7ed_04e1a2ff","in_reply_to":"3f1bdab6_d222e2e4","updated":"2026-10-22 19:28:07.000000000","message":"Done","commit_id":"2063f63886796ac4afd05e7509268c03bbee5d3c"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"62a0bad4741f42e235b5797327c5f48d2adcd99b","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"d880f1ac_25033bb3","updated":"2026-10-26 13:20:12.000000000","message":"In addition to the inline comments, it would be nice if we would also drop a line in Changes.md about deprecating this maybe.","commit_id":"abced4a51301c1228875f58c87e15c7ec4056937"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"51a7f3be05284d4d7bf325edd95b7089f0cc8e1c","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"81805b94_d3278830","in_reply_to":"8a12151a_2132b736","updated":"2026-10-28 18:40:19.000000000","message":"Adding a deprecation warning might be nice. I wouldn\u0027t hold the patch hostage without it though.","commit_id":"abced4a51301c1228875f58c87e15c7ec4056937"},{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"7adcd9118e83958d4984a2fac36fc7487f88ea16","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"8a12151a_2132b736","in_reply_to":"d880f1ac_25033bb3","updated":"2026-10-28 17:06:24.000000000","message":"I added a line that it is removed now, but you said deprecated instead of removed - should I add a deprecation warning to the 2.7 branch?","commit_id":"abced4a51301c1228875f58c87e15c7ec4056937"}],"CMakeLists.txt":[{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"62a0bad4741f42e235b5797327c5f48d2adcd99b","unresolved":true,"context_lines":[{"line_number":317,"context_line":"        set(CMAKE_REQUIRED_LINK_OPTIONS \"-L${MBED_LIBRARY_PATH}\")"},{"line_number":318,"context_line":"    endif ()"},{"line_number":319,"context_line":"    set(CMAKE_REQUIRED_LIBRARIES \"mbedtls;mbedx509;mbedcrypto\")"},{"line_number":320,"context_line":"    check_include_files(psa/crypto.h HAVE_PSA_CRYPTO_H)"},{"line_number":321,"context_line":"endfunction()"},{"line_number":322,"context_line":""},{"line_number":323,"context_line":"if (${MBED})"}],"source_content_type":"text/x-cmake","patch_set":2,"id":"adb21a8f_5fc8c805","line":320,"updated":"2026-10-26 13:20:12.000000000","message":"It seems that after this change there are no users left of `psa/crypto.h`, so we should probably remove all the now-dead checks now from configure.ac, CMakeLists.txt and config.h.cmake.in.","commit_id":"abced4a51301c1228875f58c87e15c7ec4056937"},{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"7adcd9118e83958d4984a2fac36fc7487f88ea16","unresolved":false,"context_lines":[{"line_number":317,"context_line":"        set(CMAKE_REQUIRED_LINK_OPTIONS \"-L${MBED_LIBRARY_PATH}\")"},{"line_number":318,"context_line":"    endif ()"},{"line_number":319,"context_line":"    set(CMAKE_REQUIRED_LIBRARIES \"mbedtls;mbedx509;mbedcrypto\")"},{"line_number":320,"context_line":"    check_include_files(psa/crypto.h HAVE_PSA_CRYPTO_H)"},{"line_number":321,"context_line":"endfunction()"},{"line_number":322,"context_line":""},{"line_number":323,"context_line":"if (${MBED})"}],"source_content_type":"text/x-cmake","patch_set":2,"id":"2d4f0996_94d2b037","line":320,"in_reply_to":"adb21a8f_5fc8c805","updated":"2026-10-28 17:06:24.000000000","message":"There are still users left of this header, but it exists in every version of Mbed TLS 4. So you\u0027re still right that the checks should be removed.","commit_id":"abced4a51301c1228875f58c87e15c7ec4056937"}],"src/openvpn/Makefile.am":[{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"32eeb17485eaebd65e8ae48b356c2cd9d83e5cd3","unresolved":true,"context_lines":[{"line_number":92,"context_line":"\tovpn_dco_win.h \\"},{"line_number":93,"context_line":"\tplatform.c platform.h \\"},{"line_number":94,"context_line":"\tconsole.c console.h console_builtin.c console_systemd.c \\"},{"line_number":95,"context_line":"\tmbedtls_compat.h \\"},{"line_number":96,"context_line":"\tmroute.c mroute.h \\"},{"line_number":97,"context_line":"\tmss.c mss.h \\"},{"line_number":98,"context_line":"\tmtcp.c mtcp.h \\"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"6c4b1033_bdad1f51","line":95,"updated":"2026-10-22 18:27:20.000000000","message":"you missed mbedtls_compat.h reference here","commit_id":"2063f63886796ac4afd05e7509268c03bbee5d3c"},{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"43027f35b0a9929db9aa4cf4c043dc29f9c845ea","unresolved":false,"context_lines":[{"line_number":92,"context_line":"\tovpn_dco_win.h \\"},{"line_number":93,"context_line":"\tplatform.c platform.h \\"},{"line_number":94,"context_line":"\tconsole.c console.h console_builtin.c console_systemd.c \\"},{"line_number":95,"context_line":"\tmbedtls_compat.h \\"},{"line_number":96,"context_line":"\tmroute.c mroute.h \\"},{"line_number":97,"context_line":"\tmss.c mss.h \\"},{"line_number":98,"context_line":"\tmtcp.c mtcp.h \\"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"4034ee62_d1ec7d81","line":95,"in_reply_to":"6c4b1033_bdad1f51","updated":"2026-10-22 19:28:07.000000000","message":"Done","commit_id":"2063f63886796ac4afd05e7509268c03bbee5d3c"}],"src/openvpn/ssl_mbedtls.c":[{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"62a0bad4741f42e235b5797327c5f48d2adcd99b","unresolved":true,"context_lines":[{"line_number":153,"context_line":"    ASSERT(strlen(label) \u003d\u003d label_size);"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    mbedtls_ssl_context *ctx \u003d session-\u003ekey[KS_PRIMARY].ks_ssl.ctx;"},{"line_number":156,"context_line":"    return mbed_ok(mbedtls_ssl_export_keying_material(ctx, ekm, ekm_size, label, label_size,"},{"line_number":157,"context_line":"                                                      NULL, 0, 0));"},{"line_number":158,"context_line":"}"},{"line_number":159,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":2,"id":"b99cd3dc_a5937fa5","line":156,"updated":"2026-10-26 13:20:12.000000000","message":"`MBEDTLS_SSL_KEYING_MATERIAL_EXPORT` seems to gate availability of `mbedtls_ssl_export_keying_material()`, so in theory there could exist mbedTLS builds that don\u0027t offer it.\n\nWe may want to check for it in configure.ac, or do some #ifdef-ery here with an #error if the macro is not set?","commit_id":"abced4a51301c1228875f58c87e15c7ec4056937"},{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"ee4d8fad41309f15d5d2a38fff3ad642b7c4c539","unresolved":true,"context_lines":[{"line_number":153,"context_line":"    ASSERT(strlen(label) \u003d\u003d label_size);"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    mbedtls_ssl_context *ctx \u003d session-\u003ekey[KS_PRIMARY].ks_ssl.ctx;"},{"line_number":156,"context_line":"    return mbed_ok(mbedtls_ssl_export_keying_material(ctx, ekm, ekm_size, label, label_size,"},{"line_number":157,"context_line":"                                                      NULL, 0, 0));"},{"line_number":158,"context_line":"}"},{"line_number":159,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":2,"id":"ac0d1723_fc701d46","line":156,"in_reply_to":"101cfb5c_cd9671ae","updated":"2026-10-28 23:26:03.000000000","message":"I\u0027ve tried adding some checks that I think should catch most problems.\n\nI\u0027m *not* checking for something weird like Mbed TLS with support for a TLS protocol but no digital signature algorithm. (Is that possible with pre-shared keys in TLS 1.3? I don\u0027t know, and I don\u0027t want to spend a lot of time finding out.)","commit_id":"abced4a51301c1228875f58c87e15c7ec4056937"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"51a7f3be05284d4d7bf325edd95b7089f0cc8e1c","unresolved":true,"context_lines":[{"line_number":153,"context_line":"    ASSERT(strlen(label) \u003d\u003d label_size);"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    mbedtls_ssl_context *ctx \u003d session-\u003ekey[KS_PRIMARY].ks_ssl.ctx;"},{"line_number":156,"context_line":"    return mbed_ok(mbedtls_ssl_export_keying_material(ctx, ekm, ekm_size, label, label_size,"},{"line_number":157,"context_line":"                                                      NULL, 0, 0));"},{"line_number":158,"context_line":"}"},{"line_number":159,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":2,"id":"d1bf1ed2_b9a323f9","line":156,"in_reply_to":"a467f7fb_05bcfc69","updated":"2026-10-28 18:40:19.000000000","message":"If failing the build is accepted OpenVPN 2 custom, then that\u0027s OK.\n\nI just thought that at least for new code it might be easier for developers to see the error upfront at `configure`/`cmake` time, rather than having the build fail.\n\nBut, again, if current practice is to just let the builds fail in these cases then that\u0027s fine.","commit_id":"abced4a51301c1228875f58c87e15c7ec4056937"},{"author":{"_account_id":1000002,"name":"Gert Doering","display_name":"Gert Doering","email":"gert@greenie.muc.de","username":"cron2"},"change_message_id":"e9ecdfeeb281b39eb59a59f217742b04864de09e","unresolved":false,"context_lines":[{"line_number":153,"context_line":"    ASSERT(strlen(label) \u003d\u003d label_size);"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    mbedtls_ssl_context *ctx \u003d session-\u003ekey[KS_PRIMARY].ks_ssl.ctx;"},{"line_number":156,"context_line":"    return mbed_ok(mbedtls_ssl_export_keying_material(ctx, ekm, ekm_size, label, label_size,"},{"line_number":157,"context_line":"                                                      NULL, 0, 0));"},{"line_number":158,"context_line":"}"},{"line_number":159,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":2,"id":"dc8cbdf9_852c8dfd","line":156,"in_reply_to":"ac0d1723_fc701d46","updated":"2026-10-31 12:46:18.000000000","message":"Acknowledged","commit_id":"abced4a51301c1228875f58c87e15c7ec4056937"},{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"7adcd9118e83958d4984a2fac36fc7487f88ea16","unresolved":true,"context_lines":[{"line_number":153,"context_line":"    ASSERT(strlen(label) \u003d\u003d label_size);"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    mbedtls_ssl_context *ctx \u003d session-\u003ekey[KS_PRIMARY].ks_ssl.ctx;"},{"line_number":156,"context_line":"    return mbed_ok(mbedtls_ssl_export_keying_material(ctx, ekm, ekm_size, label, label_size,"},{"line_number":157,"context_line":"                                                      NULL, 0, 0));"},{"line_number":158,"context_line":"}"},{"line_number":159,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":2,"id":"a467f7fb_05bcfc69","line":156,"in_reply_to":"b99cd3dc_a5937fa5","updated":"2026-10-28 17:06:24.000000000","message":"I was thinking about that, but Mbed TLS is very modular and there are lots of configurations that would cause OpenVPN builds to fail. I don\u0027t think it would be easy to print a nice error message for every possible unsupported configuration.\n\nDo you think it\u0027s important to have a check for this one in particular?","commit_id":"abced4a51301c1228875f58c87e15c7ec4056937"},{"author":{"_account_id":1000002,"name":"Gert Doering","display_name":"Gert Doering","email":"gert@greenie.muc.de","username":"cron2"},"change_message_id":"0d3839e9c45636eea1c4d38a98c12754ff6e1c86","unresolved":true,"context_lines":[{"line_number":153,"context_line":"    ASSERT(strlen(label) \u003d\u003d label_size);"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    mbedtls_ssl_context *ctx \u003d session-\u003ekey[KS_PRIMARY].ks_ssl.ctx;"},{"line_number":156,"context_line":"    return mbed_ok(mbedtls_ssl_export_keying_material(ctx, ekm, ekm_size, label, label_size,"},{"line_number":157,"context_line":"                                                      NULL, 0, 0));"},{"line_number":158,"context_line":"}"},{"line_number":159,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":2,"id":"101cfb5c_cd9671ae","line":156,"in_reply_to":"d1bf1ed2_b9a323f9","updated":"2026-10-28 20:24:22.000000000","message":"If there is an easy way to find \"this mbedtls build will not work for OpenVPN\" we can fail at configure time, but if it\u0027s really like \"there are 10 optional components, and you need to have 8 of them \u0027on\u0027 and the other 2 must be \u0027off\u0027\" I\u0027m not sure adding this amount of stuff to configure makes sense...\n\nmbedtls is special anyway in that very few people seem to be using it (mostly \"Max\", that is) and those need to decide how to build it - \"default builds\" are working fine for us, though.","commit_id":"abced4a51301c1228875f58c87e15c7ec4056937"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"62a0bad4741f42e235b5797327c5f48d2adcd99b","unresolved":true,"context_lines":[{"line_number":511,"context_line":"#if MBEDTLS_VERSION_NUMBER \u003e\u003d 0x04010000"},{"line_number":512,"context_line":"    if (ctx-\u003epriv_key-\u003eMBEDTLS_PRIVATE(pub_raw_len) \u003d\u003d 0)"},{"line_number":513,"context_line":"    {"},{"line_number":514,"context_line":"        mbedtls_pk_context *mut_prv \u003d (mbedtls_pk_context *)ctx-\u003epriv_key; /* remove const */"},{"line_number":515,"context_line":"        ASSERT(mbed_ok(psa_export_public_key(mut_prv-\u003eMBEDTLS_PRIVATE(priv_id),"},{"line_number":516,"context_line":"                                             mut_prv-\u003eMBEDTLS_PRIVATE(pub_raw),"},{"line_number":517,"context_line":"                                             sizeof(mut_prv-\u003eMBEDTLS_PRIVATE(pub_raw)),"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"a441b1e5_cea634c6","line":514,"updated":"2026-10-26 13:20:12.000000000","message":"`ctx` is not `const` here, so the cast shouldn\u0027t be necessary.","commit_id":"abced4a51301c1228875f58c87e15c7ec4056937"},{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"7adcd9118e83958d4984a2fac36fc7487f88ea16","unresolved":false,"context_lines":[{"line_number":511,"context_line":"#if MBEDTLS_VERSION_NUMBER \u003e\u003d 0x04010000"},{"line_number":512,"context_line":"    if (ctx-\u003epriv_key-\u003eMBEDTLS_PRIVATE(pub_raw_len) \u003d\u003d 0)"},{"line_number":513,"context_line":"    {"},{"line_number":514,"context_line":"        mbedtls_pk_context *mut_prv \u003d (mbedtls_pk_context *)ctx-\u003epriv_key; /* remove const */"},{"line_number":515,"context_line":"        ASSERT(mbed_ok(psa_export_public_key(mut_prv-\u003eMBEDTLS_PRIVATE(priv_id),"},{"line_number":516,"context_line":"                                             mut_prv-\u003eMBEDTLS_PRIVATE(pub_raw),"},{"line_number":517,"context_line":"                                             sizeof(mut_prv-\u003eMBEDTLS_PRIVATE(pub_raw)),"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"501ffb31_ef4fa1f8","line":514,"in_reply_to":"a441b1e5_cea634c6","updated":"2026-10-28 17:06:24.000000000","message":"Right, this was a copy-paste error. This code was originally from mbedtls_compat.h.","commit_id":"abced4a51301c1228875f58c87e15c7ec4056937"}],"src/openvpn/ssl_mbedtls.h":[{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"51a7f3be05284d4d7bf325edd95b7089f0cc8e1c","unresolved":true,"context_lines":[{"line_number":82,"context_line":"    size_t signature_length;"},{"line_number":83,"context_line":"    external_sign_func sign;"},{"line_number":84,"context_line":"    void *sign_ctx;"},{"line_number":85,"context_line":"};"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"/**"},{"line_number":88,"context_line":" * Structure that wraps the TLS context. Contents differ depending on the"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"ca91b7df_26213f57","line":85,"updated":"2026-10-28 18:40:19.000000000","message":"I think we need to delete this too.","commit_id":"8b3cb6f6ef5d5f8c53dfd77d723ca99118732f1b"},{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"ee4d8fad41309f15d5d2a38fff3ad642b7c4c539","unresolved":false,"context_lines":[{"line_number":82,"context_line":"    size_t signature_length;"},{"line_number":83,"context_line":"    external_sign_func sign;"},{"line_number":84,"context_line":"    void *sign_ctx;"},{"line_number":85,"context_line":"};"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"/**"},{"line_number":88,"context_line":" * Structure that wraps the TLS context. Contents differ depending on the"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"129882b2_460b4b54","line":85,"in_reply_to":"ca91b7df_26213f57","updated":"2026-10-28 23:26:03.000000000","message":"Done","commit_id":"8b3cb6f6ef5d5f8c53dfd77d723ca99118732f1b"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"51a7f3be05284d4d7bf325edd95b7089f0cc8e1c","unresolved":true,"context_lines":[{"line_number":103,"context_line":"#ifdef ENABLE_PKCS11"},{"line_number":104,"context_line":"    pkcs11h_certificate_t pkcs11_cert;     /**\u003c PKCS11 certificate */"},{"line_number":105,"context_line":"#endif"},{"line_number":106,"context_line":"    struct external_context external_key;  /**\u003c External key context */"},{"line_number":107,"context_line":"    int *allowed_ciphers;                  /**\u003c List of allowed ciphers for this connection */"},{"line_number":108,"context_line":"    uint16_t *groups;                      /**\u003c List of allowed groups for this connection */"},{"line_number":109,"context_line":"    mbedtls_x509_crt_profile cert_profile; /**\u003c Allowed certificate types */"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"9832cc90_86bf6f14","line":106,"updated":"2026-10-28 18:40:19.000000000","message":"This can be deleted now as well.","commit_id":"8b3cb6f6ef5d5f8c53dfd77d723ca99118732f1b"},{"author":{"_account_id":1000030,"name":"Max Fillinger","email":"max@max-fillinger.net","username":"MaxF"},"change_message_id":"ee4d8fad41309f15d5d2a38fff3ad642b7c4c539","unresolved":false,"context_lines":[{"line_number":103,"context_line":"#ifdef ENABLE_PKCS11"},{"line_number":104,"context_line":"    pkcs11h_certificate_t pkcs11_cert;     /**\u003c PKCS11 certificate */"},{"line_number":105,"context_line":"#endif"},{"line_number":106,"context_line":"    struct external_context external_key;  /**\u003c External key context */"},{"line_number":107,"context_line":"    int *allowed_ciphers;                  /**\u003c List of allowed ciphers for this connection */"},{"line_number":108,"context_line":"    uint16_t *groups;                      /**\u003c List of allowed groups for this connection */"},{"line_number":109,"context_line":"    mbedtls_x509_crt_profile cert_profile; /**\u003c Allowed certificate types */"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"0b779e65_d0eb9ae0","line":106,"in_reply_to":"9832cc90_86bf6f14","updated":"2026-10-28 23:26:03.000000000","message":"Done","commit_id":"8b3cb6f6ef5d5f8c53dfd77d723ca99118732f1b"}]}
