author | Misaki Miyashita <Misaki.Miyashita@Oracle.COM> |
Wed, 30 Sep 2015 10:41:40 -0700 | |
changeset 4910 | 395144914930 |
permissions | -rw-r--r-- |
4910
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
1 |
# |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
2 |
# This patch fixes the usage bug: It shows '-ssl2' option even though it's not |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
3 |
# available. The bug has been reported to the upstream: #3580. |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
4 |
# |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
5 |
--- openssl/apps/s_client.c.orig Tue Sep 15 13:33:45 2015 |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
6 |
+++ openssl/apps/s_client.c Tue Sep 15 13:34:26 2015 |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
7 |
@@ -376,7 +376,9 @@ |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
8 |
" -srp_strength int - minimal length in bits for N (default %d).\n", |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
9 |
SRP_MINIMAL_N); |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
10 |
#endif |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
11 |
+#ifndef OPENSSL_NO_SSL2 |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
12 |
BIO_printf(bio_err, " -ssl2 - just use SSLv2\n"); |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
13 |
+#endif |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
14 |
#ifndef OPENSSL_NO_SSL3_METHOD |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
15 |
BIO_printf(bio_err, " -ssl3 - just use SSLv3\n"); |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
16 |
#endif |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
17 |
--- openssl/apps/s_server.c.orig Tue Sep 15 13:33:58 2015 |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
18 |
+++ openssl/apps/s_server.c Tue Sep 15 13:35:15 2015 |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
19 |
@@ -592,7 +592,9 @@ |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
20 |
BIO_printf(bio_err, |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
21 |
" -srpuserseed string - A seed string for a default user salt.\n"); |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
22 |
#endif |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
23 |
+#ifndef OPENSSL_NO_SSL2 |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
24 |
BIO_printf(bio_err, " -ssl2 - Just talk SSLv2\n"); |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
25 |
+#endif |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
26 |
#ifndef OPENSSL_NO_SSL3_METHOD |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
27 |
BIO_printf(bio_err, " -ssl3 - Just talk SSLv3\n"); |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
28 |
#endif |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
29 |
No differences encountered |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
30 |
--- openssl/apps/s_time.c.orig Tue Sep 15 13:33:53 2015 |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
31 |
+++ openssl/apps/s_time.c Tue Sep 15 13:35:01 2015 |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
32 |
@@ -190,8 +190,12 @@ |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
33 |
SSL_CONNECT_NAME); |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
34 |
#ifdef FIONBIO |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
35 |
printf("-nbio - Run with non-blocking IO\n"); |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
36 |
+#ifndef OPENSSL_NO_SSL2 |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
37 |
printf("-ssl2 - Just use SSLv2\n"); |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
38 |
+#endif |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
39 |
+#ifndef OPENSSL_NO_SSL3_METHOD |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
40 |
printf("-ssl3 - Just use SSLv3\n"); |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
41 |
+#endif |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
42 |
printf("-bugs - Turn on SSL bug compatibility\n"); |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
43 |
printf("-new - Just time new connections\n"); |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
44 |
printf("-reuse - Just time connection reuse\n"); |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
45 |
--- openssl/apps/ciphers.c.orig Tue Sep 15 13:34:02 2015 |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
46 |
+++ openssl/apps/ciphers.c Tue Sep 15 13:51:03 2015 |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
47 |
@@ -73,8 +73,12 @@ |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
48 |
"usage: ciphers args\n", |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
49 |
" -v - verbose mode, a textual listing of the SSL/TLS ciphers in OpenSSL\n", |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
50 |
" -V - even more verbose\n", |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
51 |
+#ifndef OPENSSL_NO_SSL2 |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
52 |
" -ssl2 - SSL2 mode\n", |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
53 |
+#endif |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
54 |
+#ifndef OPENSSL_NO_SSL3_METHOD |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
55 |
" -ssl3 - SSL3 mode\n", |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
56 |
+#endif |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
57 |
" -tls1 - TLS1 mode\n", |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
58 |
NULL |
395144914930
21849701 openssl(1) usage is wrong when the 'no-ssl2' compile option is specified
Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
parents:
diff
changeset
|
59 |
}; |