-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 16/05/12 12:37, Alon Bar-Lev wrote: > On Wed, May 16, 2012 at 1:27 PM, David Sommerseth > <openvpn.l...@topphemmelig.net> wrote: >> >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> >> On 16/05/12 09:17, Alon Bar-Lev wrote: >>> Hello David, >>> >>> I guess this is yours: --- * Additions for eurephia plugin >>> done by: * David Sommerseth >>> <d...@users.sourceforge.net> Copyright (C) 2009 --- >>> >>> Looking at the code the eurephia plugin only do the following: >>> --- #ifdef ENABLE_PLUGIN_EUREPHIA /* export X509 cert SHA1 >>> fingerprint */ { unsigned char *sha1_hash = >>> x509_get_sha1_hash(peer_cert, &gc); >>> >>> openvpn_snprintf (envname, sizeof(envname), "tls_digest_%d", >>> cert_depth); setenv_str (es, envname, format_hex_ex(sha1_hash, >>> SHA_DIGEST_LENGTH, 0, 1, ":", &gc)); } #endif --- >>> >>> Can you please explain what this plugin is and why just remove >>> the conditional? >> >> You can find more info about the plug-in here: >> http://www.eurephia.net/ >> >> Basically, it's a username/password authentication plug-in which >> also matches a user account up against a certificate too (plus >> some extra features too as well). The 'tls_digest_%d' >> environment variable is used to get better data when matching >> certificates information against the database. >> >> I've been thinking that this whole #ifdef could go away in v2.4. >> It was a requirement from James to make this optional which is >> the reason it is how it is. He wanted to be sure it can be >> disabled if there were stability concerns. As this has been >> enabled by default in 2.2 and will be in 2.3, I thought 2.4 would >> be a reasonable time to confirm the stability. >> >> The [eurephia] string can also be removed then from options.c >> too; and I'll make sure the eurephia docs states that v2.4 >> contains the support even though not explicitly announced. > > Thanks. I don't see any reason why not to remove the #ifdef for > 2.3... it is default enabled anyway, so it is not like people > should explicit enable this and get lower stability.
It was actually the other way around. If people had stability issues, which might be related to environment tables growing too big (or somewhat related issues), this feature could be disabled to see if that helped it. Doing it like it is implemented made James happy, so I didn't argue about it. > Anyway, if the need of the digest is valid then it is not specific > to this plugin. AFAIK, eurephia is the only plug-in depending on this feature, and it this feature arrived first in v2.2. So it was kind of to have a clearer reference to what this feature is about. But I see that this information can be useful for other plug-ins/scripts as well. kind regards, David Sommerseth -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+zhW0ACgkQDC186MBRfrr5hQCfepddgwecRP0a8V+hJaM5n+Y9 gK8An3mlCMUAwjl5AlHojMOah3w0rGAd =y4TQ -----END PGP SIGNATURE-----