summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkus <>2002-09-04 19:08:53 +0000
committermarkus <>2002-09-04 19:08:53 +0000
commitede5a980740e6043e67dee75572f89652dd76701 (patch)
tree62d8e5c8530750ec951fc440b240ed44370ea494
parent007f4fe9c96767f52d3a2b8782cd2fb7c6031909 (diff)
downloadopenbsd-ede5a980740e6043e67dee75572f89652dd76701.tar.gz
openbsd-ede5a980740e6043e67dee75572f89652dd76701.tar.bz2
openbsd-ede5a980740e6043e67dee75572f89652dd76701.zip
more cruft.
-rw-r--r--src/lib/libssl/src/apps/md5.c127
-rw-r--r--src/lib/libssl/src/apps/rmd160.c127
-rw-r--r--src/lib/libssl/src/certs/rsa-ssca.pem0
-rw-r--r--src/lib/libssl/src/ms/cipher.out93
-rw-r--r--src/lib/libssl/src/ms/clear.out93
-rw-r--r--src/lib/libssl/src/test/demoCA/private/cakey.pem2
-rw-r--r--src/lib/libssl/src/test/demoCA/serial1
-rw-r--r--src/lib/libssl/test/demoCA/private/cakey.pem2
-rw-r--r--src/lib/libssl/test/demoCA/serial1
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
65void do_fp(FILE *f);
66void pt(unsigned char *md);
67#ifndef _OSD_POSIX
68int read(int, void *, unsigned int);
69#endif
70
71int 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
99void 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
119void 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
65void do_fp(FILE *f);
66void pt(unsigned char *md);
67#ifndef _OSD_POSIX
68int read(int, void *, unsigned int);
69#endif
70
71int 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
99void 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
119void 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 @@
1echo=off
2
3echo start testenc
4path=..\ms;%path%
5set ssleay=%1%
6set input=..\ms\testenc.bat
7set tmp1=..\ms\cipher.out
8set out1=..\ms\clear.out
9set cmp=perl ..\ms\cmp.pl
10
11call tenc.bat enc
12if errorlevel 1 goto err
13
14call tenc.bat rc4
15if errorlevel 1 goto err
16
17call tenc.bat des-cfb
18if errorlevel 1 goto err
19
20call tenc.bat des-ede-cfb
21if errorlevel 1 goto err
22
23call tenc.bat des-ede3-cfb
24if errorlevel 1 goto err
25
26call tenc.bat des-ofb
27if errorlevel 1 goto err
28
29call tenc.bat des-ede-ofb
30if errorlevel 1 goto err
31
32call tenc.bat des-ede3-ofb
33if errorlevel 1 goto err
34
35call tenc.bat des-ecb
36if errorlevel 1 goto err
37
38call tenc.bat des-ede
39if errorlevel 1 goto err
40
41call tenc.bat des-ede3
42if errorlevel 1 goto err
43
44call tenc.bat des-cbc
45if errorlevel 1 goto err
46
47call tenc.bat des-ede-cbc
48if errorlevel 1 goto err
49
50call tenc.bat des-ede3-cbc
51if errorlevel 1 goto err
52
53call tenc.bat idea-ecb
54if errorlevel 1 goto err
55
56call tenc.bat idea-cfb
57if errorlevel 1 goto err
58
59call tenc.bat idea-ofb
60if errorlevel 1 goto err
61
62call tenc.bat idea-cbc
63if errorlevel 1 goto err
64
65call tenc.bat rc2-ecb
66if errorlevel 1 goto err
67
68call tenc.bat rc2-cfb
69if errorlevel 1 goto err
70
71call tenc.bat rc2-ofb
72if errorlevel 1 goto err
73
74call tenc.bat rc2-cbc
75if errorlevel 1 goto err
76
77call tenc.bat bf-ecb
78if errorlevel 1 goto err
79
80call tenc.bat bf-cfb
81if errorlevel 1 goto err
82
83call tenc.bat bf-ofb
84if errorlevel 1 goto err
85
86call tenc.bat bf-cbc
87if errorlevel 1 goto err
88
89echo OK
90del %out1%
91del %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 @@
1echo=off
2
3echo start testenc
4path=..\ms;%path%
5set ssleay=%1%
6set input=..\ms\testenc.bat
7set tmp1=..\ms\cipher.out
8set out1=..\ms\clear.out
9set cmp=perl ..\ms\cmp.pl
10
11call tenc.bat enc
12if errorlevel 1 goto err
13
14call tenc.bat rc4
15if errorlevel 1 goto err
16
17call tenc.bat des-cfb
18if errorlevel 1 goto err
19
20call tenc.bat des-ede-cfb
21if errorlevel 1 goto err
22
23call tenc.bat des-ede3-cfb
24if errorlevel 1 goto err
25
26call tenc.bat des-ofb
27if errorlevel 1 goto err
28
29call tenc.bat des-ede-ofb
30if errorlevel 1 goto err
31
32call tenc.bat des-ede3-ofb
33if errorlevel 1 goto err
34
35call tenc.bat des-ecb
36if errorlevel 1 goto err
37
38call tenc.bat des-ede
39if errorlevel 1 goto err
40
41call tenc.bat des-ede3
42if errorlevel 1 goto err
43
44call tenc.bat des-cbc
45if errorlevel 1 goto err
46
47call tenc.bat des-ede-cbc
48if errorlevel 1 goto err
49
50call tenc.bat des-ede3-cbc
51if errorlevel 1 goto err
52
53call tenc.bat idea-ecb
54if errorlevel 1 goto err
55
56call tenc.bat idea-cfb
57if errorlevel 1 goto err
58
59call tenc.bat idea-ofb
60if errorlevel 1 goto err
61
62call tenc.bat idea-cbc
63if errorlevel 1 goto err
64
65call tenc.bat rc2-ecb
66if errorlevel 1 goto err
67
68call tenc.bat rc2-cfb
69if errorlevel 1 goto err
70
71call tenc.bat rc2-ofb
72if errorlevel 1 goto err
73
74call tenc.bat rc2-cbc
75if errorlevel 1 goto err
76
77call tenc.bat bf-ecb
78if errorlevel 1 goto err
79
80call tenc.bat bf-cfb
81if errorlevel 1 goto err
82
83call tenc.bat bf-ofb
84if errorlevel 1 goto err
85
86call tenc.bat bf-cbc
87if errorlevel 1 goto err
88
89echo OK
90del %out1%
91del %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 @@
101
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 @@
101