Browse Source

after sourcetrail analysis

master
Loki Verloren 1 year ago
parent
commit
9d6bc92973
No account linked to committer's email address
54 changed files with 35577 additions and 632 deletions
  1. BIN
      parallelcoind.srctrlbm
  2. BIN
      parallelcoind.srctrldb
  3. 17
    0
      parallelcoind.srctrlprj
  4. 6550
    0
      src/compile_commands.json
  5. 2
    2
      src/makefile.unix
  6. 2
    2
      src/openssl-1.0.1u/Makefile.bak
  7. 0
    189
      src/openssl-1.0.1u/apps/CA.pl.bak
  8. BIN
      src/openssl-1.0.1u/apps/openssl
  9. 29005
    0
      src/openssl-1.0.1u/compile_commands.json
  10. 1
    1
      src/openssl-1.0.1u/crypto/buildinf.h
  11. 0
    258
      src/openssl-1.0.1u/crypto/opensslconf.h.bak
  12. BIN
      src/openssl-1.0.1u/libcrypto.a
  13. BIN
      src/openssl-1.0.1u/libssl.a
  14. BIN
      src/openssl-1.0.1u/test/asn1test
  15. BIN
      src/openssl-1.0.1u/test/bftest
  16. BIN
      src/openssl-1.0.1u/test/bntest
  17. BIN
      src/openssl-1.0.1u/test/casttest
  18. BIN
      src/openssl-1.0.1u/test/clienthellotest
  19. BIN
      src/openssl-1.0.1u/test/constant_time_test
  20. BIN
      src/openssl-1.0.1u/test/destest
  21. BIN
      src/openssl-1.0.1u/test/dhtest
  22. BIN
      src/openssl-1.0.1u/test/dsatest
  23. BIN
      src/openssl-1.0.1u/test/dummytest
  24. BIN
      src/openssl-1.0.1u/test/ecdhtest
  25. BIN
      src/openssl-1.0.1u/test/ecdsatest
  26. BIN
      src/openssl-1.0.1u/test/ectest
  27. BIN
      src/openssl-1.0.1u/test/enginetest
  28. BIN
      src/openssl-1.0.1u/test/evp_extra_test
  29. BIN
      src/openssl-1.0.1u/test/evp_test
  30. BIN
      src/openssl-1.0.1u/test/exptest
  31. BIN
      src/openssl-1.0.1u/test/heartbeat_test
  32. BIN
      src/openssl-1.0.1u/test/hmactest
  33. BIN
      src/openssl-1.0.1u/test/ideatest
  34. BIN
      src/openssl-1.0.1u/test/igetest
  35. BIN
      src/openssl-1.0.1u/test/jpaketest
  36. BIN
      src/openssl-1.0.1u/test/md2test
  37. BIN
      src/openssl-1.0.1u/test/md4test
  38. BIN
      src/openssl-1.0.1u/test/md5test
  39. BIN
      src/openssl-1.0.1u/test/mdc2test
  40. BIN
      src/openssl-1.0.1u/test/randtest
  41. BIN
      src/openssl-1.0.1u/test/rc2test
  42. BIN
      src/openssl-1.0.1u/test/rc4test
  43. BIN
      src/openssl-1.0.1u/test/rc5test
  44. BIN
      src/openssl-1.0.1u/test/rmdtest
  45. BIN
      src/openssl-1.0.1u/test/rsa_test
  46. BIN
      src/openssl-1.0.1u/test/sha1test
  47. BIN
      src/openssl-1.0.1u/test/sha256t
  48. BIN
      src/openssl-1.0.1u/test/sha512t
  49. BIN
      src/openssl-1.0.1u/test/shatest
  50. BIN
      src/openssl-1.0.1u/test/srptest
  51. BIN
      src/openssl-1.0.1u/test/ssltest
  52. BIN
      src/openssl-1.0.1u/test/verify_extra_test
  53. BIN
      src/openssl-1.0.1u/test/wp_test
  54. 0
    180
      src/openssl-1.0.1u/tools/c_rehash.bak

BIN
parallelcoind.srctrlbm View File


BIN
parallelcoind.srctrldb View File


+ 17
- 0
parallelcoind.srctrlprj View File

