diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/usr.bin/openssl/ca.c | 4 | ||||
-rw-r--r-- | src/usr.bin/openssl/openssl.1 | 23 | ||||
-rw-r--r-- | src/usr.bin/openssl/openssl.c | 5 | ||||
-rw-r--r-- | src/usr.bin/openssl/ts.c | 4 | ||||
-rw-r--r-- | src/usr.bin/openssl/x509.c | 4 |
5 files changed, 17 insertions, 23 deletions
diff --git a/src/usr.bin/openssl/ca.c b/src/usr.bin/openssl/ca.c index c9419ee7a7..a4f00ee62c 100644 --- a/src/usr.bin/openssl/ca.c +++ b/src/usr.bin/openssl/ca.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ca.c,v 1.14 2015/09/12 19:34:07 lteo Exp $ */ | 1 | /* $OpenBSD: ca.c,v 1.15 2015/09/21 13:13:06 bcook 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 | * |
@@ -132,7 +132,7 @@ static const char *ca_usage[] = { | |||
132 | " -startdate YYMMDDHHMMSSZ - certificate validity notBefore\n", | 132 | " -startdate YYMMDDHHMMSSZ - certificate validity notBefore\n", |
133 | " -enddate YYMMDDHHMMSSZ - certificate validity notAfter (overrides -days)\n", | 133 | " -enddate YYMMDDHHMMSSZ - certificate validity notAfter (overrides -days)\n", |
134 | " -days arg - number of days to certify the certificate for\n", | 134 | " -days arg - number of days to certify the certificate for\n", |
135 | " -md arg - md to use, one of md2, md5, sha or sha1\n", | 135 | " -md arg - md to use, one of md5 or sha1\n", |
136 | " -policy arg - The CA 'policy' to support\n", | 136 | " -policy arg - The CA 'policy' to support\n", |
137 | " -keyfile arg - private key file\n", | 137 | " -keyfile arg - private key file\n", |
138 | " -keyform arg - private key file format (PEM)\n", | 138 | " -keyform arg - private key file format (PEM)\n", |
diff --git a/src/usr.bin/openssl/openssl.1 b/src/usr.bin/openssl/openssl.1 index 1ce8e84291..dc593f42e7 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.28 2015/09/14 01:45:03 doug Exp $ | 1 | .\" $OpenBSD: openssl.1,v 1.29 2015/09/21 13:13:06 bcook 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: September 14 2015 $ | 115 | .Dd $Mdocdate: September 21 2015 $ |
116 | .Dt OPENSSL 1 | 116 | .Dt OPENSSL 1 |
117 | .Os | 117 | .Os |
118 | .Sh NAME | 118 | .Sh NAME |
@@ -1795,7 +1795,7 @@ install user certificates and CAs in MSIE using the Xenroll control. | |||
1795 | .Bk -words | 1795 | .Bk -words |
1796 | .Oo | 1796 | .Oo |
1797 | .Fl gost-mac | streebog256 | streebog512 | md_gost94 | | 1797 | .Fl gost-mac | streebog256 | streebog512 | md_gost94 | |
1798 | .Fl md4 | md5 | ripemd160 | sha | sha1 | | 1798 | .Fl md4 | md5 | ripemd160 | sha1 | |
1799 | .Fl sha224 | sha256 | sha384 | sha512 | whirlpool | 1799 | .Fl sha224 | sha256 | sha384 | sha512 | whirlpool |
1800 | .Oc | 1800 | .Oc |
1801 | .Op Fl binary | 1801 | .Op Fl binary |
@@ -1818,7 +1818,7 @@ install user certificates and CAs in MSIE using the Xenroll control. | |||
1818 | .Pp | 1818 | .Pp |
1819 | .Nm openssl | 1819 | .Nm openssl |
1820 | .Cm gost-mac | streebog256 | streebog512 | md_gost94 | | 1820 | .Cm gost-mac | streebog256 | streebog512 | md_gost94 | |
1821 | .Cm md4 | md5 | ripemd160 | sha | sha1 | | 1821 | .Cm md4 | md5 | ripemd160 | sha1 | |
1822 | .Cm sha224 | sha256 | sha384 | sha512 | whirlpool | 1822 | .Cm sha224 | sha256 | sha384 | sha512 | whirlpool |
1823 | .Op Fl c | 1823 | .Op Fl c |
1824 | .Op Fl d | 1824 | .Op Fl d |
@@ -2780,9 +2780,7 @@ Use | |||
2780 | to create a key from a pass phrase. | 2780 | to create a key from a pass phrase. |
2781 | .Ar digest | 2781 | .Ar digest |
2782 | may be one of | 2782 | may be one of |
2783 | .Dq md2 , | 2783 | .Dq md5 |
2784 | .Dq md5 , | ||
2785 | .Dq sha , | ||
2786 | or | 2784 | or |
2787 | .Dq sha1 . | 2785 | .Dq sha1 . |
2788 | .It Fl none | 2786 | .It Fl none |
@@ -4210,11 +4208,11 @@ command line option, including PKCS#5 v1.5 and PKCS#12. | |||
4210 | These are described in more detail below. | 4208 | These are described in more detail below. |
4211 | .Pp | 4209 | .Pp |
4212 | .Bl -tag -width "XXXX" -compact | 4210 | .Bl -tag -width "XXXX" -compact |
4213 | .It Ar PBE-MD2-DES | PBE-MD5-DES | 4211 | .It Ar PBE-MD5-DES |
4214 | These algorithms were included in the original PKCS#5 v1.5 specification. | 4212 | These algorithms were included in the original PKCS#5 v1.5 specification. |
4215 | They only offer 56 bits of protection since they both use DES. | 4213 | They only offer 56 bits of protection since they both use DES. |
4216 | .Pp | 4214 | .Pp |
4217 | .It Ar PBE-SHA1-RC2-64 | PBE-MD2-RC2-64 | PBE-MD5-RC2-64 | PBE-SHA1-DES | 4215 | .It Ar PBE-SHA1-RC2-64 | PBE-MD5-RC2-64 | PBE-SHA1-DES |
4218 | These algorithms are not mentioned in the original PKCS#5 v1.5 specification | 4216 | These algorithms are not mentioned in the original PKCS#5 v1.5 specification |
4219 | but they use the same key derivation algorithm and are supported by some | 4217 | but they use the same key derivation algorithm and are supported by some |
4220 | software. | 4218 | software. |
@@ -7663,7 +7661,6 @@ command were first added in | |||
7663 | .Op Cm dsa1024 | 7661 | .Op Cm dsa1024 |
7664 | .Op Cm dsa2048 | 7662 | .Op Cm dsa2048 |
7665 | .Op Cm hmac | 7663 | .Op Cm hmac |
7666 | .Op Cm md2 | ||
7667 | .Op Cm md4 | 7664 | .Op Cm md4 |
7668 | .Op Cm md5 | 7665 | .Op Cm md5 |
7669 | .Op Cm rc2 | 7666 | .Op Cm rc2 |
@@ -7715,7 +7712,7 @@ benchmarks in parallel. | |||
7715 | .Nm "openssl ts" | 7712 | .Nm "openssl ts" |
7716 | .Bk -words | 7713 | .Bk -words |
7717 | .Fl query | 7714 | .Fl query |
7718 | .Op Fl md4 | md5 | ripemd160 | sha | sha1 | 7715 | .Op Fl md4 | md5 | ripemd160 | sha1 |
7719 | .Op Fl cert | 7716 | .Op Fl cert |
7720 | .Op Fl config Ar configfile | 7717 | .Op Fl config Ar configfile |
7721 | .Op Fl data Ar file_to_hash | 7718 | .Op Fl data Ar file_to_hash |
@@ -8860,7 +8857,7 @@ option was added in | |||
8860 | .Op Fl issuer_hash | 8857 | .Op Fl issuer_hash |
8861 | .Op Fl issuer_hash_old | 8858 | .Op Fl issuer_hash_old |
8862 | .Op Fl keyform Ar DER | PEM | 8859 | .Op Fl keyform Ar DER | PEM |
8863 | .Op Fl md2 | md5 | sha1 | 8860 | .Op Fl md5 | sha1 |
8864 | .Op Fl modulus | 8861 | .Op Fl modulus |
8865 | .Op Fl nameopt Ar option | 8862 | .Op Fl nameopt Ar option |
8866 | .Op Fl noout | 8863 | .Op Fl noout |
@@ -8917,7 +8914,7 @@ The | |||
8917 | .Ar NET | 8914 | .Ar NET |
8918 | option is an obscure Netscape server format that is now | 8915 | option is an obscure Netscape server format that is now |
8919 | obsolete. | 8916 | obsolete. |
8920 | .It Fl md2 | md5 | sha1 | 8917 | .It Fl md5 | sha1 |
8921 | The digest to use. | 8918 | The digest to use. |
8922 | This affects any signing or display option that uses a message digest, | 8919 | This affects any signing or display option that uses a message digest, |
8923 | such as the | 8920 | such as the |
diff --git a/src/usr.bin/openssl/openssl.c b/src/usr.bin/openssl/openssl.c index 604cfddcea..08132e8f96 100644 --- a/src/usr.bin/openssl/openssl.c +++ b/src/usr.bin/openssl/openssl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: openssl.c,v 1.12 2015/09/14 01:45:03 doug Exp $ */ | 1 | /* $OpenBSD: openssl.c,v 1.13 2015/09/21 13:13:06 bcook 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 | * |
@@ -226,9 +226,6 @@ FUNCTION functions[] = { | |||
226 | #ifndef OPENSSL_NO_RIPEMD160 | 226 | #ifndef OPENSSL_NO_RIPEMD160 |
227 | { FUNC_TYPE_MD, "ripemd160", dgst_main }, | 227 | { FUNC_TYPE_MD, "ripemd160", dgst_main }, |
228 | #endif | 228 | #endif |
229 | #ifndef OPENSSL_NO_SHA | ||
230 | { FUNC_TYPE_MD, "sha", dgst_main }, | ||
231 | #endif | ||
232 | #ifndef OPENSSL_NO_SHA1 | 229 | #ifndef OPENSSL_NO_SHA1 |
233 | { FUNC_TYPE_MD, "sha1", dgst_main }, | 230 | { FUNC_TYPE_MD, "sha1", dgst_main }, |
234 | #endif | 231 | #endif |
diff --git a/src/usr.bin/openssl/ts.c b/src/usr.bin/openssl/ts.c index e193636868..93d258d583 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.9 2015/09/14 01:45:03 doug Exp $ */ | 1 | /* $OpenBSD: ts.c,v 1.10 2015/09/21 13:13:06 bcook 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 | */ |
@@ -298,7 +298,7 @@ usage: | |||
298 | BIO_printf(bio_err, "usage:\n" | 298 | BIO_printf(bio_err, "usage:\n" |
299 | "ts -query [-config configfile] " | 299 | "ts -query [-config configfile] " |
300 | "[-data file_to_hash] [-digest digest_bytes]" | 300 | "[-data file_to_hash] [-digest digest_bytes]" |
301 | "[-md2|-md4|-md5|-sha|-sha1|-ripemd160] " | 301 | "[-md4|-md5|-sha1|-ripemd160] " |
302 | "[-policy object_id] [-no_nonce] [-cert] " | 302 | "[-policy object_id] [-no_nonce] [-cert] " |
303 | "[-in request.tsq] [-out request.tsq] [-text]\n"); | 303 | "[-in request.tsq] [-out request.tsq] [-text]\n"); |
304 | BIO_printf(bio_err, "or\n" | 304 | BIO_printf(bio_err, "or\n" |
diff --git a/src/usr.bin/openssl/x509.c b/src/usr.bin/openssl/x509.c index a8812f7e74..d0a6bcaa00 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.6 2015/09/11 14:30:23 bcook Exp $ */ | 1 | /* $OpenBSD: x509.c,v 1.7 2015/09/21 13:13:06 bcook 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 - digest to use\n", | 138 | " -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", |