Copied from T5732#153999, so that the issue can be handled separately:
While trying to test the X.509 directory server configuration in Kleopatra, I stumbled over a difference between 2.2 and 2.3 and a possible regression in 2.2.
$ gpgconf --version gpgconf (GnuPG) 2.3.5-beta17 [...] $ gpgconf --list-options gpgsm | grep server: keyserver:4:0::33:1::::"ldaps%3a//keyserver.example.com
$ gpgconf --version gpgconf (GnuPG) 2.2.34-beta23 [...] $ gpgconf --list-options gpgsm | grep server: Note: no default option file '/etc/gnupg/gpgsm.conf' reading options from '/home/ingo/dev/g10/.gnupghomes/2.2/gpgsm.conf' keyserver:4:0::33:1::::
I found out that in 2.3 find_option() is called with "keyserver" in retrieve_options_from_program while in 2.2 find_option() is called with "ldapserver" (which seems to be defined as alias for gpgsm's keyserver option). Apparently, the option parsing differs between 2.2 and 2.3 and in 2.2 it seems to be broken (at least for the keyserver option).