diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-03-27 08:26:23 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-03-27 08:26:23 +0000 |
commit | 0b5adee493e1213ea2eacf78ab2b8bca1b4f85a3 (patch) | |
tree | 0209161bc03e69e10a884e21c83b343634c57f58 | |
parent | 73927243e74356ee055a1b77f0c3a23eb78e7d89 (diff) |
Note that we may want to add support for the constructed encoding of
octet strings, as well as the primitive encoding (if we ever run into a
protocol where the constructed encoding is allowed).
svn path=/trunk/; revision=1751
-rw-r--r-- | asn1.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* asn1.c * Routines for ASN.1 BER dissection * - * $Id: asn1.c,v 1.3 2000/01/15 00:22:29 gram Exp $ + * $Id: asn1.c,v 1.4 2000/03/27 08:26:23 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -700,6 +700,7 @@ asn1_octet_string_decode ( ASN1_SCK *asn1, guchar **octets, guint *str_len, if (ret != ASN1_ERR_NOERROR) goto done; if (cls != ASN1_UNI || con != ASN1_PRI || tag != ASN1_OTS) { + /* XXX - handle the constructed encoding? */ ret = ASN1_ERR_WRONG_TYPE; goto done; } @@ -865,7 +866,7 @@ done: * ( * ASN1_SCK *asn1, * guint *seq_len, - * guint *nbytes, + * guint *nbytes * ) * DESCRIPTION: Decodes header for SEQUENCE. * Parameters: |