From 3156511926039327036f188c346ad3abdd58c6cc Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Wed, 8 Jan 2020 22:44:51 -0500 Subject: [PATCH] Fix OpenSSL 1.0 support The symbol UI_F_UI_SET_RESULT changed to UI_F_UI_SET_RESULT_EX in OpenSSL 1.1, but no other semantics changed that we care about. Signed-off-by: Stephen Gallagher --- include/sscg.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/sscg.h b/include/sscg.h index 5d46a52..96b7815 100644 --- a/include/sscg.h +++ b/include/sscg.h @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include #include @@ -82,6 +82,11 @@ } \ while (0) +/* The function changed in 1.1, but the library and reason names did not */ +#ifndef UI_F_UI_SET_RESULT_EX +#define UI_F_UI_SET_RESULT_EX UI_F_UI_SET_RESULT +#endif + #define CHECK_SSL(_sslret, _fn) \ do \ { \