Skip to content

Commit

Permalink
Using openssl/ossl_typ.h if openssl/types.h is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
COM8 committed Dec 27, 2023
1 parent 172d1dc commit 3afce76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpr/ssl_ctx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@
// openssl/types.h was added in later version of openssl and is therefore not always available.
// This is for example the case on Ubuntu 20.04.
// We try to include it if available to satisfy clang-tidy.
// Ref: https://github.com/openssl/openssl/commit/50cd4768c6b89c757645f28519236bb989216f8d
#if __has_include(<openssl/types.h>)
#include <openssl/types.h>
#else
#include <openssl/ossl_typ.h>
#endif

namespace cpr {
Expand Down

0 comments on commit 3afce76

Please sign in to comment.