diff options
author | marha <marha@users.sourceforge.net> | 2015-04-20 22:51:55 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2015-04-20 22:53:07 +0200 |
commit | 2a00e489122f6c4b525090dbdba2855a2ea2d519 (patch) | |
tree | 815e5c842bccb2bc6eb4b2934ef618fe32b820ca /openssl/crypto/objects/objxref.pl | |
parent | 4ba9be2882d9f1567809edb0a31fcdf11320d41f (diff) | |
download | vcxsrv-2a00e489122f6c4b525090dbdba2855a2ea2d519.tar.gz vcxsrv-2a00e489122f6c4b525090dbdba2855a2ea2d519.tar.bz2 vcxsrv-2a00e489122f6c4b525090dbdba2855a2ea2d519.zip |
Upgraded to openssl 1.0.2a
Diffstat (limited to 'openssl/crypto/objects/objxref.pl')
-rw-r--r-- | openssl/crypto/objects/objxref.pl | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/openssl/crypto/objects/objxref.pl b/openssl/crypto/objects/objxref.pl index 833f4ab88..1913b9d13 100644 --- a/openssl/crypto/objects/objxref.pl +++ b/openssl/crypto/objects/objxref.pl @@ -63,30 +63,36 @@ $pname =~ s|^.[^/]/||; print <<EOF; /* AUTOGENERATED BY $pname, DO NOT EDIT */ -typedef struct - { - int sign_id; - int hash_id; - int pkey_id; - } nid_triple; +typedef struct { + int sign_id; + int hash_id; + int pkey_id; +} nid_triple; -static const nid_triple sigoid_srt[] = - { +static const nid_triple sigoid_srt[] = { EOF foreach (@srt1) { my $xr = $_; my ($p1, $p2) = @{$xref_tbl{$_}}; - print "\t{NID_$xr, NID_$p1, NID_$p2},\n"; - } + my $o1 = " {NID_$xr, NID_$p1,"; + my $o2 = "NID_$p2},"; + if (length("$o1 $o2") < 78) + { + print "$o1 $o2\n"; + } + else + { + print "$o1\n $o2\n"; + } + } -print "\t};"; +print "};"; print <<EOF; -static const nid_triple * const sigoid_srt_xref[] = - { +static const nid_triple *const sigoid_srt_xref[] = { EOF foreach (@srt2) @@ -95,10 +101,10 @@ foreach (@srt2) # If digest or signature algorithm is "undef" then the algorithm # needs special handling and is excluded from the cross reference table. next if $p1 eq "undef" || $p2 eq "undef"; - print "\t\&sigoid_srt\[$x\],\n"; + print " \&sigoid_srt\[$x\],\n"; } -print "\t};\n\n"; +print "};\n"; sub check_oid { @@ -108,4 +114,3 @@ sub check_oid die "Not Found \"$chk\"\n"; } } - |