csp.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Index: CSP.pm
  2. --- CSP.pm.orig 2005-09-22 18:02:58 +0200
  3. +++ CSP.pm 2005-12-01 20:17:55 +0100
  4. @@ -151,7 +151,6 @@
  5. my $expr = $1;
  6. $expr =~ s/%{([A-Za-z0-9_\.]+)}/\$vars->{$1}/g;
  7. - warn "EXPR: \"".$expr."\"\n";
  8. my $result = eval $expr;
  9. $self->die("$@") if $@;
  10. $ctx->push($result);
  11. Index: ca/etc/extensions.conf
  12. --- ca/etc/extensions.conf.orig 2005-09-22 18:12:05 +0200
  13. +++ ca/etc/extensions.conf 2005-12-01 20:17:41 +0100
  14. @@ -75,11 +75,10 @@
  15. [certpolicy]
  16. policyIdentifier = 1.1.1.1.1
  17. -## Map this to a real document in your webserver configuration
  18. CPS.1 = http://ca.example.com/CPS
  19. userNotice.1 = @notice
  20. [notice]
  21. -explicitText="Limited Liability, see http://ca.example.com/CP"
  22. +explicitText = "Limited Liability, see http://ca.example.com/CP"
  23. Index: csp
  24. --- csp.orig 2005-06-02 18:40:20 +0200
  25. +++ csp 2005-12-01 20:17:41 +0100
  26. @@ -1,9 +1,14 @@
  27. -#!/usr/bin/perl
  28. +#!@l_prefix@/bin/perl
  29. -use lib './blib/lib';
  30. +use lib '@l_prefix@/libexec/csp';
  31. use CSP;
  32. use Getopt::Long;
  33. +use Cwd;
  34. +
  35. +$ENV{CSPHOME} = getcwd() if (not defined($ENV{CSPHOME}) and -d "./csp");
  36. +$ENV{CSPHOME} = '@l_prefix@/var/csp/ca' if (not defined($ENV{CSPHOME}));
  37. +$ENV{OPENSSL} = '@l_prefix@/bin/openssl' if (not defined($ENV{OPENSSL}));
  38. sub list_csp
  39. {
  40. @@ -175,6 +180,9 @@
  41. my $home = $ENV{CSPHOME} || 'ca';
  42. +die "Panic: Cannot write to \$CSPHOME \"$home\""
  43. + unless -w $home;
  44. +
  45. mkdir "$home/csp",00755 unless -d "$home/csp";
  46. $name eq '--list' and