Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: [Ethereal-dev] Deprecating asn1.[hc]

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Wed, 29 Sep 2004 09:17:09 +0200
IIRC there was a discussion a while ago that asn1.[hc] should not be used
any more for new projects and that one day dissectors using the old interface
should be migrated. How about adding a #warning to asn1.h telling potential
users about this?

It might go like this, but I don't know about portability and whether you
like the idea of getting the warning for the existing dissectors too:

--- asn1.h      (revision 12132)
+++ asn1.h      (working copy)
@@ -30,6 +30,8 @@
 #ifndef __ASN1_H__
 #define __ASN1_H__

+#warning "The use of asn1.[hc] is deprecated. Please consider using the new API in packet-ber.[hc]"
+
 #define ASN1_UNI       0     /* Universal   */
 #define ASN1_APL       1     /* Application */
 #define ASN1_CTX       2     /* Context     */


 Ciao
    Joerg
-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.