freebsd-ports/security/libgcrypt/files/patch-src__gcrypt.h.in
Roman Bogorodskiy 898c7be42e - Properly define deprecated functions to remove warnings in other
ports
- Avoid installing multiple copies of the GPLv2 and LGPL21 licenses
- Bump PORTREVISION

PR:		170488
Submitted by:	Jason E. Hale <bsdkaffee@gmail.com>
Approved by:	Hirohisa Yamaguchi (maintainer)
2012-08-25 08:33:55 +00:00

19 lines
568 B
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--- ./src/gcrypt.h.in.orig 2012-08-08 07:35:27.000000000 -0400
+++ ./src/gcrypt.h.in 2012-08-08 07:37:47.000000000 -0400
@@ -1248,7 +1248,7 @@
number. */
gcry_error_t gcry_md_list (int *list, int *list_length);
-
+#if !defined(GCRYPT_NO_DEPRECATED) || defined(_GCRYPT_IN_LIBGCRYPT)
/* Alternative interface for asymmetric cryptography. This interface
is deprecated. */
@@ -1401,6 +1401,7 @@
gcry_md_algo_t md;
} gcry_ac_ssa_pkcs_v1_5_t _GCRY_ATTR_INTERNAL;
+#endif
#ifndef GCRYPT_NO_DEPRECATED
/* Returns a new, empty data set in DATA. */