~andersk/ubuntu/oneiric/openssl/spurious-reboot

« back to all changes in this revision

Viewing changes to crypto/objects/obj_dat.pl

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2011-05-01 23:51:53 UTC
  • mfrom: (11.1.20 sid)
  • Revision ID: james.westby@ubuntu.com-20110501235153-bjcxitndquaezb68
Tags: 1.0.0d-2ubuntu1
* Resynchronise with Debian (LP: #675566).  Remaining changes:
  - debian/libssl1.0.0.postinst:
    + Display a system restart required notification bubble on libssl1.0.0
      upgrade.
    + Use a different priority for libssl1.0.0/restart-services depending
      on whether a desktop, or server dist-upgrade is being performed.
  - debian/{libssl1.0.0-udeb.dirs, control, rules}: Create
    libssl1.0.0-udeb, for the benefit of wget-udeb (no wget-udeb package
    in Debian).
  - debian/{libcrypto1.0.0-udeb.dirs, libssl1.0.0.dirs, libssl1.0.0.files,
    rules}: Move runtime libraries to /lib, for the benefit of
    wpasupplicant.
  - debian/patches/aesni.patch: Backport Intel AES-NI support, now from
    http://rt.openssl.org/Ticket/Display.html?id=2065 rather than the
    0.9.8 variant.
  - debian/patches/Bsymbolic-functions.patch: Link using
    -Bsymbolic-functions.
  - debian/patches/perlpath-quilt.patch: Don't change perl #! paths under
    .pc.
  - debian/rules:
    + Don't run 'make test' when cross-building.
    + Use host compiler when cross-building.  Patch from Neil Williams.
    + Don't build for processors no longer supported: i486, i586 (on
      i386), v8 (on sparc).
    + Fix Makefile to properly clean up libs/ dirs in clean target.
    + Replace duplicate files in the doc directory with symlinks.
* Update architectures affected by Bsymbolic-functions.patch.
* Drop debian/patches/no-sslv2.patch; Debian now adds the 'no-ssl2'
  configure option, which compiles out SSLv2 support entirely, so this is
  no longer needed.
* Drop openssl-doc in favour of the libssl-doc package introduced by
  Debian.  Add Conflicts/Replaces until the next LTS release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/perl
 
1
#!/usr/local/bin/perl
2
2
 
3
3
# fixes bug in floating point emulation on sparc64 when
4
4
# this script produces off-by-one output on sparc64
5
 
eval 'use integer;';
6
 
 
7
 
print STDERR "Warning: perl module integer not found.\n" if ($@);
 
5
use integer;
8
6
 
9
7
sub obj_cmp
10
8
        {
150
148
@a=grep(defined($sn{$nid{$_}}),0 .. $n);
151
149
foreach (sort { $sn{$nid{$a}} cmp $sn{$nid{$b}} } @a)
152
150
        {
153
 
        push(@sn,sprintf("&(nid_objs[%2d]),/* \"$sn{$nid{$_}}\" */\n",$_));
 
151
        push(@sn,sprintf("%2d,\t/* \"$sn{$nid{$_}}\" */\n",$_));
154
152
        }
155
153
 
156
154
@a=grep(defined($ln{$nid{$_}}),0 .. $n);
157
155
foreach (sort { $ln{$nid{$a}} cmp $ln{$nid{$b}} } @a)
158
156
        {
159
 
        push(@ln,sprintf("&(nid_objs[%2d]),/* \"$ln{$nid{$_}}\" */\n",$_));
 
157
        push(@ln,sprintf("%2d,\t/* \"$ln{$nid{$_}}\" */\n",$_));
160
158
        }
161
159
 
162
160
@a=grep(defined($obj{$nid{$_}}),0 .. $n);
166
164
        $v=$objd{$m};
167
165
        $v =~ s/L//g;
168
166
        $v =~ s/,/ /g;
169
 
        push(@ob,sprintf("&(nid_objs[%2d]),/* %-32s %s */\n",$_,$m,$v));
 
167
        push(@ob,sprintf("%2d,\t/* %-32s %s */\n",$_,$m,$v));
170
168
        }
171
169
 
172
170
print OUT <<'EOF';
241
239
printf OUT "#define NUM_LN %d\n",$#ln+1;
242
240
printf OUT "#define NUM_OBJ %d\n\n",$#ob+1;
243
241
 
244
 
printf OUT "static unsigned char lvalues[%d]={\n",$lvalues+1;
 
242
printf OUT "static const unsigned char lvalues[%d]={\n",$lvalues+1;
245
243
print OUT @lvalues;
246
244
print OUT "};\n\n";
247
245
 
248
 
printf OUT "static ASN1_OBJECT nid_objs[NUM_NID]={\n";
 
246
printf OUT "static const ASN1_OBJECT nid_objs[NUM_NID]={\n";
249
247
foreach (@out)
250
248
        {
251
249
        if (length($_) > 75)
269
267
        }
270
268
print  OUT "};\n\n";
271
269
 
272
 
printf OUT "static ASN1_OBJECT *sn_objs[NUM_SN]={\n";
 
270
printf OUT "static const unsigned int sn_objs[NUM_SN]={\n";
273
271
print  OUT @sn;
274
272
print  OUT "};\n\n";
275
273
 
276
 
printf OUT "static ASN1_OBJECT *ln_objs[NUM_LN]={\n";
 
274
printf OUT "static const unsigned int ln_objs[NUM_LN]={\n";
277
275
print  OUT @ln;
278
276
print  OUT "};\n\n";
279
277
 
280
 
printf OUT "static ASN1_OBJECT *obj_objs[NUM_OBJ]={\n";
 
278
printf OUT "static const unsigned int obj_objs[NUM_OBJ]={\n";
281
279
print  OUT @ob;
282
280
print  OUT "};\n\n";
283
281