wireshark/epan/nghttp2
Tatsuhiro Tsujikawa f45733b7b5 NGHTTP2: Fix warning this decimal constant is unsigned only in ISO C90
Backport patch from 1.3.4 (Available soon)

Change-Id: I32565835a3be78a9eeea2cf4f4d7d4825de9aa40
Signed-off-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-on: https://code.wireshark.org/review/10638
2015-09-24 15:14:34 +00:00
..
Makefile.am Fix the patch-bzip2 target. 2014-09-16 20:16:26 +00:00
Makefile.common epan/nghttp2/nghttp2_net.h no longer exists, so don't list it. 2015-05-08 07:16:06 +00:00
Makefile.nmake Add '*.nativecodeanalysis.xml' to 'clean' targets 2015-01-02 01:45:16 +00:00
README.nghttp2 HTTP2: Update to libnghttp2 1.1.2 2015-07-23 07:46:10 +00:00
nghttp2.h NGHTTP2: Update to 1.3.0 2015-08-31 17:51:50 +00:00
nghttp2_buf.c NGHTTP2: Update to 1.3.3 2015-09-24 05:48:20 +00:00
nghttp2_buf.h NGHTTP2: Update to 1.3.3 2015-09-24 05:48:20 +00:00
nghttp2_hd.c NGHTTP2: Fix warning this decimal constant is unsigned only in ISO C90 2015-09-24 15:14:34 +00:00
nghttp2_hd.h NGHTTP2: Update to 1.3.3 2015-09-24 05:48:20 +00:00
nghttp2_hd_huffman.c NGHTTP2: Update to 1.3.3 2015-09-24 05:48:20 +00:00
nghttp2_hd_huffman.h NGHTTP2: Update to 1.3.3 2015-09-24 05:48:20 +00:00
nghttp2_hd_huffman_data.c HTTP2: Update nghttp2 lib (0.6.7) 2014-12-15 07:58:36 +00:00
nghttp2_helper.c NGHTTP2: Update to 1.3.3 2015-09-24 05:48:20 +00:00
nghttp2_helper.h NGHTTP2: Update to 1.3.3 2015-09-24 05:48:20 +00:00
nghttp2_int.h HTTP2: Update to libnghttp2 0.7.13 2015-04-30 20:02:43 +00:00
nghttp2_mem.c Update to libnghttp2 0.7.1 2015-01-15 08:34:38 +00:00
nghttp2_mem.h Update to libnghttp2 0.7.1 2015-01-15 08:34:38 +00:00
nghttp2ver.h NGHTTP2: Update to 1.3.3 2015-09-24 05:48:20 +00:00

README.nghttp2

Code from nghttp2 library ( https://github.com/tatsuhiro-t/nghttp2)
Thanks for Tatsuhiro Tsujikawa for permission to use nghttp2 lib.

Update library from source

download (clone) last release of nghttp2
and in folder epan/nghttp2 copy following file

cp ../../../nghttp2/lib/nghttp2_buf.[ch] .
cp ../../../nghttp2/lib/nghttp2_hd*.[ch] .
cp ../../../nghttp2/lib/nghttp2_helper.[ch] .
cp ../../../nghttp2/lib/nghttp2_int.h .
cp ../../../nghttp2/lib/nghttp2_mem.[ch] .
cp ../../../nghttp2/lib/includes/nghttp2/nghttp2.h .
cp ../../../nghttp2/lib/includes/nghttp2/nghttp2ver.h .

Change path to nghttp2.h
find . -name "nghttp2*" -type f -exec sed -i 's/<nghttp2\/nghttp2.h>/<nghttp2.h>/g'  {} \;

Change path to nghttp2ver.h
find . -name "nghttp2*" -type f -exec sed -i 's/<nghttp2\/nghttp2ver.h>/"nghttp2ver.h"/g'  {} \;

Change ntoh[ls], hton[ls] to use g_ntoh[ls], g_hton[ls] from glib
find . -name "nghttp2*" -type f -exec sed -i 's/ntoh/g_ntoh/g'  {} \;
find . -name "nghttp2*" -type f -exec sed -i 's/hton/g_hton/g'  {} \;

Use glib.h and no nghttp2_net.h for ntoh/hton
find . -name "nghttp2*" -type f -exec sed -i 's/"nghttp2_net.h"/<glib.h>/g'  {} \;

Fix c++-compat error and documentation (struct => typedef) error

in nghttp2/nghttp2.h

Add on the top
#include <config.h>

After
#define NGHTTP2_EXTERN
 #endif /* !defined(WIN32) */

Add
/*
 * When we're building this as part of Wireshark, we want to treat
 * all these routines as internal to libwireshark.
 */

#include "ws_symbol_export.h"

#undef NGHTTP2_EXTERN
#define NGHTTP2_EXTERN WS_DLL_LOCAL