apache / trafficserver

Apache Traffic Serverâ„¢ is a fast, scalable and extensible HTTP/1.1 and HTTP/2 compliant caching proxy server.
https://trafficserver.apache.org/
Apache License 2.0
1.81k stars 804 forks source link

Can't compile with --enable-fips option #3303

Closed maskit closed 6 years ago

maskit commented 6 years ago
In file included from ink_code.cc:27:
../../lib/ts/INK_MD5.h:34:3: error: unknown type name 'MD5_CTX'
  MD5_CTX _ctx;
maskit commented 6 years ago

I could compile ink_code.cc with this patch but got another error.

diff --git a/lib/ts/ink_code.cc b/lib/ts/ink_code.cc
index 11d16fa4d..d4907063c 100644
--- a/lib/ts/ink_code.cc
+++ b/lib/ts/ink_code.cc
@@ -24,7 +24,10 @@
 #include <cstring>
 #include <cstdio>
 #include "ts/ink_code.h"
+#include "ts/CryptoHash.h"
+#if TS_ENABLE_FIPS == 0
 #include "ts/INK_MD5.h"
+#endif
 #include "ts/ink_assert.h"
jtest/jtest.cc:3457:3: error: use of undeclared identifier 'ink_code_md5'
  ink_code_md5((unsigned char *)url, l, u.md5);

I guess #3236 is the cause.