Skip to content

Commit

Permalink
QUIC: Add compile/run-time checking for QUIC
Browse files Browse the repository at this point in the history
Different from 3.0.0 as there's no OpenSSL_info()
  • Loading branch information
tmshort committed Mar 8, 2021
1 parent 2654329 commit 0c70d48
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crypto/cversion.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ const char *OpenSSL_version(int t)
return "ENGINESDIR: \"" ENGINESDIR "\"";
#else
return "ENGINESDIR: N/A";
#endif
#ifndef OPENSSL_NO_QUIC
case OPENSSL_INFO_QUIC:
return "QUIC";
#endif
}
return "not available";
Expand Down
4 changes: 4 additions & 0 deletions include/openssl/crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ const char *OpenSSL_version(int type);
# define OPENSSL_DIR 4
# define OPENSSL_ENGINES_DIR 5

# ifndef OPENSSL_NO_QUIC
# define OPENSSL_INFO_QUIC 2000
# endif

int OPENSSL_issetugid(void);

typedef void CRYPTO_EX_new (void *parent, void *ptr, CRYPTO_EX_DATA *ad,
Expand Down

0 comments on commit 0c70d48

Please sign in to comment.