From 29de8baed54d33d30732dae602ca1d035942a622 Mon Sep 17 00:00:00 2001 From: Martin Kaiser Date: Thu, 21 Feb 2013 22:24:43 +0000 Subject: [PATCH] mention gcrypt wrapper in README.developer svn path=/trunk/; revision=47812 --- doc/README.developer | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/README.developer b/doc/README.developer index 1b8ca452cd..028571b149 100644 --- a/doc/README.developer +++ b/doc/README.developer @@ -438,6 +438,11 @@ platform-dependent implementations and platform-independent APIs, such as the routines in epan/filesystem.c, allowing the code that calls it to be written portably without #ifdefs. +Wireshark uses libgcrypt as general-purpose crypto library. To use it from +your dissector, protect libgcrypt calls with #ifdef HAVE_LIBGCRYPT. Don't +include gcrypt.h directly, include the wrapper file wsutil/wsgcrypt.h +instead. + 1.1.2 String handling Do not use functions such as strcat() or strcpy().