@@ -0,0 +1,17 @@
1
+<?xml version="1.0" encoding="utf-8" ?>
2
+<config>
3
+    <source_groups>
4
+        <source_group_fc7d9b24-9b10-4262-b521-014ebb0163f6>
5
+            <build_file_path>
6
+                <compilation_db_path>src/compile_commands.json</compilation_db_path>
7
+            </build_file_path>
8
+            <indexed_header_paths>
9
+                <indexed_header_path>./</indexed_header_path>
10
+            </indexed_header_paths>
11
+            <name>C/C++ from Compilation Database</name>
12
+            <status>enabled</status>
13
+            <type>C/C++ from Compilation Database</type>
14
+        </source_group_fc7d9b24-9b10-4262-b521-014ebb0163f6>
15
+    </source_groups>
16
+    <version>7</version>
17
+</config>

+ 6550
- 0
src/compile_commands.json
File diff suppressed because it is too large
View File


+ 2
- 2
src/makefile.unix View File

@@ -15,8 +15,8 @@ LINK:=$(CXX)
15 15
 
16 16
 DEFS=-DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64
17 17
 
18
-OPENSSL_INCLUDE_PATH=/usr/local/ssl/include
19
-OPENSSL_LIB_PATH=/usr/local/ssl/lib
18
+OPENSSL_INCLUDE_PATH=/usr/include/openssl-1.0
19
+OPENSSL_LIB_PATH=/usr/lib/openssl-1.0
20 20
 
21 21
 DEFS += $(addprefix -I,$(CURDIR) $(CURDIR)/obj $(BOOST_INCLUDE_PATH) $(BDB_INCLUDE_PATH) $(OPENSSL_INCLUDE_PATH))
22 22
 LIBS = -ldl $(addprefix -L,$(BOOST_LIB_PATH) $(BDB_LIB_PATH) $(OPENSSL_LIB_PATH))

+ 2
- 2
src/openssl-1.0.1u/Makefile.bak View File

@@ -26,10 +26,10 @@ HERE=.
26 26
 # for, say, /usr/ and yet have everything installed to /tmp/somedir/usr/.
27 27
 # Normally it is left empty.
28 28
 INSTALL_PREFIX=
29
-INSTALLTOP=/usr/local/ssl
29
+INSTALLTOP=/usr/local/openssl
30 30
 
31 31
 # Do not edit this manually. Use Configure --openssldir=DIR do change this!
32
-OPENSSLDIR=/usr/local/ssl
32
+OPENSSLDIR=/usr/local/openssl
33 33
 
34 34
 # NO_IDEA - Define to build without the IDEA algorithm
35 35
 # NO_RC4  - Define to build without the RC4 algorithm

+ 0
- 189
src/openssl-1.0.1u/apps/CA.pl.bak View File

