X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Flibtasn1.h;h=92ef0ef400b02fdbbc3b49eeae97fd9e32d36aa7;hb=44a4680d83fe4ff732e4e1b826c987bc5d67bd1c;hp=92ae54eb4e55a1bea0e59b972dbb606948bb1988;hpb=02d59b37540609c0be510642a8eb0f72799ca6c6;p=platform%2Fupstream%2Flibtasn1.git diff --git a/lib/libtasn1.h b/lib/libtasn1.h index 92ae54e..92ef0ef 100644 --- a/lib/libtasn1.h +++ b/lib/libtasn1.h @@ -46,6 +46,17 @@ extern "C" #define ASN1_VERSION "3.5" +#if defined(__GNUC__) && !defined(ASN1_INTERNAL_BUILD) +# define _ASN1_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) +# if _ASN1_GCC_VERSION >= 30100 +# define _ASN1_GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__)) +# endif +#endif + +#ifndef _ASN1_GCC_ATTR_DEPRECATED +#define _ASN1_GCC_ATTR_DEPRECATED +#endif + /*****************************************/ /* Errors returned by libtasn1 functions */ /*****************************************/ @@ -251,11 +262,12 @@ extern "C" asn1_der_decoding (asn1_node * element, const void *ider, int len, char *errorDescription); + /* Do not use. Use asn1_der_decoding() instead. */ extern ASN1_API int asn1_der_decoding_element (asn1_node * structure, const char *elementName, const void *ider, int len, - char *errorDescription); + char *errorDescription) _ASN1_GCC_ATTR_DEPRECATED; extern ASN1_API int asn1_der_decoding_startEnd (asn1_node element,