diff options
author | markus <> | 2002-09-04 19:08:53 +0000 |
---|---|---|
committer | markus <> | 2002-09-04 19:08:53 +0000 |
commit | ede5a980740e6043e67dee75572f89652dd76701 (patch) | |
tree | 62d8e5c8530750ec951fc440b240ed44370ea494 | |
parent | 007f4fe9c96767f52d3a2b8782cd2fb7c6031909 (diff) | |
download | openbsd-ede5a980740e6043e67dee75572f89652dd76701.tar.gz openbsd-ede5a980740e6043e67dee75572f89652dd76701.tar.bz2 openbsd-ede5a980740e6043e67dee75572f89652dd76701.zip |
more cruft.
-rw-r--r-- | src/lib/libssl/src/apps/md5.c | 127 | ||||
-rw-r--r-- | src/lib/libssl/src/apps/rmd160.c | 127 | ||||
-rw-r--r-- | src/lib/libssl/src/certs/rsa-ssca.pem | 0 | ||||
-rw-r--r-- | src/lib/libssl/src/ms/cipher.out | 93 | ||||
-rw-r--r-- | src/lib/libssl/src/ms/clear.out | 93 | ||||
-rw-r--r-- | src/lib/libssl/src/test/demoCA/private/cakey.pem | 2 | ||||
-rw-r--r-- | src/lib/libssl/src/test/demoCA/serial | 1 | ||||
-rw-r--r-- | src/lib/libssl/test/demoCA/private/cakey.pem | 2 | ||||
-rw-r--r-- | src/lib/libssl/test/demoCA/serial | 1 |
9 files changed, 0 insertions, 446 deletions
diff --git a/src/lib/libssl/src/apps/md5.c b/src/lib/libssl/src/apps/md5.c deleted file mode 100644 index 7ed0024ae1..0000000000 --- a/src/lib/libssl/src/apps/md5.c +++ /dev/null | |||
@@ -1,127 +0,0 @@ | |||
1 | /* crypto/md5/md5.c */ | ||
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * This package is an SSL implementation written | ||
6 | * by Eric Young (eay@cryptsoft.com). | ||
7 | * The implementation was written so as to conform with Netscapes SSL. | ||
8 | * | ||
9 | * This library is free for commercial and non-commercial use as long as | ||
10 | * the following conditions are aheared to. The following conditions | ||
11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
13 | * included with this distribution is covered by the same copyright terms | ||
14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
15 | * | ||
16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
17 | * the code are not to be removed. | ||
18 | * If this package is used in a product, Eric Young should be given attribution | ||
19 | * as the author of the parts of the library used. | ||
20 | * This can be in the form of a textual message at program startup or | ||
21 | * in documentation (online or textual) provided with the package. | ||
22 | * | ||
23 | * Redistribution and use in source and binary forms, with or without | ||
24 | * modification, are permitted provided that the following conditions | ||
25 | * are met: | ||
26 | * 1. Redistributions of source code must retain the copyright | ||
27 | * notice, this list of conditions and the following disclaimer. | ||
28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
29 | * notice, this list of conditions and the following disclaimer in the | ||
30 | * documentation and/or other materials provided with the distribution. | ||
31 | * 3. All advertising materials mentioning features or use of this software | ||
32 | * must display the following acknowledgement: | ||
33 | * "This product includes cryptographic software written by | ||
34 | * Eric Young (eay@cryptsoft.com)" | ||
35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
36 | * being used are not cryptographic related :-). | ||
37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
38 | * the apps directory (application code) you must include an acknowledgement: | ||
39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
40 | * | ||
41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
51 | * SUCH DAMAGE. | ||
52 | * | ||
53 | * The licence and distribution terms for any publically available version or | ||
54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
55 | * copied and put under another distribution licence | ||
56 | * [including the GNU Public Licence.] | ||
57 | */ | ||
58 | |||
59 | #include <stdio.h> | ||
60 | #include <stdlib.h> | ||
61 | #include <openssl/md5.h> | ||
62 | |||
63 | #define BUFSIZE 1024*16 | ||
64 | |||
65 | void do_fp(FILE *f); | ||
66 | void pt(unsigned char *md); | ||
67 | #ifndef _OSD_POSIX | ||
68 | int read(int, void *, unsigned int); | ||
69 | #endif | ||
70 | |||
71 | int main(int argc, char **argv) | ||
72 | { | ||
73 | int i,err=0; | ||
74 | FILE *IN; | ||
75 | |||
76 | if (argc == 1) | ||
77 | { | ||
78 | do_fp(stdin); | ||
79 | } | ||
80 | else | ||
81 | { | ||
82 | for (i=1; i<argc; i++) | ||
83 | { | ||
84 | IN=fopen(argv[i],"r"); | ||
85 | if (IN == NULL) | ||
86 | { | ||
87 | perror(argv[i]); | ||
88 | err++; | ||
89 | continue; | ||
90 | } | ||
91 | printf("MD5(%s)= ",argv[i]); | ||
92 | do_fp(IN); | ||
93 | fclose(IN); | ||
94 | } | ||
95 | } | ||
96 | exit(err); | ||
97 | } | ||
98 | |||
99 | void do_fp(FILE *f) | ||
100 | { | ||
101 | MD5_CTX c; | ||
102 | unsigned char md[MD5_DIGEST_LENGTH]; | ||
103 | int fd; | ||
104 | int i; | ||
105 | static unsigned char buf[BUFSIZE]; | ||
106 | |||
107 | fd=fileno(f); | ||
108 | MD5_Init(&c); | ||
109 | for (;;) | ||
110 | { | ||
111 | i=read(fd,buf,BUFSIZE); | ||
112 | if (i <= 0) break; | ||
113 | MD5_Update(&c,buf,(unsigned long)i); | ||
114 | } | ||
115 | MD5_Final(&(md[0]),&c); | ||
116 | pt(md); | ||
117 | } | ||
118 | |||
119 | void pt(unsigned char *md) | ||
120 | { | ||
121 | int i; | ||
122 | |||
123 | for (i=0; i<MD5_DIGEST_LENGTH; i++) | ||
124 | printf("%02x",md[i]); | ||
125 | printf("\n"); | ||
126 | } | ||
127 | |||
diff --git a/src/lib/libssl/src/apps/rmd160.c b/src/lib/libssl/src/apps/rmd160.c deleted file mode 100644 index 4f8b88a18a..0000000000 --- a/src/lib/libssl/src/apps/rmd160.c +++ /dev/null | |||
@@ -1,127 +0,0 @@ | |||
1 | /* crypto/ripemd/rmd160.c */ | ||
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * This package is an SSL implementation written | ||
6 | * by Eric Young (eay@cryptsoft.com). | ||
7 | * The implementation was written so as to conform with Netscapes SSL. | ||
8 | * | ||
9 | * This library is free for commercial and non-commercial use as long as | ||
10 | * the following conditions are aheared to. The following conditions | ||
11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
13 | * included with this distribution is covered by the same copyright terms | ||
14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
15 | * | ||
16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
17 | * the code are not to be removed. | ||
18 | * If this package is used in a product, Eric Young should be given attribution | ||
19 | * as the author of the parts of the library used. | ||
20 | * This can be in the form of a textual message at program startup or | ||
21 | * in documentation (online or textual) provided with the package. | ||
22 | * | ||
23 | * Redistribution and use in source and binary forms, with or without | ||
24 | * modification, are permitted provided that the following conditions | ||
25 | * are met: | ||
26 | * 1. Redistributions of source code must retain the copyright | ||
27 | * notice, this list of conditions and the following disclaimer. | ||
28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
29 | * notice, this list of conditions and the following disclaimer in the | ||
30 | * documentation and/or other materials provided with the distribution. | ||
31 | * 3. All advertising materials mentioning features or use of this software | ||
32 | * must display the following acknowledgement: | ||
33 | * "This product includes cryptographic software written by | ||
34 | * Eric Young (eay@cryptsoft.com)" | ||
35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
36 | * being used are not cryptographic related :-). | ||
37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
38 | * the apps directory (application code) you must include an acknowledgement: | ||
39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
40 | * | ||
41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
51 | * SUCH DAMAGE. | ||
52 | * | ||
53 | * The licence and distribution terms for any publically available version or | ||
54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
55 | * copied and put under another distribution licence | ||
56 | * [including the GNU Public Licence.] | ||
57 | */ | ||
58 | |||
59 | #include <stdio.h> | ||
60 | #include <stdlib.h> | ||
61 | #include <openssl/ripemd.h> | ||
62 | |||
63 | #define BUFSIZE 1024*16 | ||
64 | |||
65 | void do_fp(FILE *f); | ||
66 | void pt(unsigned char *md); | ||
67 | #ifndef _OSD_POSIX | ||
68 | int read(int, void *, unsigned int); | ||
69 | #endif | ||
70 | |||
71 | int main(int argc, char **argv) | ||
72 | { | ||
73 | int i,err=0; | ||
74 | FILE *IN; | ||
75 | |||
76 | if (argc == 1) | ||
77 | { | ||
78 | do_fp(stdin); | ||
79 | } | ||
80 | else | ||
81 | { | ||
82 | for (i=1; i<argc; i++) | ||
83 | { | ||
84 | IN=fopen(argv[i],"r"); | ||
85 | if (IN == NULL) | ||
86 | { | ||
87 | perror(argv[i]); | ||
88 | err++; | ||
89 | continue; | ||
90 | } | ||
91 | printf("RIPEMD160(%s)= ",argv[i]); | ||
92 | do_fp(IN); | ||
93 | fclose(IN); | ||
94 | } | ||
95 | } | ||
96 | exit(err); | ||
97 | } | ||
98 | |||
99 | void do_fp(FILE *f) | ||
100 | { | ||
101 | RIPEMD160_CTX c; | ||
102 | unsigned char md[RIPEMD160_DIGEST_LENGTH]; | ||
103 | int fd; | ||
104 | int i; | ||
105 | static unsigned char buf[BUFSIZE]; | ||
106 | |||
107 | fd=fileno(f); | ||
108 | RIPEMD160_Init(&c); | ||
109 | for (;;) | ||
110 | { | ||
111 | i=read(fd,buf,BUFSIZE); | ||
112 | if (i <= 0) break; | ||
113 | RIPEMD160_Update(&c,buf,(unsigned long)i); | ||
114 | } | ||
115 | RIPEMD160_Final(&(md[0]),&c); | ||
116 | pt(md); | ||
117 | } | ||
118 | |||
119 | void pt(unsigned char *md) | ||
120 | { | ||
121 | int i; | ||
122 | |||
123 | for (i=0; i<RIPEMD160_DIGEST_LENGTH; i++) | ||
124 | printf("%02x",md[i]); | ||
125 | printf("\n"); | ||
126 | } | ||
127 | |||
diff --git a/src/lib/libssl/src/certs/rsa-ssca.pem b/src/lib/libssl/src/certs/rsa-ssca.pem deleted file mode 100644 index e69de29bb2..0000000000 --- a/src/lib/libssl/src/certs/rsa-ssca.pem +++ /dev/null | |||
diff --git a/src/lib/libssl/src/ms/cipher.out b/src/lib/libssl/src/ms/cipher.out deleted file mode 100644 index 2c73bb7d1c..0000000000 --- a/src/lib/libssl/src/ms/cipher.out +++ /dev/null | |||
@@ -1,93 +0,0 @@ | |||
1 | echo=off | ||
2 | |||
3 | echo start testenc | ||
4 | path=..\ms;%path% | ||
5 | set ssleay=%1% | ||
6 | set input=..\ms\testenc.bat | ||
7 | set tmp1=..\ms\cipher.out | ||
8 | set out1=..\ms\clear.out | ||
9 | set cmp=perl ..\ms\cmp.pl | ||
10 | |||
11 | call tenc.bat enc | ||
12 | if errorlevel 1 goto err | ||
13 | |||
14 | call tenc.bat rc4 | ||
15 | if errorlevel 1 goto err | ||
16 | |||
17 | call tenc.bat des-cfb | ||
18 | if errorlevel 1 goto err | ||
19 | |||
20 | call tenc.bat des-ede-cfb | ||
21 | if errorlevel 1 goto err | ||
22 | |||
23 | call tenc.bat des-ede3-cfb | ||
24 | if errorlevel 1 goto err | ||
25 | |||
26 | call tenc.bat des-ofb | ||
27 | if errorlevel 1 goto err | ||
28 | |||
29 | call tenc.bat des-ede-ofb | ||
30 | if errorlevel 1 goto err | ||
31 | |||
32 | call tenc.bat des-ede3-ofb | ||
33 | if errorlevel 1 goto err | ||
34 | |||
35 | call tenc.bat des-ecb | ||
36 | if errorlevel 1 goto err | ||
37 | |||
38 | call tenc.bat des-ede | ||
39 | if errorlevel 1 goto err | ||
40 | |||
41 | call tenc.bat des-ede3 | ||
42 | if errorlevel 1 goto err | ||
43 | |||
44 | call tenc.bat des-cbc | ||
45 | if errorlevel 1 goto err | ||
46 | |||
47 | call tenc.bat des-ede-cbc | ||
48 | if errorlevel 1 goto err | ||
49 | |||
50 | call tenc.bat des-ede3-cbc | ||
51 | if errorlevel 1 goto err | ||
52 | |||
53 | call tenc.bat idea-ecb | ||
54 | if errorlevel 1 goto err | ||
55 | |||
56 | call tenc.bat idea-cfb | ||
57 | if errorlevel 1 goto err | ||
58 | |||
59 | call tenc.bat idea-ofb | ||
60 | if errorlevel 1 goto err | ||
61 | |||
62 | call tenc.bat idea-cbc | ||
63 | if errorlevel 1 goto err | ||
64 | |||
65 | call tenc.bat rc2-ecb | ||
66 | if errorlevel 1 goto err | ||
67 | |||
68 | call tenc.bat rc2-cfb | ||
69 | if errorlevel 1 goto err | ||
70 | |||
71 | call tenc.bat rc2-ofb | ||
72 | if errorlevel 1 goto err | ||
73 | |||
74 | call tenc.bat rc2-cbc | ||
75 | if errorlevel 1 goto err | ||
76 | |||
77 | call tenc.bat bf-ecb | ||
78 | if errorlevel 1 goto err | ||
79 | |||
80 | call tenc.bat bf-cfb | ||
81 | if errorlevel 1 goto err | ||
82 | |||
83 | call tenc.bat bf-ofb | ||
84 | if errorlevel 1 goto err | ||
85 | |||
86 | call tenc.bat bf-cbc | ||
87 | if errorlevel 1 goto err | ||
88 | |||
89 | echo OK | ||
90 | del %out1% | ||
91 | del %tmp1% | ||
92 | :err | ||
93 | |||
diff --git a/src/lib/libssl/src/ms/clear.out b/src/lib/libssl/src/ms/clear.out deleted file mode 100644 index 2c73bb7d1c..0000000000 --- a/src/lib/libssl/src/ms/clear.out +++ /dev/null | |||
@@ -1,93 +0,0 @@ | |||
1 | echo=off | ||
2 | |||
3 | echo start testenc | ||
4 | path=..\ms;%path% | ||
5 | set ssleay=%1% | ||
6 | set input=..\ms\testenc.bat | ||
7 | set tmp1=..\ms\cipher.out | ||
8 | set out1=..\ms\clear.out | ||
9 | set cmp=perl ..\ms\cmp.pl | ||
10 | |||
11 | call tenc.bat enc | ||
12 | if errorlevel 1 goto err | ||
13 | |||
14 | call tenc.bat rc4 | ||
15 | if errorlevel 1 goto err | ||
16 | |||
17 | call tenc.bat des-cfb | ||
18 | if errorlevel 1 goto err | ||
19 | |||
20 | call tenc.bat des-ede-cfb | ||
21 | if errorlevel 1 goto err | ||
22 | |||
23 | call tenc.bat des-ede3-cfb | ||
24 | if errorlevel 1 goto err | ||
25 | |||
26 | call tenc.bat des-ofb | ||
27 | if errorlevel 1 goto err | ||
28 | |||
29 | call tenc.bat des-ede-ofb | ||
30 | if errorlevel 1 goto err | ||
31 | |||
32 | call tenc.bat des-ede3-ofb | ||
33 | if errorlevel 1 goto err | ||
34 | |||
35 | call tenc.bat des-ecb | ||
36 | if errorlevel 1 goto err | ||
37 | |||
38 | call tenc.bat des-ede | ||
39 | if errorlevel 1 goto err | ||
40 | |||
41 | call tenc.bat des-ede3 | ||
42 | if errorlevel 1 goto err | ||
43 | |||
44 | call tenc.bat des-cbc | ||
45 | if errorlevel 1 goto err | ||
46 | |||
47 | call tenc.bat des-ede-cbc | ||
48 | if errorlevel 1 goto err | ||
49 | |||
50 | call tenc.bat des-ede3-cbc | ||
51 | if errorlevel 1 goto err | ||
52 | |||
53 | call tenc.bat idea-ecb | ||
54 | if errorlevel 1 goto err | ||
55 | |||
56 | call tenc.bat idea-cfb | ||
57 | if errorlevel 1 goto err | ||
58 | |||
59 | call tenc.bat idea-ofb | ||
60 | if errorlevel 1 goto err | ||
61 | |||
62 | call tenc.bat idea-cbc | ||
63 | if errorlevel 1 goto err | ||
64 | |||
65 | call tenc.bat rc2-ecb | ||
66 | if errorlevel 1 goto err | ||
67 | |||
68 | call tenc.bat rc2-cfb | ||
69 | if errorlevel 1 goto err | ||
70 | |||
71 | call tenc.bat rc2-ofb | ||
72 | if errorlevel 1 goto err | ||
73 | |||
74 | call tenc.bat rc2-cbc | ||
75 | if errorlevel 1 goto err | ||
76 | |||
77 | call tenc.bat bf-ecb | ||
78 | if errorlevel 1 goto err | ||
79 | |||
80 | call tenc.bat bf-cfb | ||
81 | if errorlevel 1 goto err | ||
82 | |||
83 | call tenc.bat bf-ofb | ||
84 | if errorlevel 1 goto err | ||
85 | |||
86 | call tenc.bat bf-cbc | ||
87 | if errorlevel 1 goto err | ||
88 | |||
89 | echo OK | ||
90 | del %out1% | ||
91 | del %tmp1% | ||
92 | :err | ||
93 | |||
diff --git a/src/lib/libssl/src/test/demoCA/private/cakey.pem b/src/lib/libssl/src/test/demoCA/private/cakey.pem deleted file mode 100644 index edd5a5773f..0000000000 --- a/src/lib/libssl/src/test/demoCA/private/cakey.pem +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | -----BEGIN RSA PRIVATE KEY----- | ||
2 | -----END RSA PRIVATE KEY----- | ||
diff --git a/src/lib/libssl/src/test/demoCA/serial b/src/lib/libssl/src/test/demoCA/serial deleted file mode 100644 index 8a0f05e166..0000000000 --- a/src/lib/libssl/src/test/demoCA/serial +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | 01 | ||
diff --git a/src/lib/libssl/test/demoCA/private/cakey.pem b/src/lib/libssl/test/demoCA/private/cakey.pem deleted file mode 100644 index edd5a5773f..0000000000 --- a/src/lib/libssl/test/demoCA/private/cakey.pem +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | -----BEGIN RSA PRIVATE KEY----- | ||
2 | -----END RSA PRIVATE KEY----- | ||
diff --git a/src/lib/libssl/test/demoCA/serial b/src/lib/libssl/test/demoCA/serial deleted file mode 100644 index 8a0f05e166..0000000000 --- a/src/lib/libssl/test/demoCA/serial +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | 01 | ||