From: Adriaan de Jong Date: Thu, 7 Jul 2011 09:09:25 +0200 Message-ID: <1CED409804E2164C8104F9E623B08B901269D8E721@...1436...> References: <1CED409804E2164C8104F9E623B08B901269D8E391@...1436...> <4E14B584.9040905@...515...> In-Reply-To: <4E14B584.9040905@...515...> Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_1CED409804E2164C8104F9E623B08B901269D8E721FOXDFT02FOXlo_" MIME-Version: 1.0 Subject: Re: [Openvpn-devel] PolarSSL patches List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Samuli_Sepp=E4nen?= Cc: "openvpn-devel@lists.sourceforge.net" --_000_1CED409804E2164C8104F9E623B08B901269D8E721FOXDFT02FOXlo_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Samuli, Since plugins have support for X.509 certificates, they need to enable eith= er USE_OPENSSL or USE_POLARSSL, and include the appropriate X.509 backend (= ssl_verify_*.h). Since neither was defined, the file was not included and t= herefore the build failed. This is part of a larger problem, where if USE_SSL is not defined a depende= ncy to OpenSSL's x509 header still exists for plugins. I've fixed this in a= patch that I'll upload and mail soon. Adriaan From: Samuli Sepp=E4nen [mailto:samuli@...515...] Sent: woensdag 6 juli 2011 21:21 To: Adriaan de Jong Cc: openvpn-devel@lists.sourceforge.net Subject: Re: [Openvpn-devel] PolarSSL patches Hi Adriaan, I tried building your tree on Debian 5 (amd64) VM and got this error: #make plugins /usr/bin/make -C plugin/auth-pam/ make[1]: Entering directory `/home/buildslave/andj-openvpn-ssl-refactoring-= 4970f14/plugin/auth-pam' gcc -O2 -Wall -DDLOPEN_PAM=3D0 -fPIC -c -I../.. auth-pam.c In file included from auth-pam.c:49: ../../openvpn-plugin.h:283: error: expected specifier-qualifier-list before= 'x509_cert_t' make[1]: *** [auth-pam.o] Error 1 make[1]: Leaving directory `/home/buildslave/andj-openvpn-ssl-refactoring-4= 970f14/plugin/auth-pam' make: *** [build-stamp] Error 2 The same VM has been used to successfully build the official release packag= es. Samuli Hi everyone, During last week's meeting we decided to temporarily create a github tree f= or OpenVPN. It can be found at https://github.com/andj/openvpn-ssl-refactor= ing . The version found there is now ready for testing, and will (hopefully= ) be included in the 2.3 alpha versions. Could interested parties please have a look and provide me with feedback (t= hrough IRC/e-mail?). Thanks! Adriaan de Jong PS. Note that due to limitations in PolarSSL, it is still missing a number = of features: * PKCS#12 file support * --capath support - Loading certificate authorities from a directory * Windows CryptoAPI support * Management external key support * X.509 alternative username fields (must be "CN") Plugin/Script features: * X.509 Serial number is in hex, not decimal as with OpenSSL * X.509 subject line has a different format than the OpenSSL subject line * X.509 certificate export does not work * X.509 certificate tracking Fox-IT ...for a more secure society I www.fox-it.com --_000_1CED409804E2164C8104F9E623B08B901269D8E721FOXDFT02FOXlo_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi Samuli,

 

Since plugins have supp= ort for X.509 certificates, they need to enable either USE_OPENSSL or USE_P= OLARSSL, and include the appropriate X.509 backend (ssl_verify_*.h). Since = neither was defined, the file was not included and therefore the build fail= ed.

 

This is part of a larger problem, where if= USE_SSL is not defined a dependency to OpenSSL’s x509 header still e= xists for plugins. I’ve fixed this in a patch that I’ll upload = and mail soon.

 

= Adriaan

 

From: Samuli Sepp=E4nen [mailto:samu= li@...515...]
Sent: woensdag 6 juli 2011 21:21
To: Adr= iaan de Jong
Cc: openvpn-devel@lists.sourceforge.net
Subjec= t: Re: [Openvpn-devel] PolarSSL patches

 

Hi Adriaan= ,

I tried building your tree on Debian 5 (amd64) VM and got this err= or:

#make plugins
/usr/bin/make -C plugin/auth-pam/
make[1]: E= ntering directory `/home/buildslave/andj-openvpn-ssl-refactoring-4970f14/pl= ugin/auth-pam'
gcc -O2 -Wall -DDLOPEN_PAM=3D0 -fPIC -c -I../.. auth-pam.= c
In file included from auth-pam.c:49:
../../openvpn-plugin.h:283: er= ror: expected specifier-qualifier-list before ‘x509_cert_t’
= make[1]: *** [auth-pam.o] Error 1
make[1]: Leaving directory `/home/buil= dslave/andj-openvpn-ssl-refactoring-4970f14/plugin/auth-pam'
make: *** [= build-stamp] Error 2

The same VM has been used to successfully build= the official release packages.

Samuli



Hi everyone,

 = ;

During last week= 217;s meeting we decided to temporarily create a github tree for OpenVPN. I= t can be found at https://github.com/andj/openvpn-ssl-refactoring . The version found = there is now ready for testing, and will (hopefully) be included in the 2.3= alpha versions.

 

Coul= d interested parties please have a look and provide me with feedback (throu= gh IRC/e-mail?).

 

Tha= nks!

 

Adriaan de Jong<= /span>

 <= o:p>

PS. Note that due to = limitations in PolarSSL, it is still missing a number of features:

 

 * PKCS#12 file support

=

 * = --capath support - Loading certificate authorities from a directory<= o:p>

 * Windows CryptoAPI support

 * Management ext= ernal key support

 * X.509 alternative username fields (m= ust be "CN")

 

Plugin/Script featu= res:

 

 * X.509 Serial number is in hex= , not decimal as with OpenSSL

 * X.509 subject line has a= different format than the OpenSSL subject line

 * X.509 = certificate export does not work

=  * X.509 certificate tra= cking

 

Fox-IT    ...for a more secure society

I www.fox-it.com