Fossil SCM
Disable the use of the OpenSSL implementation of MD5, which is deprecated as of OpenSSL 3.0.0.
Commit
a517c30c794adb8e03bd4c69e642a869a3080bb2999f21f5c4483b9d683fb1cd
Parent
6389c999cee8e07…
1 file changed
+4
-1
+4
-1
| --- src/md5.c | ||
| +++ src/md5.c | ||
| @@ -22,11 +22,14 @@ | ||
| 22 | 22 | #include <string.h> |
| 23 | 23 | #include <stdio.h> |
| 24 | 24 | #include <sqlite3.h> |
| 25 | 25 | #include "md5.h" |
| 26 | 26 | |
| 27 | -#ifdef FOSSIL_ENABLE_SSL | |
| 27 | +#if 0 /* defined FOSSIL_ENABLE_SSL */ | |
| 28 | + | |
| 29 | +/* MD5 is deprecated in OpenSSL. So we have to fall back to our own | |
| 30 | +** implementation */ | |
| 28 | 31 | |
| 29 | 32 | # include <openssl/md5.h> |
| 30 | 33 | # define MD5Context MD5_CTX |
| 31 | 34 | # define MD5Init MD5_Init |
| 32 | 35 | # define MD5Update MD5_Update |
| 33 | 36 |
| --- src/md5.c | |
| +++ src/md5.c | |
| @@ -22,11 +22,14 @@ | |
| 22 | #include <string.h> |
| 23 | #include <stdio.h> |
| 24 | #include <sqlite3.h> |
| 25 | #include "md5.h" |
| 26 | |
| 27 | #ifdef FOSSIL_ENABLE_SSL |
| 28 | |
| 29 | # include <openssl/md5.h> |
| 30 | # define MD5Context MD5_CTX |
| 31 | # define MD5Init MD5_Init |
| 32 | # define MD5Update MD5_Update |
| 33 |
| --- src/md5.c | |
| +++ src/md5.c | |
| @@ -22,11 +22,14 @@ | |
| 22 | #include <string.h> |
| 23 | #include <stdio.h> |
| 24 | #include <sqlite3.h> |
| 25 | #include "md5.h" |
| 26 | |
| 27 | #if 0 /* defined FOSSIL_ENABLE_SSL */ |
| 28 | |
| 29 | /* MD5 is deprecated in OpenSSL. So we have to fall back to our own |
| 30 | ** implementation */ |
| 31 | |
| 32 | # include <openssl/md5.h> |
| 33 | # define MD5Context MD5_CTX |
| 34 | # define MD5Init MD5_Init |
| 35 | # define MD5Update MD5_Update |
| 36 |