Add patch.

tls13_draft
Hakase 2018-12-06 23:46:53 +09:00
parent b6f7625771
commit ba7bb21bdc
No known key found for this signature in database
GPG Key ID: BB2821A9E0DF48C9
2 changed files with 20 additions and 0 deletions

View File

@ -52,6 +52,7 @@ Here is the basic patch content.
| openssl-1.1.1a-chacha_draft.patch<br>openssl-3.0.0-dev-chacha_draft.patch | A draft version of chacha20-poly1305 is available. [View issue](https://github.com/hakasenyang/openssl-patch/issues/1#issuecomment-427554824) |
| openssl-1.1.1a-tls13_draft.patch | Enable TLS 1.3 draft 23, 26, 28, final. |
| openssl-1.1.1a-tls13_nginx_config.patch | You can set TLS 1.3 ciphere in nginx. ex) TLS13+AESGCM+AES128 |
| openssl-3.0.0-dev_version_error.patch | **TEST** This is a way to fix nginx when the following errors occur during the build:<br>Error: missing binary operator before token "(" |
**The "_ciphers" patch file is a temporary change to the TLS 1.3 configuration.**

View File

@ -0,0 +1,19 @@
diff --git a/include/openssl/opensslv.h b/include/openssl/opensslv.h
index 7634eb14cd..cacf3e2ef1 100644
--- a/include/openssl/opensslv.h
+++ b/include/openssl/opensslv.h
@@ -130,11 +130,11 @@ const char *OPENSSL_version_build_metadata(void);
# else
# define _OPENSSL_VERSION_PRE_RELEASE 0xf
# endif
-# define OPENSSL_VERSION_NUMBER \
- (long)( (OPENSSL_VERSION_MAJOR<<28) \
+# define OPENSSL_VERSION_NUMBER \
+ ( (OPENSSL_VERSION_MAJOR<<28) \
|(OPENSSL_VERSION_MINOR<<20) \
|(OPENSSL_VERSION_PATCH<<4) \
- |_OPENSSL_VERSION_PRE_RELEASE )
+ |_OPENSSL_VERSION_PRE_RELEASE )
# endif
# ifdef __cplusplus