Pierre Scholtes wrote:

Found where it loops:
in the checkDNPolicy function in the file pkcs10_req it doesn't get out of the foreach loop
foreach $attr (@DNBaseArray)
{
$temp = $DNTypeString. $counter;
$temp = getRequired($temp);
$temp = $attr."=".$temp;
print "temp $temp <BR>" if $DEBUG;
push (@baseDNAttributeArray, $temp);
$counter ++;
}
But I don't know why yet (and why only with the Microsoft request?). Any suggestion?

It is the while loop before like you mentioned in another mail. Here is the fixed version. The old version has a problem with the exist mode. I commit it to CVS too but you can search for the if statement to replace it by yourself.


        while (@baseDNAttributeArray and $DNEnforceBase !~ /NO/i)
        {
                ## get an array of elements which should be checked
                my @searchBase = ();
                if ($DNEnforceBase =~ /YES/i)
                {
                        push @searchBase, pop @DNArray;
                } else {
                        push @searchBase, @DNArray;
                }
                my $baseElement = pop @baseDNAttributeArray;

## check elements
my $success = 0;
foreach my $item (@searchBase)
{
$success = 1 if ( $baseElement eq $item );
}
if (not $success)
{
if ($DNEnforceBase =~ /YES/i)
{
generalError ( i18nGettext ("Your request has __DN_ELEMENT__ which must be __BASE_ELEMENT__.",


"__DN_ELEMENT__", $searchBase[0],

"__BASE_ELEMENT__", $baseElement));
} else {
generalError ( i18nGettext ("Your request has to include __BASE_ELEMENT__.",


"__BASE_ELEMENT__", $baseElement));
                        }
                        return undef;
                }

}

Sorry for the delay but we prepare a report

Michael
--
-------------------------------------------------------------------
Michael Bell                   Email: [EMAIL PROTECTED]
ZE Computer- und Medienservice            Tel.: +49 (0)30-2093 2482
(Computing Centre)                        Fax:  +49 (0)30-2093 2704
Humboldt-University of Berlin
Unter den Linden 6
10099 Berlin                   Email (private): [EMAIL PROTECTED]
Germany                                       http://www.openca.org



-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
_______________________________________________
Openca-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openca-users

Reply via email to