Fossil SCM

Disable the use of the OpenSSL implementation of MD5, which is deprecated as of OpenSSL 3.0.0.

drh 2021-10-29 14:31 trunk
Commit a517c30c794adb8e03bd4c69e642a869a3080bb2999f21f5c4483b9d683fb1cd
1 file changed +4 -1
+4 -1
--- src/md5.c
+++ src/md5.c
@@ -22,11 +22,14 @@
2222
#include <string.h>
2323
#include <stdio.h>
2424
#include <sqlite3.h>
2525
#include "md5.h"
2626
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 */
2831
2932
# include <openssl/md5.h>
3033
# define MD5Context MD5_CTX
3134
# define MD5Init MD5_Init
3235
# define MD5Update MD5_Update
3336
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button