http2: add http2.[ch] and add nghttp2 version output

This commit is contained in:
Daniel Stenberg 2013-09-03 23:17:06 +02:00
parent 06b6e1d0d2
commit ac487842a1
4 changed files with 84 additions and 3 deletions

View file

@ -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];
@ -274,6 +280,9 @@ static curl_version_info_data version_info = {
#endif
#if defined(USE_TLS_SRP)
| CURL_VERSION_TLSAUTH_SRP
#endif
#if defined(USE_NGHTTP2)
| CURL_VERSION_HTTP2
#endif
,
NULL, /* ssl_version */