
borneo.antonio at gmail
Sep 12, 2009, 8:23 AM
Post #1 of 2
(714 views)
Permalink
|
|
Re: svn commit: vpnc r416
|
|
Hi, I'm reviewing the commit r416 to merge it in Nortel branch. I want highlight this incorrect modification applied to trunk/config.c - printf("%s: unknown authentication mode %s\nknown modes: psk cert hybrid\n", argv[0], config[CONFIG_AUTH_MODE]); + printf("%s: unknown authentication mode %s\nknown modes: psk-plain psk-xauth cert hybrid\n", argv[0], config[CONFIG_AUTH_MODE]); This is NOT correct, since the only allowed values for config[CONFIG_AUTH_MODE] are still the original "psk", "cert" and "hybrid". The code has not been modified (yet?!?) to accept either "psk-plain" or "psk-xauth". Below, for your reference, a wider extract of the modification applied I will not merge this part of the patch in Nortel branch. Joerg, in attachmet the simple patch to recover the original string. Best Regards, Antonio Borneo On Thu, Aug 20, 2009 at 3:02 AM, <vpnc [at] unix-ag> wrote: > Author: Joerg Mayer > Date: Wed Aug 19 21:02:00 2009 > New Revision: 416 > > Log: > Mostly by Dan Williams <dcbw [at] redhat> > gnutls padding fixes by Laurent Goujon <laurent.goujon [at] online> > > vpnc currently requires openssl to provide the hybrid auth mode. That's > not ideal, since vpnc doesn't not include the OpenSSL exception in its > license, meaning many distributions cannot ship a hybrid-auth-enabled > vpnc. > > This patch splits out the certificate handing functions into a more > modular framework, and adds a gnutls implementation of certificate > handling bits, including testcases to ensure things work as expected. > Hybrid-auth with gnutls is the default mode now, since vpnc has no > licensing problem with gnutls. That means everyone gets hybrid FTW. > > ... > Modified: trunk/config.c > ============================================================================== > --- trunk/config.c (original) > +++ trunk/config.c Wed Aug 19 21:02:00 2009 ... > @@ -696,16 +696,9 @@ > } else if (!strcmp(config[CONFIG_AUTH_MODE], "hybrid")) { > opt_auth_mode = AUTH_MODE_HYBRID; > } else { > - printf("%s: unknown authentication mode %s\nknown modes: psk cert hybrid\n", argv[0], config[CONFIG_AUTH_MODE]); > + printf("%s: unknown authentication mode %s\nknown modes: psk-plain psk-xauth cert hybrid\n", argv[0], config[CONFIG_AUTH_MODE]); > exit(1); > } ...
|