Skip to content

Commit

Permalink
Fix OpenSSL 1.0 support
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
sgallagher committed Jan 9, 2020
1 parent 4e3482b commit 3156511
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/sscg.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <errno.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/uierr.h>
#include <openssl/ui.h>
#include <stdbool.h>
#include <talloc.h>
#include <stdint.h>
Expand Down Expand Up @@ -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 \
{ \
Expand Down

0 comments on commit 3156511

Please sign in to comment.