Author: orw
Date: Tue Jan 21 16:17:39 2014
New Revision: 1560062
URL: http://svn.apache.org/r1560062
Log:
123744: method <handleCertificateValidationRequest_(..)> - correct
consideration of Subject Alternative Name field of the given certificate
Modified:
openoffice/trunk/main/uui/source/iahndl-ssl.cxx
Modified: openoffice/trunk/main/uui/source/iahndl-ssl.cxx
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/uui/source/iahndl-ssl.cxx?rev=1560062&r1=1560061&r2=1560062&view=diff
==============================================================================
--- openoffice/trunk/main/uui/source/iahndl-ssl.cxx (original)
+++ openoffice/trunk/main/uui/source/iahndl-ssl.cxx Tue Jan 21 16:17:39 2014
@@ -308,9 +308,10 @@ handleCertificateValidationRequest_(
certHostNames[0] = certHostName;
- for(int n = 1; n < altNames.getLength(); n++){
+ for(int n = 0; n < altNames.getLength(); ++n)
+ {
if (altNames[n].Type == security::ExtAltNameType_DNS_NAME){
- altNames[n].Value >>= certHostNames[n];
+ altNames[n].Value >>= certHostNames[n+1];
}
}