Browse Source

Add patch.

master
Hakase 3 months ago
parent
commit
ba7bb21bdc
Signed by: Hakase <hakase@hakase.app> GPG Key ID: BB2821A9E0DF48C9
2 changed files with 20 additions and 0 deletions
  1. 1
    0
      README.md
  2. 19
    0
      openssl-3.0.0-dev_version_error.patch

+ 1
- 0
README.md View File

@@ -52,6 +52,7 @@ Here is the basic patch content.
52 52
 | 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) |
53 53
 | openssl-1.1.1a-tls13_draft.patch | Enable TLS 1.3 draft 23, 26, 28, final. |
54 54
 | openssl-1.1.1a-tls13_nginx_config.patch | You can set TLS 1.3 ciphere in nginx. ex) TLS13+AESGCM+AES128 |
55
+| 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 "("  |
55 56
 
56 57
 **The "_ciphers" patch file is a temporary change to the TLS 1.3 configuration.**
57 58
 

+ 19
- 0
openssl-3.0.0-dev_version_error.patch View File

@@ -0,0 +1,19 @@
1
+diff --git a/include/openssl/opensslv.h b/include/openssl/opensslv.h
2
+index 7634eb14cd..cacf3e2ef1 100644
3
+--- a/include/openssl/opensslv.h
4
++++ b/include/openssl/opensslv.h
5
+@@ -130,11 +130,11 @@ const char *OPENSSL_version_build_metadata(void);
6
+ #  else
7
+ #   define _OPENSSL_VERSION_PRE_RELEASE 0xf
8
+ #  endif
9
+-#  define OPENSSL_VERSION_NUMBER        \
10
+-    (long)( (OPENSSL_VERSION_MAJOR<<28)  \
11
++#  define OPENSSL_VERSION_NUMBER        \
12
++          ( (OPENSSL_VERSION_MAJOR<<28)  \
13
+             |(OPENSSL_VERSION_MINOR<<20) \
14
+             |(OPENSSL_VERSION_PATCH<<4)  \
15
+-            |_OPENSSL_VERSION_PRE_RELEASE )
16
++            |_OPENSSL_VERSION_PRE_RELEASE )
17
+ # endif
18
+ 
19
+ # ifdef  __cplusplus

Loading…
Cancel
Save