@@ -1,189 +0,0 @@
1
-#!/usr/bin/perl
2
-#
3
-# CA - wrapper around ca to make it easier to use ... basically ca requires
4
-#      some setup stuff to be done before you can use it and this makes
5
-#      things easier between now and when Eric is convinced to fix it :-)
6
-#
7
-# CA -newca ... will setup the right stuff
8
-# CA -newreq[-nodes] ... will generate a certificate request 
9
-# CA -sign ... will sign the generated request and output 
10
-#
11
-# At the end of that grab newreq.pem and newcert.pem (one has the key 
12
-# and the other the certificate) and cat them together and that is what
13
-# you want/need ... I'll make even this a little cleaner later.
14
-#
15
-#
16
-# 12-Jan-96 tjh    Added more things ... including CA -signcert which
17
-#                  converts a certificate to a request and then signs it.
18
-# 10-Jan-96 eay    Fixed a few more bugs and added the SSLEAY_CONFIG
19
-#		   environment variable so this can be driven from
20
-#		   a script.
21
-# 25-Jul-96 eay    Cleaned up filenames some more.
22
-# 11-Jun-96 eay    Fixed a few filename missmatches.
23
-# 03-May-96 eay    Modified to use 'ssleay cmd' instead of 'cmd'.
24
-# 18-Apr-96 tjh    Original hacking
25
-#
26
-# Tim Hudson
27
-# tjh@cryptsoft.com
28
-#
29
-
30
-# 27-Apr-98 snh    Translation into perl, fix existing CA bug.
31
-#
32
-#
33
-# Steve Henson
34
-# shenson@bigfoot.com
35
-
36
-# default openssl.cnf file has setup as per the following
37
-# demoCA ... where everything is stored
38
-
39
-my $openssl;
40
-if(defined $ENV{OPENSSL}) {
41
-	$openssl = $ENV{OPENSSL};
42
-} else {
43
-	$openssl = "openssl";
44
-	$ENV{OPENSSL} = $openssl;
45
-}
46
-
47
-$SSLEAY_CONFIG=$ENV{"SSLEAY_CONFIG"};
48
-$DAYS="-days 365";	# 1 year
49
-$CADAYS="-days 1095";	# 3 years
50
-$REQ="$openssl req $SSLEAY_CONFIG";
51
-$CA="$openssl ca $SSLEAY_CONFIG";
52
-$VERIFY="$openssl verify";
53
-$X509="$openssl x509";
54
-$PKCS12="$openssl pkcs12";
55
-
56
-$CATOP="./demoCA";
57
-$CAKEY="cakey.pem";
58
-$CAREQ="careq.pem";
59
-$CACERT="cacert.pem";
60
-
61
-$DIRMODE = 0777;
62
-
63
-$RET = 0;
64
-
65
-foreach (@ARGV) {
66
-	if ( /^(-\?|-h|-help)$/ ) {
67
-	    print STDERR "usage: CA -newcert|-newreq|-newreq-nodes|-newca|-sign|-verify\n";
68
-	    exit 0;
69
-	} elsif (/^-newcert$/) {
70
-	    # create a certificate
71
-	    system ("$REQ -new -x509 -keyout newkey.pem -out newcert.pem $DAYS");
72
-	    $RET=$?;
73
-	    print "Certificate is in newcert.pem, private key is in newkey.pem\n"
74
-	} elsif (/^-newreq$/) {
75
-	    # create a certificate request
76
-	    system ("$REQ -new -keyout newkey.pem -out newreq.pem $DAYS");
77
-	    $RET=$?;
78
-	    print "Request is in newreq.pem, private key is in newkey.pem\n";
79
-	} elsif (/^-newreq-nodes$/) {
80
-	    # create a certificate request
81
-	    system ("$REQ -new -nodes -keyout newkey.pem -out newreq.pem $DAYS");
82
-	    $RET=$?;
83
-	    print "Request is in newreq.pem, private key is in newkey.pem\n";
84
-	} elsif (/^-newca$/) {
85
-		# if explicitly asked for or it doesn't exist then setup the
86
-		# directory structure that Eric likes to manage things 
87
-	    $NEW="1";
88
-	    if ( "$NEW" || ! -f "${CATOP}/serial" ) {
89
-		# create the directory hierarchy
90
-		mkdir $CATOP, $DIRMODE;
91
-		mkdir "${CATOP}/certs", $DIRMODE;
92
-		mkdir "${CATOP}/crl", $DIRMODE ;
93
-		mkdir "${CATOP}/newcerts", $DIRMODE;
94
-		mkdir "${CATOP}/private", $DIRMODE;
95
-		open OUT, ">${CATOP}/index.txt";
96
-		close OUT;
97
-		open OUT, ">${CATOP}/crlnumber";
98
-		print OUT "01\n";
99
-		close OUT;
100
-	    }
101
-	    if ( ! -f "${CATOP}/private/$CAKEY" ) {
102
-		print "CA certificate filename (or enter to create)\n";
103
-		$FILE = <STDIN>;
104
-
105
-		chop $FILE;
106
-
107
-		# ask user for existing CA certificate
108
-		if ($FILE) {
109
-		    cp_pem($FILE,"${CATOP}/private/$CAKEY", "PRIVATE");
110
-		    cp_pem($FILE,"${CATOP}/$CACERT", "CERTIFICATE");
111
-		    $RET=$?;
112
-		} else {
113
-		    print "Making CA certificate ...\n";
114
-		    system ("$REQ -new -keyout " .
115
-			"${CATOP}/private/$CAKEY -out ${CATOP}/$CAREQ");
116
-		    system ("$CA -create_serial " .
117
-			"-out ${CATOP}/$CACERT $CADAYS -batch " . 
118
-			"-keyfile ${CATOP}/private/$CAKEY -selfsign " .
119
-			"-extensions v3_ca " .
120
-			"-infiles ${CATOP}/$CAREQ ");
121
-		    $RET=$?;
122
-		}
123
-	    }
124
-	} elsif (/^-pkcs12$/) {
125
-	    my $cname = $ARGV[1];
126
-	    $cname = "My Certificate" unless defined $cname;
127
-	    system ("$PKCS12 -in newcert.pem -inkey newkey.pem " .
128
-			"-certfile ${CATOP}/$CACERT -out newcert.p12 " .
129
-			"-export -name \"$cname\"");
130
-	    $RET=$?;
131
-	    print "PKCS #12 file is in newcert.p12\n";
132
-	    exit $RET;
133
-	} elsif (/^-xsign$/) {
134
-	    system ("$CA -policy policy_anything -infiles newreq.pem");
135
-	    $RET=$?;
136
-	} elsif (/^(-sign|-signreq)$/) {
137
-	    system ("$CA -policy policy_anything -out newcert.pem " .
138
-							"-infiles newreq.pem");
139
-	    $RET=$?;
140
-	    print "Signed certificate is in newcert.pem\n";
141
-	} elsif (/^(-signCA)$/) {
142
-	    system ("$CA -policy policy_anything -out newcert.pem " .
143
-					"-extensions v3_ca -infiles newreq.pem");
144
-	    $RET=$?;
145
-	    print "Signed CA certificate is in newcert.pem\n";
146
-	} elsif (/^-signcert$/) {
147
-	    system ("$X509 -x509toreq -in newreq.pem -signkey newreq.pem " .
148
-								"-out tmp.pem");
149
-	    system ("$CA -policy policy_anything -out newcert.pem " .
150
-							"-infiles tmp.pem");
151
-	    $RET = $?;
152
-	    print "Signed certificate is in newcert.pem\n";
153
-	} elsif (/^-verify$/) {
154
-	    if (shift) {
155
-		foreach $j (@ARGV) {
156
-		    system ("$VERIFY -CAfile $CATOP/$CACERT $j");
157
-		    $RET=$? if ($? != 0);
158
-		}
159
-		exit $RET;
160
-	    } else {
161
-		    system ("$VERIFY -CAfile $CATOP/$CACERT newcert.pem");
162
-		    $RET=$?;
163
-	    	    exit 0;
164
-	    }
165
-	} else {
166
-	    print STDERR "Unknown arg $_\n";
167
-	    print STDERR "usage: CA -newcert|-newreq|-newreq-nodes|-newca|-sign|-verify\n";
168
-	    exit 1;
169
-	}
170
-}
171
-
172
-exit $RET;
173
-
174
-sub cp_pem {
175
-my ($infile, $outfile, $bound) = @_;
176
-open IN, $infile;
177
-open OUT, ">$outfile";
178
-my $flag = 0;
179
-while (<IN>) {
180
-	$flag = 1 if (/^-----BEGIN.*$bound/) ;
181
-	print OUT $_ if ($flag);
182
-	if (/^-----END.*$bound/) {
183
-		close IN;
184
-		close OUT;
185
-		return;
186
-	}
187
-}
188
-}
189
-

