← Commit list

a55f160b13

Viktor Szakats
Viktor Szakats
2026-02-15
SUCCESS Duration: 350s

Subject

src: simplify declaring `curl_ca_embed`

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

src/config2setopts.c+0 -7
@@ -222,13 +222,6 @@ static CURLcode ssh_setopts(struct OperationConfig *config, CURL *curl)
return CURLE_OK; /* ignore if SHA256 did not work */
}
-#ifdef CURL_CA_EMBED
-#ifndef CURL_DECLARED_CURL_CA_EMBED
-#define CURL_DECLARED_CURL_CA_EMBED
-extern const unsigned char curl_ca_embed[];
-#endif
-#endif
-
static long tlsversion(unsigned char mintls,
unsigned char maxtls)
{
src/mk-file-embed.pl+2 -4
@@ -39,10 +39,8 @@ print <<HEAD
* NEVER EVER edit this manually, fix the mk-file-embed.pl script instead!
*/
/* !checksrc! disable COPYRIGHT all */
-#ifndef CURL_DECLARED_${varname_upper}
-#define CURL_DECLARED_${varname_upper}
-extern const unsigned char ${varname}[];
-#endif
+#include "tool_setup.h"
+
const unsigned char ${varname}[] = {
HEAD
;
src/tool_operate.c+0 -7
@@ -86,13 +86,6 @@
CURL_EXTERN CURLcode curl_easy_perform_ev(CURL *easy);
#endif
-#ifdef CURL_CA_EMBED
-#ifndef CURL_DECLARED_CURL_CA_EMBED
-#define CURL_DECLARED_CURL_CA_EMBED
-extern const unsigned char curl_ca_embed[];
-#endif
-#endif
-
#define CURL_CA_CERT_ERRORMSG \
"More details here: https://curl.se/docs/sslcerts.html\n\n" \
"curl failed to verify the legitimacy of the server and therefore " \
src/tool_setup.h+4 -0
@@ -98,4 +98,8 @@ int tool_ftruncate64(int fd, curl_off_t where);
#endif /* !HAVE_FTRUNCATE */
#endif /* _WIN32 */
+#ifdef CURL_CA_EMBED
+extern const unsigned char curl_ca_embed[];
+#endif
+
#endif /* HEADER_CURL_TOOL_SETUP_H */