diff options
Diffstat (limited to 'src/usr.bin/openssl')
-rw-r--r-- | src/usr.bin/openssl/openssl.1 | 10 | ||||
-rw-r--r-- | src/usr.bin/openssl/req.c | 4 | ||||
-rw-r--r-- | src/usr.bin/openssl/speed.c | 34 | ||||
-rw-r--r-- | src/usr.bin/openssl/ts.c | 4 | ||||
-rw-r--r-- | src/usr.bin/openssl/x509.c | 4 |
5 files changed, 13 insertions, 43 deletions
diff --git a/src/usr.bin/openssl/openssl.1 b/src/usr.bin/openssl/openssl.1 index c90d998cb6..5106943640 100644 --- a/src/usr.bin/openssl/openssl.1 +++ b/src/usr.bin/openssl/openssl.1 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: openssl.1,v 1.14 2015/06/18 11:38:41 jmc Exp $ | 1 | .\" $OpenBSD: openssl.1,v 1.15 2015/06/20 01:07:25 doug Exp $ |
2 | .\" ==================================================================== | 2 | .\" ==================================================================== |
3 | .\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. | 3 | .\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. |
4 | .\" | 4 | .\" |
@@ -112,7 +112,7 @@ | |||
112 | .\" | 112 | .\" |
113 | .\" OPENSSL | 113 | .\" OPENSSL |
114 | .\" | 114 | .\" |
115 | .Dd $Mdocdate: June 18 2015 $ | 115 | .Dd $Mdocdate: June 20 2015 $ |
116 | .Dt OPENSSL 1 | 116 | .Dt OPENSSL 1 |
117 | .Os | 117 | .Os |
118 | .Sh NAME | 118 | .Sh NAME |
@@ -389,8 +389,6 @@ GOST R 34.11-94 digest. | |||
389 | MD4 digest. | 389 | MD4 digest. |
390 | .It Cm md5 | 390 | .It Cm md5 |
391 | MD5 digest. | 391 | MD5 digest. |
392 | .It Cm mdc2 | ||
393 | MDC-2 digest. | ||
394 | .It Cm ripemd160 | 392 | .It Cm ripemd160 |
395 | RIPEMD-160 digest. | 393 | RIPEMD-160 digest. |
396 | .It Cm sha | 394 | .It Cm sha |
@@ -1814,7 +1812,7 @@ install user certificates and CAs in MSIE using the Xenroll control. | |||
1814 | .Bk -words | 1812 | .Bk -words |
1815 | .Oo | 1813 | .Oo |
1816 | .Fl gost-mac | streebog256 | streebog512 | md_gost94 | | 1814 | .Fl gost-mac | streebog256 | streebog512 | md_gost94 | |
1817 | .Fl md4 | md5 | mdc2 | ripemd160 | sha | sha1 | | 1815 | .Fl md4 | md5 | ripemd160 | sha | sha1 | |
1818 | .Fl sha224 | sha256 | sha384 | sha512 | whirlpool | 1816 | .Fl sha224 | sha256 | sha384 | sha512 | whirlpool |
1819 | .Oc | 1817 | .Oc |
1820 | .Op Fl binary | 1818 | .Op Fl binary |
@@ -1838,7 +1836,7 @@ install user certificates and CAs in MSIE using the Xenroll control. | |||
1838 | .Pp | 1836 | .Pp |
1839 | .Nm openssl | 1837 | .Nm openssl |
1840 | .Cm gost-mac | streebog256 | streebog512 | md_gost94 | | 1838 | .Cm gost-mac | streebog256 | streebog512 | md_gost94 | |
1841 | .Cm md4 | md5 | mdc2 | ripemd160 | sha | sha1 | | 1839 | .Cm md4 | md5 | ripemd160 | sha | sha1 | |
1842 | .Cm sha224 | sha256 | sha384 | sha512 | whirlpool | 1840 | .Cm sha224 | sha256 | sha384 | sha512 | whirlpool |
1843 | .Op Fl c | 1841 | .Op Fl c |
1844 | .Op Fl d | 1842 | .Op Fl d |
diff --git a/src/usr.bin/openssl/req.c b/src/usr.bin/openssl/req.c index 1d50524052..93742971ff 100644 --- a/src/usr.bin/openssl/req.c +++ b/src/usr.bin/openssl/req.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: req.c,v 1.4 2014/10/16 10:43:54 jsing Exp $ */ | 1 | /* $OpenBSD: req.c,v 1.5 2015/06/20 01:07:25 doug Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -379,7 +379,7 @@ bad: | |||
379 | BIO_printf(bio_err, " -newkey rsa:bits generate a new RSA key of 'bits' in size\n"); | 379 | BIO_printf(bio_err, " -newkey rsa:bits generate a new RSA key of 'bits' in size\n"); |
380 | BIO_printf(bio_err, " -newkey dsa:file generate a new DSA key, parameters taken from CA in 'file'\n"); | 380 | BIO_printf(bio_err, " -newkey dsa:file generate a new DSA key, parameters taken from CA in 'file'\n"); |
381 | BIO_printf(bio_err, " -newkey ec:file generate a new EC key, parameters taken from CA in 'file'\n"); | 381 | BIO_printf(bio_err, " -newkey ec:file generate a new EC key, parameters taken from CA in 'file'\n"); |
382 | BIO_printf(bio_err, " -[digest] Digest to sign with (md5, sha1, md2, mdc2, md4)\n"); | 382 | BIO_printf(bio_err, " -[digest] Digest to sign with (md5, sha1, md4)\n"); |
383 | BIO_printf(bio_err, " -config file request template file.\n"); | 383 | BIO_printf(bio_err, " -config file request template file.\n"); |
384 | BIO_printf(bio_err, " -subj arg set or modify request subject\n"); | 384 | BIO_printf(bio_err, " -subj arg set or modify request subject\n"); |
385 | BIO_printf(bio_err, " -multivalue-rdn enable support for multivalued RDNs\n"); | 385 | BIO_printf(bio_err, " -multivalue-rdn enable support for multivalued RDNs\n"); |
diff --git a/src/usr.bin/openssl/speed.c b/src/usr.bin/openssl/speed.c index 8795d6c434..236e0267bb 100644 --- a/src/usr.bin/openssl/speed.c +++ b/src/usr.bin/openssl/speed.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: speed.c,v 1.5 2015/02/08 10:22:45 doug Exp $ */ | 1 | /* $OpenBSD: speed.c,v 1.6 2015/06/20 01:07:25 doug Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -124,9 +124,6 @@ | |||
124 | #ifndef OPENSSL_NO_IDEA | 124 | #ifndef OPENSSL_NO_IDEA |
125 | #include <openssl/idea.h> | 125 | #include <openssl/idea.h> |
126 | #endif | 126 | #endif |
127 | #ifndef OPENSSL_NO_MDC2 | ||
128 | #include <openssl/mdc2.h> | ||
129 | #endif | ||
130 | #ifndef OPENSSL_NO_MD4 | 127 | #ifndef OPENSSL_NO_MD4 |
131 | #include <openssl/md4.h> | 128 | #include <openssl/md4.h> |
132 | #endif | 129 | #endif |
@@ -179,7 +176,7 @@ static int do_multi(int multi); | |||
179 | #define MAX_ECDH_SIZE 256 | 176 | #define MAX_ECDH_SIZE 256 |
180 | 177 | ||
181 | static const char *names[ALGOR_NUM] = { | 178 | static const char *names[ALGOR_NUM] = { |
182 | "md2", "mdc2", "md4", "md5", "hmac(md5)", "sha1", "rmd160", "rc4", | 179 | "md2", "md4", "md5", "hmac(md5)", "sha1", "rmd160", "rc4", |
183 | "des cbc", "des ede3", "idea cbc", "seed cbc", | 180 | "des cbc", "des ede3", "idea cbc", "seed cbc", |
184 | "rc2 cbc", "rc5-32/12 cbc", "blowfish cbc", "cast cbc", | 181 | "rc2 cbc", "rc5-32/12 cbc", "blowfish cbc", "cast cbc", |
185 | "aes-128 cbc", "aes-192 cbc", "aes-256 cbc", | 182 | "aes-128 cbc", "aes-192 cbc", "aes-256 cbc", |
@@ -241,9 +238,6 @@ speed_main(int argc, char **argv) | |||
241 | long rsa_count; | 238 | long rsa_count; |
242 | unsigned rsa_num; | 239 | unsigned rsa_num; |
243 | unsigned char md[EVP_MAX_MD_SIZE]; | 240 | unsigned char md[EVP_MAX_MD_SIZE]; |
244 | #ifndef OPENSSL_NO_MDC2 | ||
245 | unsigned char mdc2[MDC2_DIGEST_LENGTH]; | ||
246 | #endif | ||
247 | #ifndef OPENSSL_NO_MD4 | 241 | #ifndef OPENSSL_NO_MD4 |
248 | unsigned char md4[MD4_DIGEST_LENGTH]; | 242 | unsigned char md4[MD4_DIGEST_LENGTH]; |
249 | #endif | 243 | #endif |
@@ -331,7 +325,6 @@ speed_main(int argc, char **argv) | |||
331 | CAMELLIA_KEY camellia_ks1, camellia_ks2, camellia_ks3; | 325 | CAMELLIA_KEY camellia_ks1, camellia_ks2, camellia_ks3; |
332 | #endif | 326 | #endif |
333 | #define D_MD2 0 | 327 | #define D_MD2 0 |
334 | #define D_MDC2 1 | ||
335 | #define D_MD4 2 | 328 | #define D_MD4 2 |
336 | #define D_MD5 3 | 329 | #define D_MD5 3 |
337 | #define D_HMAC 4 | 330 | #define D_HMAC 4 |
@@ -586,11 +579,6 @@ speed_main(int argc, char **argv) | |||
586 | j--; /* Otherwise, -mr gets confused with an | 579 | j--; /* Otherwise, -mr gets confused with an |
587 | * algorithm. */ | 580 | * algorithm. */ |
588 | } else | 581 | } else |
589 | #ifndef OPENSSL_NO_MDC2 | ||
590 | if (strcmp(*argv, "mdc2") == 0) | ||
591 | doit[D_MDC2] = 1; | ||
592 | else | ||
593 | #endif | ||
594 | #ifndef OPENSSL_NO_MD4 | 582 | #ifndef OPENSSL_NO_MD4 |
595 | if (strcmp(*argv, "md4") == 0) | 583 | if (strcmp(*argv, "md4") == 0) |
596 | doit[D_MD4] = 1; | 584 | doit[D_MD4] = 1; |
@@ -844,9 +832,6 @@ speed_main(int argc, char **argv) | |||
844 | BIO_printf(bio_err, "Error: bad option or value\n"); | 832 | BIO_printf(bio_err, "Error: bad option or value\n"); |
845 | BIO_printf(bio_err, "\n"); | 833 | BIO_printf(bio_err, "\n"); |
846 | BIO_printf(bio_err, "Available values:\n"); | 834 | BIO_printf(bio_err, "Available values:\n"); |
847 | #ifndef OPENSSL_NO_MDC2 | ||
848 | BIO_printf(bio_err, "mdc2 "); | ||
849 | #endif | ||
850 | #ifndef OPENSSL_NO_MD4 | 835 | #ifndef OPENSSL_NO_MD4 |
851 | BIO_printf(bio_err, "md4 "); | 836 | BIO_printf(bio_err, "md4 "); |
852 | #endif | 837 | #endif |
@@ -871,7 +856,7 @@ speed_main(int argc, char **argv) | |||
871 | #ifndef OPENSSL_NO_RIPEMD160 | 856 | #ifndef OPENSSL_NO_RIPEMD160 |
872 | BIO_printf(bio_err, "rmd160"); | 857 | BIO_printf(bio_err, "rmd160"); |
873 | #endif | 858 | #endif |
874 | #if !defined(OPENSSL_NO_MD2) || !defined(OPENSSL_NO_MDC2) || \ | 859 | #if !defined(OPENSSL_NO_MD2) || \ |
875 | !defined(OPENSSL_NO_MD4) || !defined(OPENSSL_NO_MD5) || \ | 860 | !defined(OPENSSL_NO_MD4) || !defined(OPENSSL_NO_MD5) || \ |
876 | !defined(OPENSSL_NO_SHA1) || !defined(OPENSSL_NO_RIPEMD160) || \ | 861 | !defined(OPENSSL_NO_SHA1) || !defined(OPENSSL_NO_RIPEMD160) || \ |
877 | !defined(OPENSSL_NO_WHIRLPOOL) | 862 | !defined(OPENSSL_NO_WHIRLPOOL) |
@@ -1042,19 +1027,6 @@ speed_main(int argc, char **argv) | |||
1042 | #define COUNT(d) (count) | 1027 | #define COUNT(d) (count) |
1043 | signal(SIGALRM, sig_done); | 1028 | signal(SIGALRM, sig_done); |
1044 | 1029 | ||
1045 | #ifndef OPENSSL_NO_MDC2 | ||
1046 | if (doit[D_MDC2]) { | ||
1047 | for (j = 0; j < SIZE_NUM; j++) { | ||
1048 | print_message(names[D_MDC2], c[D_MDC2][j], lengths[j]); | ||
1049 | Time_F(START); | ||
1050 | for (count = 0, run = 1; COND(c[D_MDC2][j]); count++) | ||
1051 | EVP_Digest(buf, (unsigned long) lengths[j], &(mdc2[0]), NULL, EVP_mdc2(), NULL); | ||
1052 | d = Time_F(STOP); | ||
1053 | print_result(D_MDC2, j, count, d); | ||
1054 | } | ||
1055 | } | ||
1056 | #endif | ||
1057 | |||
1058 | #ifndef OPENSSL_NO_MD4 | 1030 | #ifndef OPENSSL_NO_MD4 |
1059 | if (doit[D_MD4]) { | 1031 | if (doit[D_MD4]) { |
1060 | for (j = 0; j < SIZE_NUM; j++) { | 1032 | for (j = 0; j < SIZE_NUM; j++) { |
diff --git a/src/usr.bin/openssl/ts.c b/src/usr.bin/openssl/ts.c index cd7d9cc81e..341d9395c7 100644 --- a/src/usr.bin/openssl/ts.c +++ b/src/usr.bin/openssl/ts.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ts.c,v 1.3 2014/10/22 13:54:03 jsing Exp $ */ | 1 | /* $OpenBSD: ts.c,v 1.4 2015/06/20 01:07:25 doug Exp $ */ |
2 | /* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL | 2 | /* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL |
3 | * project 2002. | 3 | * project 2002. |
4 | */ | 4 | */ |
@@ -306,7 +306,7 @@ usage: | |||
306 | BIO_printf(bio_err, "usage:\n" | 306 | BIO_printf(bio_err, "usage:\n" |
307 | "ts -query [-config configfile] " | 307 | "ts -query [-config configfile] " |
308 | "[-data file_to_hash] [-digest digest_bytes]" | 308 | "[-data file_to_hash] [-digest digest_bytes]" |
309 | "[-md2|-md4|-md5|-sha|-sha1|-mdc2|-ripemd160] " | 309 | "[-md2|-md4|-md5|-sha|-sha1|-ripemd160] " |
310 | "[-policy object_id] [-no_nonce] [-cert] " | 310 | "[-policy object_id] [-no_nonce] [-cert] " |
311 | "[-in request.tsq] [-out request.tsq] [-text]\n"); | 311 | "[-in request.tsq] [-out request.tsq] [-text]\n"); |
312 | BIO_printf(bio_err, "or\n" | 312 | BIO_printf(bio_err, "or\n" |
diff --git a/src/usr.bin/openssl/x509.c b/src/usr.bin/openssl/x509.c index db3173e74d..0e4d7dcd77 100644 --- a/src/usr.bin/openssl/x509.c +++ b/src/usr.bin/openssl/x509.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509.c,v 1.2 2014/08/28 14:23:52 jsing Exp $ */ | 1 | /* $OpenBSD: x509.c,v 1.3 2015/06/20 01:07:25 doug Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -135,7 +135,7 @@ static const char *x509_usage[] = { | |||
135 | " -set_serial - serial number to use\n", | 135 | " -set_serial - serial number to use\n", |
136 | " -text - print the certificate in text form\n", | 136 | " -text - print the certificate in text form\n", |
137 | " -C - print out C code forms\n", | 137 | " -C - print out C code forms\n", |
138 | " -md2/-md5/-sha1/-mdc2 - digest to use\n", | 138 | " -md2/-md5/-sha1 - digest to use\n", |
139 | " -extfile - configuration file with X509V3 extensions to add\n", | 139 | " -extfile - configuration file with X509V3 extensions to add\n", |
140 | " -extensions - section from config file with X509V3 extensions to add\n", | 140 | " -extensions - section from config file with X509V3 extensions to add\n", |
141 | " -clrext - delete extensions before signing and input certificate\n", | 141 | " -clrext - delete extensions before signing and input certificate\n", |