BIN
src/openssl-1.0.1u/apps/openssl View File


+ 29005
- 0
src/openssl-1.0.1u/compile_commands.json
File diff suppressed because it is too large
View File


+ 1
- 1
src/openssl-1.0.1u/crypto/buildinf.h View File

@@ -28,5 +28,5 @@
28 28
         'D','G','H','A','S','H','_','A','S','M','\0'
29 29
     };
30 30
     #define PLATFORM "platform: linux-x86_64"
31
-    #define DATE "built on: Fri Jun 15 15:45:56 2018"
31
+    #define DATE "built on: Tue Sep 11 19:42:01 2018"
32 32
 #endif

+ 0
- 258
src/openssl-1.0.1u/crypto/opensslconf.h.bak View File

@@ -1,258 +0,0 @@
1
-/* opensslconf.h */
2
-/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
-
4
-#ifdef  __cplusplus
5
-extern "C" {
6
-#endif
7
-/* OpenSSL was configured with the following options: */
8
-#ifndef OPENSSL_DOING_MAKEDEPEND
9
-
10
-
11
-#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
12
-# define OPENSSL_NO_EC_NISTP_64_GCC_128
13
-#endif
14
-#ifndef OPENSSL_NO_GMP
15
-# define OPENSSL_NO_GMP
16
-#endif
17
-#ifndef OPENSSL_NO_JPAKE
18
-# define OPENSSL_NO_JPAKE
19
-#endif
20
-#ifndef OPENSSL_NO_KRB5
21
-# define OPENSSL_NO_KRB5
22
-#endif
23
-#ifndef OPENSSL_NO_MD2
24
-# define OPENSSL_NO_MD2
25
-#endif
26
-#ifndef OPENSSL_NO_RC5
27
-# define OPENSSL_NO_RC5
28
-#endif
29
-#ifndef OPENSSL_NO_RFC3779
30
-# define OPENSSL_NO_RFC3779
31
-#endif
32
-#ifndef OPENSSL_NO_SCTP
33
-# define OPENSSL_NO_SCTP
34
-#endif
35
-#ifndef OPENSSL_NO_SSL2
36
-# define OPENSSL_NO_SSL2
37
-#endif
38
-#ifndef OPENSSL_NO_STORE
39
-# define OPENSSL_NO_STORE
40
-#endif
41
-#ifndef OPENSSL_NO_UNIT_TEST
42
-# define OPENSSL_NO_UNIT_TEST
43
-#endif
44
-#ifndef OPENSSL_NO_WEAK_SSL_CIPHERS
45
-# define OPENSSL_NO_WEAK_SSL_CIPHERS
46
-#endif
47
-
48
-#endif /* OPENSSL_DOING_MAKEDEPEND */
49
-
50
-#ifndef OPENSSL_THREADS
51
-# define OPENSSL_THREADS
52
-#endif
53
-#ifndef OPENSSL_NO_DYNAMIC_ENGINE
54
-# define OPENSSL_NO_DYNAMIC_ENGINE
55
-#endif
56
-
57
-/* The OPENSSL_NO_* macros are also defined as NO_* if the application
58
-   asks for it.  This is a transient feature that is provided for those
59
-   who haven't had the time to do the appropriate changes in their
60
-   applications.  */
61
-#ifdef OPENSSL_ALGORITHM_DEFINES
62
-# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
63
-#  define NO_EC_NISTP_64_GCC_128
64
-# endif
65
-# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
66
-#  define NO_GMP
67
-# endif
68
-# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
69
-#  define NO_JPAKE
70
-# endif
71
-# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
72
-#  define NO_KRB5
73
-# endif
74
-# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
75
-#  define NO_MD2
76
-# endif
77
-# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
78
-#  define NO_RC5
79
-# endif
80
-# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
81
-#  define NO_RFC3779
82
-# endif
83
-# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
84
-#  define NO_SCTP
85
-# endif
86
-# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
87
-#  define NO_SSL2
88
-# endif
89
-# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
90
-#  define NO_STORE
91
-# endif
92
-# if defined(OPENSSL_NO_UNIT_TEST) && !defined(NO_UNIT_TEST)
93
-#  define NO_UNIT_TEST
94
-# endif
95
-# if defined(OPENSSL_NO_WEAK_SSL_CIPHERS) && !defined(NO_WEAK_SSL_CIPHERS)
96
-#  define NO_WEAK_SSL_CIPHERS
97
-# endif
98
-#endif
99
-
100
-#define OPENSSL_CPUID_OBJ
101
-
102
-/* crypto/opensslconf.h.in */
103
-
104
-/* Generate 80386 code? */
105
-#undef I386_ONLY
106
-
107
-#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
108
-#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
109
-#define ENGINESDIR "/usr/local/ssl/lib/engines"
110
-#define OPENSSLDIR "/usr/local/ssl"
111
-#endif
112
-#endif
113
-
114
-#undef OPENSSL_UNISTD
115
-#define OPENSSL_UNISTD <unistd.h>
116
-
117
-#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
118
-
119
-#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
120
-#define IDEA_INT unsigned int
121
-#endif
122
-
123
-#if defined(HEADER_MD2_H) && !defined(MD2_INT)
124
-#define MD2_INT unsigned int
125
-#endif
126
-
127
-#if defined(HEADER_RC2_H) && !defined(RC2_INT)
128
-/* I need to put in a mod for the alpha - eay */
129
-#define RC2_INT unsigned int
130
-#endif
131
-
132
-#if defined(HEADER_RC4_H)
133
-#if !defined(RC4_INT)
134
-/* using int types make the structure larger but make the code faster
135
- * on most boxes I have tested - up to %20 faster. */
136
-/*
137
- * I don't know what does "most" mean, but declaring "int" is a must on:
138
- * - Intel P6 because partial register stalls are very expensive;
139
- * - elder Alpha because it lacks byte load/store instructions;
140
- */
141
-#define RC4_INT unsigned int
142
-#endif
143
-#if !defined(RC4_CHUNK)
144
-/*
145
- * This enables code handling data aligned at natural CPU word
146
- * boundary. See crypto/rc4/rc4_enc.c for further details.
147
- */
148
-#define RC4_CHUNK unsigned long
149
-#endif
150
-#endif
151
-
152
-#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
153
-/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
154
- * %20 speed up (longs are 8 bytes, int's are 4). */
155
-#ifndef DES_LONG
156
-#define DES_LONG unsigned int
157
-#endif
158
-#endif
159
-
160
-#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
161
-#define CONFIG_HEADER_BN_H
162
-#undef BN_LLONG
163
-
164
-/* Should we define BN_DIV2W here? */
165
-
166
-/* Only one for the following should be defined */
167
-#define SIXTY_FOUR_BIT_LONG
168
-#undef SIXTY_FOUR_BIT
169
-#undef THIRTY_TWO_BIT
170
-#endif
171
-
172
-#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
173
-#define CONFIG_HEADER_RC4_LOCL_H
174
-/* if this is defined data[i] is used instead of *data, this is a %20
175
- * speedup on x86 */
176
-#undef RC4_INDEX
177
-#endif
178
-
179
-#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
180
-#define CONFIG_HEADER_BF_LOCL_H
181
-#undef BF_PTR
182
-#endif /* HEADER_BF_LOCL_H */
183
-
184
-#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
185
-#define CONFIG_HEADER_DES_LOCL_H
186
-#ifndef DES_DEFAULT_OPTIONS
187
-/* the following is tweaked from a config script, that is why it is a
188
- * protected undef/define */
189
-#ifndef DES_PTR
190
-#undef DES_PTR
191
-#endif
192
-
193
-/* This helps C compiler generate the correct code for multiple functional
194
- * units.  It reduces register dependancies at the expense of 2 more
195
- * registers */
196
-#ifndef DES_RISC1
197
-#undef DES_RISC1
198
-#endif
199
-
200
-#ifndef DES_RISC2
201
-#undef DES_RISC2
202
-#endif
203
-
204
-#if defined(DES_RISC1) && defined(DES_RISC2)
205
-#error YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
206
-#endif
207
-
208
-/* Unroll the inner loop, this sometimes helps, sometimes hinders.
209
- * Very mucy CPU dependant */
210
-#ifndef DES_UNROLL
211
-#define DES_UNROLL
212
-#endif
213
-
214
-/* These default values were supplied by
215
- * Peter Gutman <pgut001@cs.auckland.ac.nz>
216
- * They are only used if nothing else has been defined */
217
-#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
218
-/* Special defines which change the way the code is built depending on the
219
-   CPU and OS.  For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
220
-   even newer MIPS CPU's, but at the moment one size fits all for
221
-   optimization options.  Older Sparc's work better with only UNROLL, but
222
-   there's no way to tell at compile time what it is you're running on */
223
- 
224
-#if defined( __sun ) || defined ( sun )		/* Newer Sparc's */
225
-#  define DES_PTR
226
-#  define DES_RISC1
227
-#  define DES_UNROLL
228
-#elif defined( __ultrix )	/* Older MIPS */
229
-#  define DES_PTR
230
-#  define DES_RISC2
231
-#  define DES_UNROLL
232
-#elif defined( __osf1__ )	/* Alpha */
233
-#  define DES_PTR
234
-#  define DES_RISC2
235
-#elif defined ( _AIX )		/* RS6000 */
236
-  /* Unknown */
237
-#elif defined( __hpux )		/* HP-PA */
238
-  /* Unknown */
239
-#elif defined( __aux )		/* 68K */
240
-  /* Unknown */
241
-#elif defined( __dgux )		/* 88K (but P6 in latest boxes) */
242
-#  define DES_UNROLL
243
-#elif defined( __sgi )		/* Newer MIPS */
244
-#  define DES_PTR
245
-#  define DES_RISC2
246
-#  define DES_UNROLL
247
-#elif defined(i386) || defined(__i386__)	/* x86 boxes, should be gcc */
248
-#  define DES_PTR
249
-#  define DES_RISC1
250
-#  define DES_UNROLL
251
-#endif /* Systems-specific speed defines */
252
-#endif
253
-
254
-#endif /* DES_DEFAULT_OPTIONS */
255
-#endif /* HEADER_DES_LOCL_H */
256
-#ifdef  __cplusplus
257
-}
258
-#endif

BIN
src/openssl-1.0.1u/libcrypto.a View File


BIN
src/openssl-1.0.1u/libssl.a View File


BIN
src/openssl-1.0.1u/test/asn1test View File


BIN
src/openssl-1.0.1u/test/bftest View File


BIN
src/openssl-1.0.1u/test/bntest View File


BIN
src/openssl-1.0.1u/test/casttest View File


BIN
src/openssl-1.0.1u/test/clienthellotest View File


BIN
src/openssl-1.0.1u/test/constant_time_test View File


BIN
src/openssl-1.0.1u/test/destest View File


BIN
src/openssl-1.0.1u/test/dhtest View File


BIN
src/openssl-1.0.1u/test/dsatest View File


BIN
src/openssl-1.0.1u/test/dummytest View File


BIN
src/openssl-1.0.1u/test/ecdhtest View File


BIN
src/openssl-1.0.1u/test/ecdsatest View File


BIN
src/openssl-1.0.1u/test/ectest View File


BIN
src/openssl-1.0.1u/test/enginetest View File


BIN
src/openssl-1.0.1u/test/evp_extra_test View File


BIN
src/openssl-1.0.1u/test/evp_test View File


BIN
src/openssl-1.0.1u/test/exptest View File


BIN
src/openssl-1.0.1u/test/heartbeat_test View File


BIN
src/openssl-1.0.1u/test/hmactest View File


BIN
src/openssl-1.0.1u/test/ideatest View File


BIN
src/openssl-1.0.1u/test/igetest View File


BIN
src/openssl-1.0.1u/test/jpaketest View File


BIN
src/openssl-1.0.1u/test/md2test View File


BIN
src/openssl-1.0.1u/test/md4test View File


BIN
src/openssl-1.0.1u/test/md5test View File


BIN
src/openssl-1.0.1u/test/mdc2test View File


BIN
src/openssl-1.0.1u/test/randtest View File


BIN
src/openssl-1.0.1u/test/rc2test View File


BIN
src/openssl-1.0.1u/test/rc4test View File


BIN
src/openssl-1.0.1u/test/rc5test View File


BIN
src/openssl-1.0.1u/test/rmdtest View File


BIN
src/openssl-1.0.1u/test/rsa_test View File


BIN
src/openssl-1.0.1u/test/sha1test View File


BIN
src/openssl-1.0.1u/test/sha256t View File


BIN
src/openssl-1.0.1u/test/sha512t View File


BIN
src/openssl-1.0.1u/test/shatest View File


BIN
src/openssl-1.0.1u/test/srptest View File


BIN
src/openssl-1.0.1u/test/ssltest View File


BIN
src/openssl-1.0.1u/test/verify_extra_test View File


BIN
src/openssl-1.0.1u/test/wp_test View File


+ 0
- 180
src/openssl-1.0.1u/tools/c_rehash.bak View File

@@ -1,180 +0,0 @@
1
-#!/usr/bin/perl
2
-
3
-
4
-# Perl c_rehash script, scan all files in a directory
5
-# and add symbolic links to their hash values.
6
-
7
-my $openssl;
8
-
9
-my $dir = "/usr/local/ssl";
10
-my $prefix = "/usr/local/ssl";
11
-
12
-if(defined $ENV{OPENSSL}) {
13
-	$openssl = $ENV{OPENSSL};
14
-} else {
15
-	$openssl = "openssl";
16
-	$ENV{OPENSSL} = $openssl;
17
-}
18
-
19
-my $pwd;
20
-eval "require Cwd";
21
-if (defined(&Cwd::getcwd)) {
22
-	$pwd=Cwd::getcwd();
23
-} else {
24
-	$pwd=`pwd`; chomp($pwd);
25
-}
26
-my $path_delim = ($pwd =~ /^[a-z]\:/i) ? ';' : ':'; # DOS/Win32 or Unix delimiter?
27
-
28
-$ENV{PATH} = "$prefix/bin" . ($ENV{PATH} ? $path_delim . $ENV{PATH} : ""); # prefix our path
29
-
30
-if(! -x $openssl) {
31
-	my $found = 0;
32
-	foreach (split /$path_delim/, $ENV{PATH}) {
33
-		if(-x "$_/$openssl") {
34
-			$found = 1;
35
-			$openssl = "$_/$openssl";
36
-			last;
37
-		}	
38
-	}
39
-	if($found == 0) {
40
-		print STDERR "c_rehash: rehashing skipped ('openssl' program not available)\n";
41
-		exit 0;
42
-	}
43
-}
44
-
45
-if(@ARGV) {
46
-	@dirlist = @ARGV;
47
-} elsif($ENV{SSL_CERT_DIR}) {
48
-	@dirlist = split /$path_delim/, $ENV{SSL_CERT_DIR};
49
-} else {
50
-	$dirlist[0] = "$dir/certs";
51
-}
52
-
53
-if (-d $dirlist[0]) {
54
-	chdir $dirlist[0];
55
-	$openssl="$pwd/$openssl" if (!-x $openssl);
56
-	chdir $pwd;
57
-}
58
-
59
-foreach (@dirlist) {
60
-	if(-d $_ and -w $_) {
61
-		hash_dir($_);
62
-	}
63
-}
64
-
65
-sub hash_dir {
66
-	my %hashlist;
67
-	print "Doing $_[0]\n";
68
-	chdir $_[0];
69
-	opendir(DIR, ".");
70
-	my @flist = readdir(DIR);
71
-	# Delete any existing symbolic links
72
-	foreach (grep {/^[\da-f]+\.r{0,1}\d+$/} @flist) {
73
-		if(-l $_) {
74
-			unlink $_;
75
-		}
76
-	}
77
-	closedir DIR;
78
-	FILE: foreach $fname (grep {/\.pem$/} @flist) {
79
-		# Check to see if certificates and/or CRLs present.
80
-		my ($cert, $crl) = check_file($fname);
81
-		if(!$cert && !$crl) {
82
-			print STDERR "WARNING: $fname does not contain a certificate or CRL: skipping\n";
83
-			next;
84
-		}
85
-		link_hash_cert($fname) if($cert);
86
-		link_hash_crl($fname) if($crl);
87
-	}
88
-}
89
-
90
-sub check_file {
91
-	my ($is_cert, $is_crl) = (0,0);
92
-	my $fname = $_[0];
93
-	open IN, $fname;
94
-	while(<IN>) {
95
-		if(/^-----BEGIN (.*)-----/) {
96
-			my $hdr = $1;
97
-			if($hdr =~ /^(X509 |TRUSTED |)CERTIFICATE$/) {
98
-				$is_cert = 1;
99
-				last if($is_crl);
100
-			} elsif($hdr eq "X509 CRL") {
101
-				$is_crl = 1;
102
-				last if($is_cert);
103
-			}
104
-		}
105
-	}
106
-	close IN;
107
-	return ($is_cert, $is_crl);
108
-}
109
-
110
-
111
-# Link a certificate to its subject name hash value, each hash is of
112
-# the form <hash>.<n> where n is an integer. If the hash value already exists
113
-# then we need to up the value of n, unless its a duplicate in which
114
-# case we skip the link. We check for duplicates by comparing the
115
-# certificate fingerprints
116
-
117
-sub link_hash_cert {
118
-		my $fname = $_[0];
119
-		$fname =~ s/'/'\\''/g;
120
-		my ($hash, $fprint) = `"$openssl" x509 -hash -fingerprint -noout -in "$fname"`;
121
-		chomp $hash;
122
-		chomp $fprint;
123
-		$fprint =~ s/^.*=//;
124
-		$fprint =~ tr/://d;
125
-		my $suffix = 0;
126
-		# Search for an unused hash filename
127
-		while(exists $hashlist{"$hash.$suffix"}) {
128
-			# Hash matches: if fingerprint matches its a duplicate cert
129
-			if($hashlist{"$hash.$suffix"} eq $fprint) {
130
-				print STDERR "WARNING: Skipping duplicate certificate $fname\n";
131
-				return;
132
-			}
133
-			$suffix++;
134
-		}
135
-		$hash .= ".$suffix";
136
-		print "$fname => $hash\n";
137
-		$symlink_exists=eval {symlink("",""); 1};
138
-		if ($symlink_exists) {
139
-			symlink $fname, $hash;
140
-		} else {
141
-			open IN,"<$fname" or die "can't open $fname for read";
142
-			open OUT,">$hash" or die "can't open $hash for write";
143
-			print OUT <IN>;	# does the job for small text files
144
-			close OUT;
145
-			close IN;
146
-		}
147
-		$hashlist{$hash} = $fprint;
148
-}
149
-
150
-# Same as above except for a CRL. CRL links are of the form <hash>.r<n>
151
-
152
-sub link_hash_crl {
153
-		my $fname = $_[0];
154
-		$fname =~ s/'/'\\''/g;
155
-		my ($hash, $fprint) = `"$openssl" crl -hash -fingerprint -noout -in '$fname'`;
156
-		chomp $hash;
157
-		chomp $fprint;
158
-		$fprint =~ s/^.*=//;
159
-		$fprint =~ tr/://d;
160
-		my $suffix = 0;
161
-		# Search for an unused hash filename
162
-		while(exists $hashlist{"$hash.r$suffix"}) {
163
-			# Hash matches: if fingerprint matches its a duplicate cert
164
-			if($hashlist{"$hash.r$suffix"} eq $fprint) {
165
-				print STDERR "WARNING: Skipping duplicate CRL $fname\n";
166
-				return;
167
-			}
168
-			$suffix++;
169
-		}
170
-		$hash .= ".r$suffix";
171
-		print "$fname => $hash\n";
172
-		$symlink_exists=eval {symlink("",""); 1};
173
-		if ($symlink_exists) {
174
-			symlink $fname, $hash;
175
-		} else {
176
-			system ("cp", $fname, $hash);
177
-		}
178
-		$hashlist{$hash} = $fprint;
179
-}
180
-

Loading…
Cancel
Save