Date: Thu, 5 Feb 2009 18:02:43 +0200 (EET) From: upb Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-416440086-1233849764=:7502" ReSent-To: openvpn-devel@lists.sourceforge.net ReSent-Message-ID: Subject: [Openvpn-devel] [PATCH] certificate subject parsing bug in extract_x509_field_ssl. against 2.1_rc7 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: openvpn-devel@lists.sourceforge.net Cc: upbupb@...277... --8323329-416440086-1233849764=:7502 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII This bug causes cert subjects where common name is the first component of the subject, to be parsed incorrectly, resulting in no common name being returned at all. Observed effects include incorrect client configuration being read (the UNDEF one) etc. Patch is attached. Regards, upb League of local jewish enterpreneurs. --8323329-416440086-1233849764=:7502 Content-Type: TEXT/x-diff; name=openvpn.certificate.subject.parsing.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=openvpn.certificate.subject.parsing.patch LS0tIHNzbC5jLmJ1Z2d5CTIwMDktMDItMDUgMTc6NTQ6MzIuMDAwMDAwMDAw ICswMjAwDQorKysgc3NsLmMJMjAwOS0wMi0wNSAxNzo1NTowOS4wMDAwMDAw MDAgKzAyMDANCkBAIC00MDIsNyArNDAyLDcgQEANCiAgIGRvIHsNCiAgICAg bGFzdHBvcyA9IHRtcDsNCiAgICAgdG1wID0gWDUwOV9OQU1FX2dldF9pbmRl eF9ieV9OSUQoeDUwOSwgbmlkLCBsYXN0cG9zKTsNCi0gIH0gd2hpbGUgKHRt cCA+IDApOw0KKyAgfSB3aGlsZSAodG1wICE9IC0xKTsNCiANCiAgIC8qIE5v dGhpbmcgZm91bmQgKi8NCiAgIGlmIChsYXN0cG9zID09IC0xKQ0K --8323329-416440086-1233849764=:7502--