Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Commit 0c70d48

Browse files
committed
QUIC: Add compile/run-time checking for QUIC
Different from 3.0.0 as there's no OpenSSL_info()
1 parent 2654329 commit 0c70d48

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

crypto/cversion.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ const char *OpenSSL_version(int t)
3838
return "ENGINESDIR: \"" ENGINESDIR "\"";
3939
#else
4040
return "ENGINESDIR: N/A";
41+
#endif
42+
#ifndef OPENSSL_NO_QUIC
43+
case OPENSSL_INFO_QUIC:
44+
return "QUIC";
4145
#endif
4246
}
4347
return "not available";

include/openssl/crypto.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ const char *OpenSSL_version(int type);
161161
# define OPENSSL_DIR 4
162162
# define OPENSSL_ENGINES_DIR 5
163163

164+
# ifndef OPENSSL_NO_QUIC
165+
# define OPENSSL_INFO_QUIC 2000
166+
# endif
167+
164168
int OPENSSL_issetugid(void);
165169

166170
typedef void CRYPTO_EX_new (void *parent, void *ptr, CRYPTO_EX_DATA *ad,

0 commit comments

Comments
 (0)