summaryrefslogtreecommitdiff
path: root/lib/version.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-09-03 23:17:06 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-09-04 22:29:38 +0200
commitac487842a18d77d31baee49a9dc022aa306b2ea1 (patch)
tree3a72adbe69a227684986332312a20a5b5ac74546 /lib/version.c
parent06b6e1d0d27dab4927f367afb9139ed5bf663153 (diff)
downloadcurl-ac487842a18d77d31baee49a9dc022aa306b2ea1.tar.gz
http2: add http2.[ch] and add nghttp2 version output
Diffstat (limited to 'lib/version.c')
-rw-r--r--lib/version.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/version.c b/lib/version.c
index 299e36625..1f62131eb 100644
--- a/lib/version.c
+++ b/lib/version.c
@@ -25,6 +25,7 @@
#include <curl/curl.h>
#include "urldata.h"
#include "sslgen.h"
+#include "http2.h"
#define _MPRINTF_REPLACE /* use the internal *printf() functions */
#include <curl/mprintf.h>
@@ -122,6 +123,11 @@ char *curl_version(void)
left -= len;
ptr += len;
#endif
+#ifdef USE_NGHTTP2
+ len = Curl_http2_ver(ptr, left);
+ left -= len;
+ ptr += len;
+#endif
#ifdef USE_LIBRTMP
{
char suff[2];
@@ -275,6 +281,9 @@ static curl_version_info_data version_info = {
#if defined(USE_TLS_SRP)
| CURL_VERSION_TLSAUTH_SRP
#endif
+#if defined(USE_NGHTTP2)
+ | CURL_VERSION_HTTP2
+#endif
,
NULL, /* ssl_version */
0, /* ssl_version_num, this is kept at zero */