)]}'
{"id":"openvpn~1950","triplet_id":"openvpn~master~I440c4c73865fdbd80f2c607e83c50e345a0e2438","project":"openvpn","branch":"master","full_branch":"refs/heads/master","attention_set":{},"removed_from_attention_set":{"1000053":{"account":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"last_update":"2026-11-03 15:15:25.000000000","reason":"removed on reply"},"1000003":{"account":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"last_update":"2026-11-03 19:38:49.000000000","reason":"Change was submitted"}},"hashtags":[],"change_id":"I440c4c73865fdbd80f2c607e83c50e345a0e2438","subject":"Do not look up the \"none\" cipher in OpenSSL","status":"MERGED","created":"2026-09-25 09:51:31.000000000","updated":"2026-11-03 19:38:49.000000000","submitted":"2026-11-03 19:38:49.000000000","submitter":{"_account_id":1000002,"name":"Gert Doering","display_name":"Gert Doering","email":"gert@greenie.muc.de","username":"cron2"},"total_comment_count":3,"unresolved_comment_count":2,"has_review_started":true,"submission_id":"1950","meta_rev_id":"055e1f89f0c556e397b96ea8024c70319b14556a","_number":1950,"virtual_id_number":1950,"owner":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"actions":{},"labels":{"Code-Review":{"all":[{"value":0,"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},{"value":0,"_account_id":1000002,"name":"Gert Doering","display_name":"Gert Doering","email":"gert@greenie.muc.de","username":"cron2"}],"values":{"-2":"This shall not be submitted","-1":"I would prefer this is not submitted as is"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me, approved"},"description":"","default_value":0}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"}],"CC":[{"_account_id":1000026,"name":"openvpn-devel","email":"openvpn-devel@lists.sourceforge.net","username":"openvpn-devel"}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2026-09-25 09:51:31.000000000","updated_by":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"real_updated_by":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"reviewer":{"_account_id":1000026,"name":"openvpn-devel","email":"openvpn-devel@lists.sourceforge.net","username":"openvpn-devel"},"state":"CC"},{"updated":"2026-09-25 10:17:21.000000000","updated_by":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"real_updated_by":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"reviewer":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"state":"CC"},{"updated":"2026-10-12 08:04:00.000000000","updated_by":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"real_updated_by":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"reviewer":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"state":"REVIEWER"}],"messages":[{"id":"16e95ecefa9600ad6c8ff82f9cdbf2ae512f0075","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"date":"2026-09-25 09:51:31.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"e537e5559f0f4b4bc0c36e2ec632c5e176e318b2","author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"date":"2026-09-25 10:17:21.000000000","message":"Patch Set 1:\n\n(1 comment)","accounts_in_message":[],"_revision_number":1},{"id":"97dc6aa506a9d1a1a09eda4745dc7f7615efca7f","author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"date":"2026-09-25 10:29:46.000000000","message":"Patch Set 1:\n\n(1 comment)","accounts_in_message":[],"_revision_number":1},{"id":"b908300620943f2b95b29b9a574b66fe36cb0a53","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"date":"2026-10-12 07:35:22.000000000","message":"Uploaded patch set 2.","accounts_in_message":[],"_revision_number":2},{"id":"70b5625c202103334c4d8ad20be3c020df194381","author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"date":"2026-10-12 08:04:00.000000000","message":"Patch Set 2: Code-Review-1\n\n(1 comment)","accounts_in_message":[],"_revision_number":2},{"id":"097a3fab6bb85f0885cf5bca397305307f079b6a","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"date":"2026-11-03 15:10:23.000000000","message":"Uploaded patch set 3.\n\nOutdated Votes:\n* Code-Review-1 (copy condition: \"changekind:NO_CHANGE OR changekind:TRIVIAL_REBASE OR is:MIN\")\n","accounts_in_message":[],"_revision_number":3},{"id":"32d5ea9026e212ff96bc648d94887aa49d7866af","author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"date":"2026-11-03 15:15:25.000000000","message":"Patch Set 3: Code-Review+2","accounts_in_message":[],"_revision_number":3},{"id":"055e1f89f0c556e397b96ea8024c70319b14556a","tag":"autogenerated:gerrit:merged","author":{"_account_id":1000002,"name":"Gert Doering","display_name":"Gert Doering","email":"gert@greenie.muc.de","username":"cron2"},"date":"2026-11-03 19:38:49.000000000","message":"Change has been successfully pushed.","accounts_in_message":[],"_revision_number":4}],"current_revision_number":4,"current_revision":"d42fbb1f40fdc9ef20dbe524db108e4920e388ac","revisions":{"cf481197cd8c5e5270f11dbaa63c87265e2b13c8":{"kind":"REWORK","_number":1,"created":"2026-09-25 09:51:31.000000000","uploader":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"ref":"refs/changes/50/1950/1","fetch":{"anonymous http":{"url":"https://gerrit.openvpn.net/openvpn","ref":"refs/changes/50/1950/1","commands":{"Branch":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/1 \u0026\u0026 git checkout -b change-1950 FETCH_HEAD","Checkout":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://gerrit.openvpn.net/openvpn refs/changes/50/1950/1","Reset To":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/1 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"0cc99b10b4464bdeaa8c254f8388aeb241e8e8b6","subject":"GHA: Maintenance update September 2026"}],"author":{"name":"Drew Blokzyl","email":"drew@linuxkids.com","date":"2026-09-22 13:49:46.000000000","tz":0},"committer":{"name":"Arne Schwabe","email":"arne@rfc2549.org","date":"2026-09-25 09:51:19.000000000","tz":120},"subject":"Drop the OpenSSL errors a failed cipher/digest lookup leaves behind","message":"Drop the OpenSSL errors a failed cipher/digest lookup leaves behind\n\ncipher_get() looks a cipher up with EVP_CIPHER_fetch() and hands the\nresult, possibly NULL, to callers that only care whether it exists:\ncipher_valid_reason(), cipher_kt_mode_cbc/ofb_cfb/aead(),\ncipher_kt_block_size(), cipher_kt_insecure(). A failed fetch is a normal\noutcome for them, but under OpenSSL 3 it also pushes an\nEVP_R_UNSUPPORTED error (\"digital envelope routines::unsupported,\nAlgorithm (none : 0)\") onto the thread\u0027s error queue, and nobody pops it.\n\nThe common way to get there is not exotic. A server that does not set\n--cipher gets the legacy default BF-CBC, which is not in --data-ciphers,\nso do_init_crypto_tls() initialises the pre-negotiation key_type with\ncipher \"none\". Every new client instance then runs init_instance() -\u003e\ndo_init_crypto_tls() -\u003e cipher_kt_mode_ofb_cfb(\"none\"), and the frame\nand OCC calculations (calculate_crypto_overhead(), frame_calculate_*())\nwalk the same key_type, each fetching \"none\" and failing.\ncipher_kt_block_size() adds a second case for AEAD ciphers whose CBC\nsibling does not exist (CHACHA20-POLY1305 -\u003e \"CHACHA20-CBC\").\nmd_valid() has the same shape for digests.\n\nThe stale entry then misleads code that classifies an unrelated failure\nwith ERR_peek_error(), which returns the OLDEST queued entry. The visible\nsymptom is backend_tls_ctx_reload_crl() logging \"CRL: cannot read CRL\nfrom file\" on the first handshake after the CRL file changes although\nthe CRL loaded fine (GitHub #1103). Traced with gdb on OpenVPN 2.7.0 and\nmaster with OpenSSL 3.5.5: the single entry on the queue at reload entry\nis the cipher_kt_mode_ofb_cfb(\"none\") fetch from do_init_crypto_tls()\nof that same client instance.\n\nBracket the probing fetches with ERR_set_mark()/ERR_pop_to_mark() so a\nfailed lookup leaves the queue as it found it; the return value already\ncarries the answer these callers want. wolfSSL\u0027s compatibility layer has\nno error marks, so openssl_compat.h maps them to ERR_clear_error() there.\n\nWith this change the error queue is empty at multi_create_instance() and\nat backend_tls_ctx_reload_crl() entry for UDP, TCP and CHACHA20-POLY1305\nclients, and the spurious warning is gone: three CRL replacements, three\nhandshakes, zero warnings (unpatched: three of three).\n\nChange-Id: I440c4c73865fdbd80f2c607e83c50e345a0e2438\nSigned-off-by: Drew Blokzyl \u003cdrew@linuxkids.com\u003e\nSigned-off-by: Arne Schwabe \u003carne@rfc2549.org\u003e\n"},"branch":"refs/heads/master"},"6aab116b2955902fe81349e5cfd1e92f6a49fb8a":{"kind":"REWORK","_number":2,"created":"2026-10-12 07:35:22.000000000","uploader":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"ref":"refs/changes/50/1950/2","fetch":{"anonymous http":{"url":"https://gerrit.openvpn.net/openvpn","ref":"refs/changes/50/1950/2","commands":{"Branch":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/2 \u0026\u0026 git checkout -b change-1950 FETCH_HEAD","Checkout":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://gerrit.openvpn.net/openvpn refs/changes/50/1950/2","Reset To":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/2 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"984a5d08e5838afd5db8987837327de731798886","subject":"options: Introduce boolean_flag() and review usages of atoi_warn"}],"author":{"name":"Drew Blokzyl","email":"drew@linuxkids.com","date":"2026-09-28 14:34:24.000000000","tz":0},"committer":{"name":"Arne Schwabe","email":"arne@rfc2549.org","date":"2026-10-12 07:35:02.000000000","tz":120},"subject":"Do not look up the \"none\" cipher or digest in OpenSSL","message":"Do not look up the \"none\" cipher or digest in OpenSSL\n\ncipher_get() hands EVP_CIPHER_fetch() whatever name it is given, and the\ncallers that only ask whether a cipher exists or which mode it has\n(cipher_kt_mode_cbc/ofb_cfb/aead(), cipher_kt_block_size(),\ncipher_kt_insecure()) treat NULL as \"not that\". For the \"none\" cipher\nthat is the expected answer, but under OpenSSL 3 the failed fetch also\npushes EVP_R_UNSUPPORTED (\"digital envelope routines::unsupported,\nAlgorithm (none : 0)\") onto the thread\u0027s error queue, and nothing pops\nit.\n\n\"none\" is what every server without --cipher carries in its\npre-negotiation key_type: the legacy BF-CBC default is not in\n--data-ciphers, so do_init_crypto_tls() initialises the key_type with\ncipher \"none\". Each new client instance walks it in init_instance() -\u003e\ndo_init_crypto_tls() -\u003e cipher_kt_mode_ofb_cfb(\"none\") and in the frame\nand OCC calculations, and tls_ctx_reload_crl() runs right after. Its\nEOF test reads ERR_peek_error(), the OLDEST queued entry, so on the\nfirst handshake after the CRL file changed it finds the stale\n\"unsupported\" error and logs \"CRL: cannot read CRL from file\" for a CRL\nit loaded fine (GitHub #1103). Traced with gdb on 2.7.0 and master\nagainst OpenSSL 3.5.5.\n\nReturn NULL for \"none\" before touching OpenSSL, as cipher_kt_name()\nalready does. Real cipher names behave as before, and\ncipher_valid_reason() still finds the OpenSSL reason on the queue when\nit reports an unknown cipher. md_get() gets the same guard: no caller\npasses \"none\" today (md_kt_name(), md_kt_size() and md_defined() check\nfirst), but it has the same shape and would leave the same entry.\n\nLeft alone on purpose: cipher_kt_block_size()\u0027s probe for the CBC\nsibling of an AEAD cipher (CHACHA20-POLY1305 -\u003e \"CHACHA20-CBC\") and\nmd_valid() leave the same kind of entry, but neither runs between\nclient instance creation and the CRL reload. The next commit makes that\nreload robust against any leftover and reports one when it sees it.\n\nWith this change the queue is empty at multi_create_instance() and at\nbackend_tls_ctx_reload_crl() entry for UDP, TCP and CHACHA20-POLY1305\nclients; CRL replacements give clean reloads (unpatched: a warning\nevery time).\n\nChange-Id: I440c4c73865fdbd80f2c607e83c50e345a0e2438\nSigned-off-by: Drew Blokzyl \u003cdrew@linuxkids.com\u003e\nSigned-off-by: Arne Schwabe \u003carne@rfc2549.org\u003e\n"},"branch":"refs/heads/master"},"0a02cbf3958351561dd611c2db807ec9b16215bc":{"kind":"REWORK","_number":3,"created":"2026-11-03 15:10:23.000000000","uploader":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"ref":"refs/changes/50/1950/3","fetch":{"anonymous http":{"url":"https://gerrit.openvpn.net/openvpn","ref":"refs/changes/50/1950/3","commands":{"Branch":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/3 \u0026\u0026 git checkout -b change-1950 FETCH_HEAD","Checkout":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/3 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/3 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/3 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://gerrit.openvpn.net/openvpn refs/changes/50/1950/3","Reset To":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/3 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"6b617486ada6b9b936e0076081ca878ba493a3a9","subject":"Introduce get_key_by_management_key_id helper function"}],"author":{"name":"Drew Blokzyl","email":"drew@linuxkids.com","date":"2026-10-29 18:42:05.000000000","tz":-240},"committer":{"name":"Arne Schwabe","email":"arne@rfc2549.org","date":"2026-11-03 15:09:58.000000000","tz":60},"subject":"Do not look up the \"none\" cipher in OpenSSL","message":"Do not look up the \"none\" cipher in OpenSSL\n\ncipher_get() hands EVP_CIPHER_fetch() whatever name it is given, and the\ncallers that only ask whether a cipher exists or which mode it has\n(cipher_kt_mode_cbc/ofb_cfb/aead(), cipher_kt_block_size(),\ncipher_kt_insecure()) treat NULL as \"not that\". For the \"none\" cipher\nthat is the expected answer, but under OpenSSL 3 the failed fetch also\npushes EVP_R_UNSUPPORTED (\"digital envelope routines::unsupported,\nAlgorithm (none : 0)\") onto the thread\u0027s error queue, and nothing pops\nit.\n\n\"none\" is what every server without --cipher carries in its\npre-negotiation key_type: the legacy BF-CBC default is not in\n--data-ciphers, so do_init_crypto_tls() initialises the key_type with\ncipher \"none\". Each new client instance walks it in init_instance() -\u003e\ndo_init_crypto_tls() -\u003e cipher_kt_mode_ofb_cfb(\"none\") and in the frame\nand OCC calculations, and tls_ctx_reload_crl() runs right after. Before\ncommit 15a1465f (\"Make CRL reload EOF detection independent of stale\nerror queue entries\") that stale entry made the first handshake after a\nCRL change log \"CRL: cannot read CRL from file\" for a CRL it loaded fine\n(GitHub #1103); since then the reload reports it at D_LOW as \"CRL:\nOpenSSL error queue not empty on CRL load\" and clears it.\n\nReturn NULL for \"none\" before touching OpenSSL, as cipher_kt_name()\nalready does. Real cipher names behave as before, and\ncipher_valid_reason() still finds the OpenSSL reason on the queue when\nit reports an unknown cipher.\n\nLeft alone on purpose: cipher_kt_block_size()\u0027s probe for the CBC\nsibling of an AEAD cipher (CHACHA20-POLY1305 -\u003e \"CHACHA20-CBC\") and\nmd_valid() leave the same kind of entry, but neither runs between\nclient instance creation and the CRL reload.\n\nWith this change the queue is empty when the CRL reload runs for UDP\nand TCP clients, and CRL replacements give clean reloads with no\n\"error queue not empty\" report (current master: one per replacement).\n\nChange-Id: I440c4c73865fdbd80f2c607e83c50e345a0e2438\nSigned-off-by: Drew Blokzyl \u003cdrew@linuxkids.com\u003e\n"},"branch":"refs/heads/master"},"d42fbb1f40fdc9ef20dbe524db108e4920e388ac":{"kind":"TRIVIAL_REBASE_WITH_MESSAGE_UPDATE","_number":4,"created":"2026-11-03 19:38:49.000000000","uploader":{"_account_id":1000002,"name":"Gert Doering","display_name":"Gert Doering","email":"gert@greenie.muc.de","username":"cron2"},"ref":"refs/changes/50/1950/4","fetch":{"anonymous http":{"url":"https://gerrit.openvpn.net/openvpn","ref":"refs/changes/50/1950/4","commands":{"Branch":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/4 \u0026\u0026 git checkout -b change-1950 FETCH_HEAD","Checkout":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/4 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/4 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/4 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://gerrit.openvpn.net/openvpn refs/changes/50/1950/4","Reset To":"git fetch https://gerrit.openvpn.net/openvpn refs/changes/50/1950/4 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"e48597a63e7ba1d003f834cf3605b965d64a6e29","subject":"tls_crypt: append cipher final output at buffer end"}],"author":{"name":"Drew Blokzyl","email":"drew@linuxkids.com","date":"2026-11-03 19:27:24.000000000","tz":60},"committer":{"name":"Gert Doering","email":"gert@greenie.muc.de","date":"2026-11-03 19:35:16.000000000","tz":60},"subject":"Do not look up the \"none\" cipher in OpenSSL","message":"Do not look up the \"none\" cipher in OpenSSL\n\ncipher_get() hands EVP_CIPHER_fetch() whatever name it is given, and the\ncallers that only ask whether a cipher exists or which mode it has\n(cipher_kt_mode_cbc/ofb_cfb/aead(), cipher_kt_block_size(),\ncipher_kt_insecure()) treat NULL as \"not that\". For the \"none\" cipher\nthat is the expected answer, but under OpenSSL 3 the failed fetch also\npushes EVP_R_UNSUPPORTED (\"digital envelope routines::unsupported,\nAlgorithm (none : 0)\") onto the thread\u0027s error queue, and nothing pops\nit.\n\n\"none\" is what every server without --cipher carries in its\npre-negotiation key_type: the legacy BF-CBC default is not in\n--data-ciphers, so do_init_crypto_tls() initialises the key_type with\ncipher \"none\". Each new client instance walks it in init_instance() -\u003e\ndo_init_crypto_tls() -\u003e cipher_kt_mode_ofb_cfb(\"none\") and in the frame\nand OCC calculations, and tls_ctx_reload_crl() runs right after. Before\ncommit 15a1465f (\"Make CRL reload EOF detection independent of stale\nerror queue entries\") that stale entry made the first handshake after a\nCRL change log \"CRL: cannot read CRL from file\" for a CRL it loaded fine\n(GitHub #1103); since then the reload reports it at D_LOW as \"CRL:\nOpenSSL error queue not empty on CRL load\" and clears it.\n\nReturn NULL for \"none\" before touching OpenSSL, as cipher_kt_name()\nalready does. Real cipher names behave as before, and\ncipher_valid_reason() still finds the OpenSSL reason on the queue when\nit reports an unknown cipher.\n\nLeft alone on purpose: cipher_kt_block_size()\u0027s probe for the CBC\nsibling of an AEAD cipher (CHACHA20-POLY1305 -\u003e \"CHACHA20-CBC\") and\nmd_valid() leave the same kind of entry, but neither runs between\nclient instance creation and the CRL reload.\n\nWith this change the queue is empty when the CRL reload runs for UDP\nand TCP clients, and CRL replacements give clean reloads with no\n\"error queue not empty\" report (current master: one per replacement).\n\nChange-Id: I440c4c73865fdbd80f2c607e83c50e345a0e2438\nSigned-off-by: Drew Blokzyl \u003cdrew@linuxkids.com\u003e\nAcked-by: Razvan Cojocaru \u003crazvanc@mailbox.org\u003e\nGerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1950\nMessage-Id: \u003c20261103192732.13656-1-gert@greenie.muc.de\u003e\nURL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg40626.html\nSigned-off-by: Gert Doering \u003cgert@greenie.muc.de\u003e\n"},"branch":"refs/heads/master"}},"requirements":[],"submit_records":[]}
