Package: tinyca
Version: 0.6.8-1
Followup-For: Bug #308879


The error happens for empty crl's.
i could fix it with the following patch:

--- /usr/lib/tinyca/OpenSSL.pm  2005-05-22 22:08:16.000000000 +0200
+++ OpenSSL.pm.orig     2005-05-22 22:06:26.000000000 +0200
@@ -479,8 +479,6 @@
    }

    # get "normal infos"
-   $tmp->{'LIST'} = [];
-   return($tmp) unless ($tmp->{'TXT'});
    @lines = split(/\n/, $tmp->{'TXT'});
    foreach(@lines) {
       if ($_ =~ /Signature Algorithm.*: (\w+)/i) {
@@ -498,6 +496,7 @@
    }

    # get revoked certs
+   $tmp->{'LIST'} = [];
    for($i = 0; $lines[$i] !~ /^[\s\t]*Revoked Certificates:$/i; $i++) {
       $self->{'CACHE'}->{$file} = $tmp;
       return($tmp) if ($lines[$i] =~ /No Revoked Certificates/i);

tilo
[EMAIL PROTECTED]
-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages tinyca depends on:
ii libgnome-perl 0.7009-2 Perl module for the gnome and zvt ii libgtk-perl 0.7009-2 Perl module for the gtk+ library ii liblocale-gettext-perl 1.04-1 Using libc functions for internati ii openssl 0.9.7g-1 Secure Socket Layer (SSL) binary a ii perl [libmime-base64-perl] 5.8.4-8 Larry Wall's Practical Extraction

-- no debconf information


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to