From owner-imc-snacc Mon Apr 17 06:37:14 2000 Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id GAA02013 for imc-snacc-bks; Mon, 17 Apr 2000 06:37:14 -0700 (PDT) Received: from wfhqex05.wangfed.com (netva01.wangfed.com [206.137.100.2]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id GAA02009 for ; Mon, 17 Apr 2000 06:37:12 -0700 (PDT) Received: by wfhqex05.wangfed.com with Internet Mail Service (5.5.2650.21) id ; Mon, 17 Apr 2000 09:40:48 -0400 Message-ID: <33BD629222C0D211B6DB0060085ACF31965D93@wfhqex01.wangfed.com> From: "Pawling, John" To: "'imc-snacc@imc.org'" Subject: SNACC ASN.1 Freeware Release & Mail List Date: Mon, 17 Apr 2000 09:40:43 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: All, J. G. Van Dyke and Associates (VDA), a Wang Government Services Company, has delivered an enhanced version of the freeware SNACC v1.3 rev 0.07 Abstract Syntax Notation.1 (ASN.1) Compiler and Library. In past releases, VDA enhanced the C++ version of the SNACC library to implement the Distinguished Encoding Rules (DER). In the new release, VDA enhanced the C and C++ versions of the SNACC library to support PrintableString, TeletexString, NumericString, IA5String, VisibileString, BMPString, UniversalString and UTF8String character string types. We added an optional function to SNACC that can be used to convert ASN.1 OCTET STRINGs to single- or multi-byte character strings (as appropriate). This is needed to support the RFC 2459 PKIX requirements. The SNACC enhancement is completely optional and does not impact existing code that uses SNACC. The SNACC library decodes an object as it always has. If the application/library needs the ASN.1 OCTET STRINGs converted to character strings, then it calls the new SNACC function/class to perform the conversion. If an application/library does not need the ASN.1 OCTET STRINGs converted, then it does not need to call the conversion function/classes and can use the SNACC-generated structures/classes as always. The VDA-enhanced SNACC compiler and C++ library is available along with the S/MIME Freeware Library (SFL) that uses SNACC to implement the S/MIME v3 set of specifications. The snacc1_6VDA.zip file contains the SNACC v1.3 rev 0.07 ASN.1 Compiler and C++ Library source code compilable for Unix and MS Windows NT/95/98/2000. The VDA-enhanced SNACC C library is available along with the freeware Certificate Management Library (CML) that uses SNACC to implement the 1997 X.509 Recommendation and RFC 2459. The CML17sr.tar.Z file includes the source code for the CML and VDA-enhanced SNACC C library compilable for Unix and MS Windows NT/95/98/2000. We plan to consolidate the enhancements made by VDA to the C and C++ versions of the SNACC source code into a single baseline that can be delivered in a single tar/zip file. In the new release, we also corrected a bug in the DEC_LOAD_ANYBUF macro. We changed "bytesDecoded" to "bytesDecodedXX" to avoid conflict other SNACC uses of the "bytesDecoded" variable. We also enhanced the AsnOid method so that it accepts a dynamic number of components within an object identifier. SNACC implements the majority of ASN.1 encoding/decoding rules. SNACC does not support all of the latest ASN.1 features, but there are work-arounds that allow SNACC to be used to produce ASN.1 hex encodings that are identical to those produced by ASN.1 libraries that do support the latest ASN.1 features. Also note that many of the PKIX specs, such as RFC 2459, include 1988-compliant ASN.1 syntax modules which can be directly compiled using SNACC. The SNACC ASN.1 library is totally unencumbered as stated in the SFL Public License. All source code for the VDA-enhanced SNACC software is being provided at no cost and with no financial limitations regarding its use and distribution. Organizations can use the VDA-enhanced SNACC software without paying any royalties or licensing fees. The Internet Mail Consortium (IMC) has established a SNACC web page . The IMC has also established a SNACC mail list which is used to: distribute information regarding SNACC releases; discuss SNACC-related issues; and provide a means for SNACC users to provide feedback, comments, bug reports, etc. Subscription information for the imc-snacc mail list is at the IMC web site listed above. VDA welcomes all feedback regarding the VDA-enhanced SNACC software. If bugs are reported, then VDA will investigate each reported bug and, if required, will produce a patch or an updated release of the software to repair the bug. We recommend that comments should be sent to the imc-snacc mail list. We will respond to all messages on that list. ============================================ John Pawling, Director - Systems Engineering J.G. Van Dyke & Associates, Inc; a Wang Government Services Company john.pawling@wang.com ============================================ From owner-imc-snacc Tue Apr 18 10:02:51 2000 Received: by ns.secondary.com (8.9.3/8.9.3) id KAA06449 for imc-snacc-bks; Tue, 18 Apr 2000 10:02:51 -0700 (PDT) Received: from wfhqex05.wangfed.com (netva01.wangfed.com [206.137.100.2]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id KAA06445 for ; Tue, 18 Apr 2000 10:02:50 -0700 (PDT) Received: by wfhqex05.wangfed.com with Internet Mail Service (5.5.2650.21) id ; Tue, 18 Apr 2000 13:06:32 -0400 Message-ID: <33BD629222C0D211B6DB0060085ACF31965DBA@wfhqex01.wangfed.com> From: "Pawling, John" To: "Pawling, John" Subject: v1.6 SFL/SNACC Patch Files Date: Tue, 18 Apr 2000 13:06:21 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: All, A bug has been reported in the v1.6 S/MIME Freeware Library (SFL) and accompanying SNACC C++ library. We strongly recommend that the patch files (described below) should be immediately incorporated into your local version of the SFL and SNACC C++ software. Much thanks to Dan Teodosescu, Foliage Software Systems, for reporting this bug. We encourage all feedback related to the SFL and SNACC software. We made the changes in the SFL and SNACC C++ baseline software as described below and successfully tested the corrected software. The corrected SFL and SNACC C++ source code files are stored on the Fortezza Developer's S/MIME Page under "sflpatch 4/18/00". We do not plan to deliver a new release of the SFL and SNACC C++ software solely to fix this bug. This bug does not impact the Certificate Management Library. We added the following text to the SFL Problem Report File available in the "sflpatch 4/18/00" zip file: SFL PROBLEM REPORT FILE 17 April 2000 This file documents errors in the v1.6 S/MIME Freeware Library (SFL) that have not yet been included in a new release of the SFL. ====================================================================== Problem Report #1 File(s) Affected: sm_buffer.h, sm_vdasnacc.cpp, sm_buffer.cpp, vdatest.cpp Date Reported: 12 April 2000 Problem Description: When the v1.6 SFL is used to create a signedData object larger than 16K bytes, then temporary files containing the signedData object are not removed from the root directory of the working drive. Platform(s) affected: All Resolution: SNACC was leaving temporary files in the root directory when any object larger than 16K was ASN.1 encoded. The sm_buffer.h, sm_vdasnacc.cpp, sm_buffer.cpp, vdatest.cpp patch files fix the problem. These files belong in the SNACC release c++-lib inc and src directories. The file "sm_buffer.h" MUST also be copied to the sfl directory "./include/snacc/c++" to be effective. There will be a few SFL baseline build errors due to the CSM_Buffer update; on each error add "(size_t)" override on the CSM_Buffer constructor parameter (there are only 8 or so errors). Baseline Source Code Fixed and Tested: 17 April 2000 For more information, contact: ============================================ John Pawling, Director - Systems Engineering J.G. Van Dyke & Associates, Inc; a Wang Government Services Company john.pawling@wang.com ============================================ From owner-imc-snacc Fri Jul 14 14:06:37 2000 Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id OAA15012 for imc-snacc-bks; Fri, 14 Jul 2000 14:06:37 -0700 (PDT) Received: from wfhqex05.wangfed.com (netva01.wangfed.com [206.137.100.2]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id OAA15008 for ; Fri, 14 Jul 2000 14:06:36 -0700 (PDT) Received: by wfhqex05.wangfed.com with Internet Mail Service (5.5.2650.21) id <3GNFB4P4>; Fri, 14 Jul 2000 17:07:41 -0400 Message-ID: <4B0D36365AD3D2118FF40060972A16C0016D013F@wfhqex01.wangfed.com> From: "Pawling, John" To: "Pawling, John" Subject: v1.3 Enhanced SNACC ASN.1 Freeware Release Date: Fri, 14 Jul 2000 17:07:42 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: All, Wang Government Services, Inc. (WGSI), A Getronics Company, has delivered the v1.3 Enhanced SNACC Abstract Syntax Notation.1 (ASN.1) Compiler, C++ library and C library source code compilable for Sun Solaris 2.7 and Microsoft Windows NT/95/98/2000. The source code and the Enhanced SNACC Software Public License are freely available to everyone from: . In past releases, WGSI enhanced the C++ version of the SNACC library to implement the Distinguished Encoding Rules (DER). In the v1.3 SNACC release, WGSI included the following enhancements in SNACC: 1) Completed merging SNACC C and C++ enhancements made by U.S. Government and WGSI into a single source code baseline that we have delivered in a single tar file. 2) Added DER source code developed by Australian OSCAR project to SNACC C library. 3) Reconstructed and tested SNACC baseline so that all changes are documented using SourceSafe configuration management tool. 4) Resolved inconsistencies in how string types were implemented (imported versus internal) in C and C++ SNACC libraries. Changed SNACC C++ library to use same internal representation used by SNACC C library. 5) Tested C and C++ SNACC libraries on MS Windows and Solaris 2.7. 6) Tested v1.3 SNACC compiler and C++ library with the v1.7 S/MIME Freeware Library (SFL) that uses SNACC to implement the IETF S/MIME v3 set of specifications. 7) Tested v1.3 SNACC compiler, C and C++ libraries with the freeware v1.71 Certificate Management Library (CML) that uses SNACC to implement the 1997 X.509 Recommendation and RFC 2459. 8) Tested v1.3 SNACC compiler and C++ library with the freeware v1.3 Access Control Library (ACL) that uses SNACC to provide automated access control. SNACC implements the majority of ASN.1 encoding/decoding rules. SNACC does not support all of the latest ASN.1 features, but there are work-arounds that allow SNACC to be used to produce ASN.1 hex encodings that are identical to those produced by ASN.1 libraries that do support the latest ASN.1 features. Also note that many of the PKIX specs, such as RFC 2459, include 1988-compliant ASN.1 syntax modules which can be directly compiled using SNACC. The SNACC ASN.1 library is totally unencumbered as stated in the Enhanced SNACC Software Public License. All source code for the Enhanced SNACC software is being provided at no cost and with no financial limitations regarding its use and distribution. Organizations can use the Enhanced SNACC software without paying any royalties or licensing fees. The Internet Mail Consortium (IMC) has established a SNACC web page . The IMC has also established a SNACC mail list which is used to: distribute information regarding SNACC releases; discuss SNACC-related issues; and provide a means for SNACC users to provide feedback, comments, bug reports, etc. Subscription information for the imc-snacc mail list is at the IMC web site listed above. WGSI welcomes all feedback regarding the Enhanced SNACC software. If bugs are reported, then we will investigate each reported bug and, if required, will produce a patch or an updated release of the software to repair the bug. This SNACC release announcement was sent to several mail lists, but please send all messages regarding the Enhanced SNACC software to the imc-snacc mail list ONLY. Please do not send messages regarding the Enhanced SNACC software to any of the IETF mail lists. We will respond to all messages sent to the imc-snacc mail list. ============================================ John Pawling, john.pawling@wang.com Wang Government Services, Inc., A Getronics Company ============================================ From owner-imc-snacc Thu Sep 14 09:31:19 2000 Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id JAA25387 for imc-snacc-bks; Thu, 14 Sep 2000 09:31:19 -0700 (PDT) Received: from exch-bhs-2.redstone.army.mil (exch-bhs-2.redstone.army.mil [136.205.13.50]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id JAA25383 for ; Thu, 14 Sep 2000 09:31:16 -0700 (PDT) Received: by exch-bhs-2.redstone.army.mil with Internet Mail Service (5.5.2448.0) id ; Thu, 14 Sep 2000 11:35:00 -0500 Message-ID: <1345B59AC3C5D211975E00A0C99DAC7A01B67559@exch-msg-6> From: "Nord, John D Contractor/NCCIM" To: "'imc-snacc'" Subject: little endian bug? Date: Thu, 14 Sep 2000 11:34:07 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: I wasn't sure which list to send this to. I was thinking about sending it to all three (SNACC, SFL, and CML), but that would probably make a lot of people get three copies of it. The problem occurs in the SNACC library, but involves the SFL and CML as well. Description of bug: I'm using the DOD PKCS#12 file from the "email" link on web page http://www.disa.mil/infosec/pki-int.html. I'm using the SFL to create P7M files, and the CML to store certificates on a Windows platform. I noticed that the certificate from the P12 file (CN=Nimeh.Jamil.Joseph...) was getting added to the CML database twice. Everything about the two certificates in the CML database looked identical. However, a close inspection reveals that the certificates differ in one byte. The first byte of the certificate signature, which should be a leading '0', is correctly '0' in one certificate, but is '1' in the other certificate. The invalid certificate came from one of the P7M files created by the SFL. When the P7M file is created, the certificate is incorrectly encoded with a leading '1' instead of a leading '0' in front of the certificate signature. When my application opens the P7M, the signer's certificate (the invalid one in the P7M) is added to the CML database, so that both the valid and invalid certificates are now present. The call stack at the point at which the signature is encoded is: AsnBits::BEncContent(AsnBuf & {...}) Certificate::BEncContent(AsnBuf & {...}) CertificateChoices::BEncContent(AsnBuf & {...}) CertificateSet::BEncContent(AsnBuf & {...}) SignedData::BEncContent(AsnBuf & {...}) SignedData::BEnc(AsnBuf & {...}) SignedData::BEncPdu(AsnBuf & {...}, unsigned int &) CSM_DataToSign::Sign(CSMIME *, CSM_MsgCertCrls *, CSM_Buffer * &) CSM_MsgToSign::UpdateSignedDataSIs(CSMIME *) CSM_MsgToSign::Sign(CSMIME *) At the beginning of the function "AsnBits::BEncContent", the 'bitLen' member is 1024, the length of the signature. At line 274 (in snacc13rn\c++-lib\src\asn-bits.cpp) of this function, there is a sequence of statements intended to remove leading '0' bits from the bit sequence. However, the code begins looking at the LEAST significant byte of the signature instead of the most significant byte. To illustrate this, the bottom of the certificate cut from an ASN.1 view looks like: 30 0d 06 09 2a 86 48 86 f7 0d 01 01 05 [id_Sha1WithRSAEncryption] 05 00 03 81 81 00 a6 3e f9 9e d0 b3 52 de 61 8f fe ec 6c 95 43 ed c6 74 1a fa e2 81 43 d4 b7 30 62 e6 0e 52 cb 64 bc bf 31 45 a9 69 28 3e 73 b5 35 c6 f3 6c fc 5a 69 ef 19 c7 47 e0 d1 51 3c bc 0d de fb b5 4f 6a 09 c0 4a 8e 4a 54 11 ce fc 3a 0f 7b 26 2b 68 48 b5 4e 8b 27 7e fb aa ee 36 7a 8a 2a 5b b3 0d 9c f7 a6 d6 2c d4 e0 04 17 99 10 64 1f 2b a4 00 b1 4b 47 a6 fc a1 69 e6 2f 12 78 51 92 e6 2b 09 9e It can be seen from looking at the certificate that the most significant byte of the signature is 'A6', and the least significant is '9E'. When "AsnBits::BEncContent" calls "AsnBits::GetBit", it calls it with an argument of '1023'. "AsnBits::GetBit" assumes that the bit buffer is in a big endian order, and examines the byte '9E' to determine if the first bit is zero. Since the first bit of '9E' just happens to be zero, the signature bit sequence length is decremented to be 1023. This causes the "AsnBits::BEncContent" function to determine that there is one unused bit in the bit string, which in turn causes the signature being incorrectly encoded with a leading '1'. Either the buffer that is passed into "AsnBits::BEncContent" needs to be byte reversed, or the function "AsnBits::GetBit" needs to have an ifdef in it for little endian platforms. Does this sound right? John Nord From owner-imc-snacc Tue Sep 19 07:22:54 2000 Received: by ns.secondary.com (8.9.3/8.9.3) id HAA24346 for imc-snacc-bks; Tue, 19 Sep 2000 07:22:54 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.wangfed.com [206.137.100.2]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id HAA24325; Tue, 19 Sep 2000 07:22:44 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2650.21) id ; Tue, 19 Sep 2000 10:26:35 -0400 Message-ID: <4B0D36365AD3D2118FF40060972A16C0019B1455@wfhqex01.wangfed.com> From: "Pawling, John" To: imc-cml@imc.org, imc-snacc@imc.org Subject: FW: UTF-8 Date: Tue, 19 Sep 2000 10:25:58 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by ns.secondary.com id HAA24326 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: All, The attached message documents a bug in the v1.3 R3 Enhanced SNACC C library. It does not impact the SNACC C++ library. ============================================ John Pawling, john.pawling@wang.com Wang Government Services, Inc., A Getronics Company ============================================ -----Original Message----- From: Colestock, Robert Sent: Tuesday, September 19, 2000 10:21 AM To: 'eboudreault@motus.com' Cc: Pawling, John; McPherson, Clyde Subject: RE: UTF-8 Eric: I believe you are correct, the 11th position in the enum array sets the wrong tag. This has been fixed in the next SNACC baseline. For you, simply add "=12" to the UTF8 tag value and re-build the SNACC "C" library: UTF8STRING_TAG_CODE, CHANGE TO UTF8STRING_TAG_CODE=12, Bob Colestock VDA -----Original Message----- From: eboudreault@motus.com [mailto:eboudreault@motus.com] Sent: Monday, September 18, 2000 3:40 PM To: imc-cml@imc.org Subject: UTF-8 Hello !!! I think i've found a bug in the file "asn-tag.h". There is the line of that bug : ..... typedef enum { NO_TAG_CODE = 0, BOOLEAN_TAG_CODE = 1, INTEGER_TAG_CODE, BITSTRING_TAG_CODE, OCTETSTRING_TAG_CODE, NULLTYPE_TAG_CODE, OID_TAG_CODE, OD_TAG_CODE, EXTERNAL_TAG_CODE, REAL_TAG_CODE, ENUM_TAG_CODE, UTF8STRING_TAG_CODE, SEQ_TAG_CODE = 16, SET_TAG_CODE, NUMERICSTRING_TAG_CODE, PRINTABLESTRING_TAG_CODE, TELETEXSTRING_TAG_CODE, VIDEOTEXSTRING_TAG_CODE, IA5STRING_TAG_CODE, UTCTIME_TAG_CODE, GENERALIZEDTIME_TAG_CODE, GRAPHICSTRING_TAG_CODE, VISIBLESTRING_TAG_CODE, GENERALSTRING_TAG_CODE, UNIVERSALSTRING_TAG_CODE = 28, BMPSTRING_TAG_CODE = 30 } BER_UNIV_CODE; ..... The bug is that the UTF8STRING_TAG_CODE is supposed to be 12 (11 now) as mentionned in the specification (rfc2459) and in the file asn-usefulVDA.h. What do think about that ???? And what can i do to correct that bug (if bug exist) ???? Thanks !! **************************************************************************** ****************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 couriel: eboudreault@motus.com **************************************************************************** ****************** From owner-imc-snacc Tue Sep 19 08:17:50 2000 Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id IAA27706 for imc-snacc-bks; Tue, 19 Sep 2000 08:17:50 -0700 (PDT) Received: from mail.motus.qc.ca (motus.qc.ca [207.236.155.194]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id IAA27677; Tue, 19 Sep 2000 08:17:46 -0700 (PDT) From: eboudreault@motus.com Subject: Re: FW: UTF-8 To: "Pawling, John" Cc: imc-cml@imc.org, imc-snacc@imc.org, owner-imc-cml@mail.imc.org X-Mailer: Lotus Notes France (Canada) 5.0 14 avril 1999 Message-ID: Date: Tue, 19 Sep 2000 11:20:31 -0400 X-MIMETrack: Serialize by Router on motus1/Motus Technologies Inc.(Release 5.0.3 |March 21, 2000) at 19/09/2000 11:21:04 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by ns.secondary.com id IAA27686 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Why UTF-8 is not included in the file asn-tag.h ??? ----------------------------------------------------------- ...... typedef enum BER_UNIV_CODE { NO_TAG_CODE = 0, BOOLEAN_TAG_CODE = 1, INTEGER_TAG_CODE, BITSTRING_TAG_CODE, OCTETSTRING_TAG_CODE, NULLTYPE_TAG_CODE, OID_TAG_CODE, OD_TAG_CODE, EXTERNAL_TAG_CODE, REAL_TAG_CODE, ENUM_TAG_CODE, SEQ_TAG_CODE = 16, SET_TAG_CODE, NUMERICSTRING_TAG_CODE, PRINTABLESTRING_TAG_CODE, TELETEXSTRING_TAG_CODE, VIDEOTEXSTRING_TAG_CODE, IA5STRING_TAG_CODE, UTCTIME_TAG_CODE, GENERALIZEDTIME_TAG_CODE, GRAPHICSTRING_TAG_CODE, VISIBLESTRING_TAG_CODE, #ifndef VDADER_RULES GENERALSTRING_TAG_CODE #else GENERALSTRING_TAG_CODE, UNIVERSALSTRING_TAG_CODE = 28, BMPSTRING_TAG_CODE = 30 #endif } BER_UNIV_CODE; ........ ----------------------------------------------------------- Why this does not impact the SNACC C++ library ????? ********************************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 couriel: eboudreault@motus.com ********************************************************************************************** "Pawling, John" cc: Sent by: Subject: FW: UTF-8 owner-imc-cml@ma il.imc.org 19/09/00 10:25 All, The attached message documents a bug in the v1.3 R3 Enhanced SNACC C library. It does not impact the SNACC C++ library. ============================================ John Pawling, john.pawling@wang.com Wang Government Services, Inc., A Getronics Company ============================================ -----Original Message----- From: Colestock, Robert Sent: Tuesday, September 19, 2000 10:21 AM To: 'eboudreault@motus.com' Cc: Pawling, John; McPherson, Clyde Subject: RE: UTF-8 Eric: I believe you are correct, the 11th position in the enum array sets the wrong tag. This has been fixed in the next SNACC baseline. For you, simply add "=12" to the UTF8 tag value and re-build the SNACC "C" library: UTF8STRING_TAG_CODE, CHANGE TO UTF8STRING_TAG_CODE=12, Bob Colestock VDA -----Original Message----- From: eboudreault@motus.com [mailto:eboudreault@motus.com] Sent: Monday, September 18, 2000 3:40 PM To: imc-cml@imc.org Subject: UTF-8 Hello !!! I think i've found a bug in the file "asn-tag.h". There is the line of that bug : ..... typedef enum { NO_TAG_CODE = 0, BOOLEAN_TAG_CODE = 1, INTEGER_TAG_CODE, BITSTRING_TAG_CODE, OCTETSTRING_TAG_CODE, NULLTYPE_TAG_CODE, OID_TAG_CODE, OD_TAG_CODE, EXTERNAL_TAG_CODE, REAL_TAG_CODE, ENUM_TAG_CODE, UTF8STRING_TAG_CODE, SEQ_TAG_CODE = 16, SET_TAG_CODE, NUMERICSTRING_TAG_CODE, PRINTABLESTRING_TAG_CODE, TELETEXSTRING_TAG_CODE, VIDEOTEXSTRING_TAG_CODE, IA5STRING_TAG_CODE, UTCTIME_TAG_CODE, GENERALIZEDTIME_TAG_CODE, GRAPHICSTRING_TAG_CODE, VISIBLESTRING_TAG_CODE, GENERALSTRING_TAG_CODE, UNIVERSALSTRING_TAG_CODE = 28, BMPSTRING_TAG_CODE = 30 } BER_UNIV_CODE; ..... The bug is that the UTF8STRING_TAG_CODE is supposed to be 12 (11 now) as mentionned in the specification (rfc2459) and in the file asn-usefulVDA.h. What do think about that ???? And what can i do to correct that bug (if bug exist) ???? Thanks !! **************************************************************************** ****************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 couriel: eboudreault@motus.com **************************************************************************** ****************** From owner-imc-snacc Tue Sep 19 09:35:33 2000 Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id JAA02699 for imc-snacc-bks; Tue, 19 Sep 2000 09:35:33 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.wangfed.com [206.137.100.2]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id JAA02687; Tue, 19 Sep 2000 09:35:21 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2650.21) id ; Tue, 19 Sep 2000 12:39:09 -0400 Message-ID: <57B5672B24E6D2118165006008A5925969E6FA@wfhqex06.wangfed.com> From: "Colestock, Robert" To: "'eboudreault@motus.com'" Cc: "'imc-cml@imc.org'" , "'imc-snacc@imc.org'" , "'owner-imc-cml@mail.imc.org'" Subject: RE: FW: UTF-8 Date: Tue, 19 Sep 2000 12:38:31 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by ns.secondary.com id JAA02688 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Eric: The C++ DER rules were implemented separate from the "C" DER rules (added later from freeware sources). The SNACC compiler changes necessary to implement the rules had to be compromised to reflect the different approaches. The short answer is that this reference does not affect the C++ tag encode/decode operations (the C++ reference to the tag is in ./specs/asn-usefulVDA.asn1). Bob Colestock VDA -----Original Message----- From: eboudreault@motus.com [mailto:eboudreault@motus.com] Sent: Tuesday, September 19, 2000 11:21 AM To: Pawling, John Cc: imc-cml@imc.org; imc-snacc@imc.org; owner-imc-cml@mail.imc.org Subject: Re: FW: UTF-8 Why UTF-8 is not included in the file asn-tag.h ??? ----------------------------------------------------------- ...... typedef enum BER_UNIV_CODE { NO_TAG_CODE = 0, BOOLEAN_TAG_CODE = 1, INTEGER_TAG_CODE, BITSTRING_TAG_CODE, OCTETSTRING_TAG_CODE, NULLTYPE_TAG_CODE, OID_TAG_CODE, OD_TAG_CODE, EXTERNAL_TAG_CODE, REAL_TAG_CODE, ENUM_TAG_CODE, SEQ_TAG_CODE = 16, SET_TAG_CODE, NUMERICSTRING_TAG_CODE, PRINTABLESTRING_TAG_CODE, TELETEXSTRING_TAG_CODE, VIDEOTEXSTRING_TAG_CODE, IA5STRING_TAG_CODE, UTCTIME_TAG_CODE, GENERALIZEDTIME_TAG_CODE, GRAPHICSTRING_TAG_CODE, VISIBLESTRING_TAG_CODE, #ifndef VDADER_RULES GENERALSTRING_TAG_CODE #else GENERALSTRING_TAG_CODE, UNIVERSALSTRING_TAG_CODE = 28, BMPSTRING_TAG_CODE = 30 #endif } BER_UNIV_CODE; ........ ----------------------------------------------------------- Why this does not impact the SNACC C++ library ????? **************************************************************************** ****************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 couriel: eboudreault@motus.com **************************************************************************** ****************** "Pawling, John" cc: Sent by: Subject: FW: UTF-8 owner-imc-cml@ma il.imc.org 19/09/00 10:25 All, The attached message documents a bug in the v1.3 R3 Enhanced SNACC C library. It does not impact the SNACC C++ library. ============================================ John Pawling, john.pawling@wang.com Wang Government Services, Inc., A Getronics Company ============================================ -----Original Message----- From: Colestock, Robert Sent: Tuesday, September 19, 2000 10:21 AM To: 'eboudreault@motus.com' Cc: Pawling, John; McPherson, Clyde Subject: RE: UTF-8 Eric: I believe you are correct, the 11th position in the enum array sets the wrong tag. This has been fixed in the next SNACC baseline. For you, simply add "=12" to the UTF8 tag value and re-build the SNACC "C" library: UTF8STRING_TAG_CODE, CHANGE TO UTF8STRING_TAG_CODE=12, Bob Colestock VDA -----Original Message----- From: eboudreault@motus.com [mailto:eboudreault@motus.com] Sent: Monday, September 18, 2000 3:40 PM To: imc-cml@imc.org Subject: UTF-8 Hello !!! I think i've found a bug in the file "asn-tag.h". There is the line of that bug : ..... typedef enum { NO_TAG_CODE = 0, BOOLEAN_TAG_CODE = 1, INTEGER_TAG_CODE, BITSTRING_TAG_CODE, OCTETSTRING_TAG_CODE, NULLTYPE_TAG_CODE, OID_TAG_CODE, OD_TAG_CODE, EXTERNAL_TAG_CODE, REAL_TAG_CODE, ENUM_TAG_CODE, UTF8STRING_TAG_CODE, SEQ_TAG_CODE = 16, SET_TAG_CODE, NUMERICSTRING_TAG_CODE, PRINTABLESTRING_TAG_CODE, TELETEXSTRING_TAG_CODE, VIDEOTEXSTRING_TAG_CODE, IA5STRING_TAG_CODE, UTCTIME_TAG_CODE, GENERALIZEDTIME_TAG_CODE, GRAPHICSTRING_TAG_CODE, VISIBLESTRING_TAG_CODE, GENERALSTRING_TAG_CODE, UNIVERSALSTRING_TAG_CODE = 28, BMPSTRING_TAG_CODE = 30 } BER_UNIV_CODE; ..... The bug is that the UTF8STRING_TAG_CODE is supposed to be 12 (11 now) as mentionned in the specification (rfc2459) and in the file asn-usefulVDA.h. What do think about that ???? And what can i do to correct that bug (if bug exist) ???? Thanks !! **************************************************************************** ****************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 couriel: eboudreault@motus.com **************************************************************************** ****************** From owner-imc-snacc Fri Sep 22 10:54:21 2000 Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id KAA12611 for imc-snacc-bks; Fri, 22 Sep 2000 10:54:21 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.wangfed.com [206.137.100.2]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id KAA12603 for ; Fri, 22 Sep 2000 10:54:19 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2650.21) id ; Fri, 22 Sep 2000 13:58:04 -0400 Message-ID: <4B0D36365AD3D2118FF40060972A16C0019B14C1@wfhqex01.wangfed.com> From: "Pawling, John" To: imc-snacc@imc.org Cc: "Leonberger, Pierce" , "Colestock, Robert" Subject: RE: little endian bug? Date: Fri, 22 Sep 2000 13:58:00 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="ISO-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: John, We apologize for taking so long to respond to your message. We agree that you have identified a bug in the Enhanced SNACC library. We have fixed this bug in the baseline Enhanced SNACC source code. Since the release of the v1.3 R2 Enhanced SNACC source code, we have also fixed bugs that caused BIT STRINGs and default values to be improperly DER encoded. On 30 Sep 00, we plan to deliver the v1.3 R4 Enhanced SNACC ASN.1 Compiler and Library source code that fixes all of the bugs. We apologize for any inconvenience caused by these bugs. ============================================ John Pawling, john.pawling@wang.com Wang Government Services, Inc., A Getronics Company ============================================ -----Original Message----- From: Nord, John D Contractor/NCCIM [mailto:john.nord@redstone.army.mil] Sent: Thursday, September 14, 2000 12:34 PM To: 'imc-snacc' Subject: little endian bug? I wasn't sure which list to send this to. I was thinking about sending it to all three (SNACC, SFL, and CML), but that would probably make a lot of people get three copies of it. The problem occurs in the SNACC library, but involves the SFL and CML as well. Description of bug: I'm using the DOD PKCS#12 file from the "email" link on web page http://www.disa.mil/infosec/pki-int.html. I'm using the SFL to create P7M files, and the CML to store certificates on a Windows platform. I noticed that the certificate from the P12 file (CN=Nimeh.Jamil.Joseph...) was getting added to the CML database twice. Everything about the two certificates in the CML database looked identical. However, a close inspection reveals that the certificates differ in one byte. The first byte of the certificate signature, which should be a leading '0', is correctly '0' in one certificate, but is '1' in the other certificate. The invalid certificate came from one of the P7M files created by the SFL. When the P7M file is created, the certificate is incorrectly encoded with a leading '1' instead of a leading '0' in front of the certificate signature. When my application opens the P7M, the signer's certificate (the invalid one in the P7M) is added to the CML database, so that both the valid and invalid certificates are now present. The call stack at the point at which the signature is encoded is: AsnBits::BEncContent(AsnBuf & {...}) Certificate::BEncContent(AsnBuf & {...}) CertificateChoices::BEncContent(AsnBuf & {...}) CertificateSet::BEncContent(AsnBuf & {...}) SignedData::BEncContent(AsnBuf & {...}) SignedData::BEnc(AsnBuf & {...}) SignedData::BEncPdu(AsnBuf & {...}, unsigned int &) CSM_DataToSign::Sign(CSMIME *, CSM_MsgCertCrls *, CSM_Buffer * &) CSM_MsgToSign::UpdateSignedDataSIs(CSMIME *) CSM_MsgToSign::Sign(CSMIME *) At the beginning of the function "AsnBits::BEncContent", the 'bitLen' member is 1024, the length of the signature. At line 274 (in snacc13rn\c++-lib\src\asn-bits.cpp) of this function, there is a sequence of statements intended to remove leading '0' bits from the bit sequence. However, the code begins looking at the LEAST significant byte of the signature instead of the most significant byte. To illustrate this, the bottom of the certificate cut from an ASN.1 view looks like: 30 0d 06 09 2a 86 48 86 f7 0d 01 01 05 [id_Sha1WithRSAEncryption] 05 00 03 81 81 00 a6 3e f9 9e d0 b3 52 de 61 8f fe ec 6c 95 43 ed c6 74 1a fa e2 81 43 d4 b7 30 62 e6 0e 52 cb 64 bc bf 31 45 a9 69 28 3e 73 b5 35 c6 f3 6c fc 5a 69 ef 19 c7 47 e0 d1 51 3c bc 0d de fb b5 4f 6a 09 c0 4a 8e 4a 54 11 ce fc 3a 0f 7b 26 2b 68 48 b5 4e 8b 27 7e fb aa ee 36 7a 8a 2a 5b b3 0d 9c f7 a6 d6 2c d4 e0 04 17 99 10 64 1f 2b a4 00 b1 4b 47 a6 fc a1 69 e6 2f 12 78 51 92 e6 2b 09 9e It can be seen from looking at the certificate that the most significant byte of the signature is 'A6', and the least significant is '9E'. When "AsnBits::BEncContent" calls "AsnBits::GetBit", it calls it with an argument of '1023'. "AsnBits::GetBit" assumes that the bit buffer is in a big endian order, and examines the byte '9E' to determine if the first bit is zero. Since the first bit of '9E' just happens to be zero, the signature bit sequence length is decremented to be 1023. This causes the "AsnBits::BEncContent" function to determine that there is one unused bit in the bit string, which in turn causes the signature being incorrectly encoded with a leading '1'. Either the buffer that is passed into "AsnBits::BEncContent" needs to be byte reversed, or the function "AsnBits::GetBit" needs to have an ifdef in it for little endian platforms. Does this sound right? John Nord From owner-imc-snacc Thu Oct 12 10:23:09 2000 Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id KAA09923 for imc-snacc-bks; Thu, 12 Oct 2000 10:23:09 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.wangfed.com [206.137.100.2]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id KAA09918 for ; Thu, 12 Oct 2000 10:23:08 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2650.21) id ; Thu, 12 Oct 2000 13:30:23 -0400 Message-ID: <4B0D36365AD3D2118FF40060972A16C0019B1661@wfhqex01.wangfed.com> From: "Pawling, John" To: "Pawling, John" Subject: v1.3 R4 Enhanced SNACC ASN.1 Freeware Now Available Date: Thu, 12 Oct 2000 13:27:18 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: All, Getronics Government Solutions (GGS) (formerly Wang Government Services) has delivered the v1.3 R4 Enhanced SNACC Abstract Syntax Notation.1 (ASN.1) Compiler, C++ library and C library source code compilable for Linux, Sun Solaris 2.7 and Microsoft Windows NT/95/98/2000. The source code and the Enhanced SNACC Software Public License are freely available to everyone from: . In past releases, GGS enhanced the SNACC library to implement the Distinguished Encoding Rules (DER). In the v1.3 R4 SNACC release, GGS included the following enhancements: 1) Corrected bug that caused BIT STRINGs to be improperly DER encoded. 2) Corrected bug that caused BOOLEAN DEFAULT, INTEGER DEFAULT, and BIT STRING DEFAULT values to be improperly DER encoded. 3) Tested with v1.8 S/MIME Freeware Library (SFL) that uses SNACC to implement the IETF S/MIME v3 set of specifications. 4) Tested with freeware v1.8 Certificate Management Library (CML) that uses SNACC to implement the 1997 X.509 Recommendation and RFC 2459. 5) Tested with freeware v1.4 Access Control Library (ACL) that uses SNACC to provide automated access control. SNACC implements the majority of ASN.1 encoding/decoding rules. SNACC does not support all of the latest ASN.1 features, but there are work-arounds that allow SNACC to be used to produce ASN.1 hex encodings that are identical to those produced by ASN.1 libraries that do support the latest ASN.1 features. Also note that many of the PKIX specs, such as RFC 2459, include 1988-compliant ASN.1 syntax modules which can be directly compiled using SNACC. The SNACC ASN.1 library is totally unencumbered as stated in the Enhanced SNACC Software Public License. All source code for the Enhanced SNACC software is being provided at no cost and with no financial limitations regarding its use and distribution. Organizations can use the Enhanced SNACC software without paying any royalties or licensing fees. The Internet Mail Consortium (IMC) has established a SNACC web page . The IMC has also established a SNACC mail list which is used to: distribute information regarding SNACC releases; discuss SNACC-related issues; and provide a means for SNACC users to provide feedback, comments, bug reports, etc. Subscription information for the imc-snacc mail list is at the IMC web site listed above. We welcome all feedback regarding the Enhanced SNACC software. If bugs are reported, then we will investigate each reported bug and, if required, will produce a patch or an updated release of the software to repair the bug. This SNACC release announcement was sent to several mail lists, but please send all messages regarding the Enhanced SNACC software to the imc-snacc mail list ONLY. Please do not send messages regarding the Enhanced SNACC software to any of the IETF mail lists. We will respond to all messages sent to the imc-snacc mail list. =========================================== John Pawling, john.pawling@getronicsgov.com Getronics Government Solutions, LLC =========================================== From owner-imc-snacc Tue Nov 21 08:40:32 2000 Received: by ns.secondary.com (8.9.3/8.9.3) id IAA25822 for imc-snacc-bks; Tue, 21 Nov 2000 08:40:32 -0800 (PST) Received: from wfhqex05.gfgsi.com (netva01.wangfed.com [206.137.100.2]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id IAA25818 for ; Tue, 21 Nov 2000 08:40:30 -0800 (PST) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2650.21) id ; Tue, 21 Nov 2000 11:40:53 -0500 Message-ID: <4B0D36365AD3D2118FF40060972A16C0019B18CA@wfhqex01.wangfed.com> From: "Pawling, John" To: "Pawling, John" Subject: SFL/CML/ACL/Enhanced SNACC Freeware Availability Date: Tue, 21 Nov 2000 11:40:48 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: All, The freeware Certificate Management Library (CML), S/MIME Freeware Library (SFL), Access Control Library (ACL) and Enhanced SNACC ASN.1 freeware are no longer available from the web site. They will be available on the Getronics Government Solutions web site by 1 December 2000. I will inform everyone as soon as they are available. They will continue to be freely available to everyone. =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== From owner-imc-snacc Tue Dec 5 11:43:58 2000 Received: by ns.secondary.com (8.9.3/8.9.3) id LAA17003 for imc-snacc-bks; Tue, 5 Dec 2000 11:43:58 -0800 (PST) Received: from wfhqex05.gfgsi.com (netva01.wangfed.com [206.137.100.2]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA16995 for ; Tue, 5 Dec 2000 11:43:57 -0800 (PST) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2650.21) id ; Tue, 5 Dec 2000 14:30:05 -0500 Message-ID: <4B0D36365AD3D2118FF40060972A16C0019B19DC@wfhqex01.wangfed.com> From: "Pawling, John" To: "Pawling, John" Subject: SFL/CML/ACL/SNACC Freeware Available *NEW CML RELEASE* Date: Tue, 5 Dec 2000 14:30:08 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: All, The freeware Certificate Management Library (CML), S/MIME Freeware Library (SFL), Access Control Library (ACL), Enhanced SNACC ASN.1 freeware and Cryptographic Token Interface Libraries (CTIL) developed by Getronics Government Solutions are now available from the following web pages: SFL and CTILs: CML: ACL: Enhanced SNACC ASN.1 Freeware: **NEW CML RELEASE**: The CML files available from are a new release. The v1.81 CML release fixes bugs in the v1.8 CML as documented in the v1.8 CML Problem Report file. With the exception of the CML files, there are no significant differences between the files available from the Getronics Government Solutions web pages and those that were formerly available from the Fortezza Developers Web Site . We welcome all feedback regarding these freeware security libraries. =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== From owner-imc-snacc Fri Dec 15 14:37:28 2000 Received: by ns.secondary.com (8.9.3/8.9.3) id OAA18783 for imc-snacc-bks; Fri, 15 Dec 2000 14:37:28 -0800 (PST) Received: from mtk-mail1.mitretek.org (mtk-mail1.mitretek.org [206.241.50.65]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id OAA18779 for ; Fri, 15 Dec 2000 14:37:27 -0800 (PST) Received: from tsfsrv.mitretek.org (root@tsfsrv.mitretek.org [206.241.167.1]) by mtk-mail1.mitretek.org (8.9.3/8.9.3) with ESMTP id RAA28772 for ; Fri, 15 Dec 2000 17:39:48 -0500 (EST) Received: from localhost (stillson@localhost [127.0.0.1]) by tsfsrv.mitretek.org (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id RAA13091 for ; Fri, 15 Dec 2000 17:23:50 -0500 Date: Fri, 15 Dec 2000 17:23:49 -0500 (EST) From: Ken Stillson To: imc-snacc@imc.org Subject: problems compiling PKIX with ver 1.3b4 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi.. I've been having problems compiling the 1998 ASN files from RFC 2459 (appendix B.1 & B.2), which the vda SNACC homepage [http://www.getronicsgov.com/hot/snacc_home.htm] specifically says "can be directly compiled using SNACC" SNACC generates output without any warnings, but the code it generates contains garbage. Here's a snippit of the SNACC generated PKIX1Explicit88.h: === class ExtendedNetworkAddressSeq: public AsnType { public: (null) number; (null) sub_address; === Obviously something has gone wrong. I think these (null)'s are suppsed to be NumericString's. (I tried manually replacing them, but it led to all sorts of other issues.) btw- the commands that led up to this were: .../bin/snacc -C -u .../snacc/asn1/asn-useful.asn1 PKIX1Explicit88.asn1 ln -s PKIX1Explicit88.C PKIX1Explicit88.cc g++ -g -Wconversion -Wall -I...snacc/include/snacc/c++ -Wno-unused -I -o o/PKIX1Explicit88.o -c PKIX1Explicit88.cc Has anyone else been successful in compiling PKIX ? Any thoughts on what might be wrong? Thank you very much! - Ken Stillson -- | Ken Stillson | stillson@mitretek.org | | Sr. Principal Engineer | voice: (703) 610-2965 | | Mitretek Systems | fax: (703) 610-2984 | From owner-imc-snacc Thu Dec 28 07:07:24 2000 Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id HAA06169 for imc-snacc-bks; Thu, 28 Dec 2000 07:07:24 -0800 (PST) Received: from wfhqex05.gfgsi.com (netva01.wangfed.com [206.137.100.2]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id HAA06164 for ; Thu, 28 Dec 2000 07:07:22 -0800 (PST) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2650.21) id ; Thu, 28 Dec 2000 10:12:29 -0500 Message-ID: <4B0D36365AD3D2118FF40060972A16C0019B1AE2@wfhqex01.wangfed.com> From: "Pawling, John" To: imc-snacc@imc.org Subject: FW: problems compiling PKIX with ver 1.3b4 Date: Thu, 28 Dec 2000 10:10:52 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: -----Original Message----- From: Colestock, Robert To: 'stillson@mitretek.org'; 'imc-snacc@imc.org' Sent: 12/20/2000 11:45 AM Subject: RE: problems compiling PKIX with ver 1.3b4 Ken: First, I do not know why our homepage says any ASN.1 specification can be encoded without change; I have yet to see a specification that can be directly compiled by SNACC without some modification. Usually this requires simple IMPORTS or the addition of missing definitions if the ASN.1 syntax is too new. I do not believe the SNACC compiler can read 1998 syntax directly (the README tells you). Text from the SNACC/readme.rel file: "Also note that many of the PKIX specs, such as RFC 2459, include 1988- compliant ASN.1 syntax modules which can be directly compiled using SNACC." I assume that the syntax you refer to uses the 1988 definitions. The error you indicate is due to the newest "String" definitions that were moved from the asn-useful.asn1 file to internally supported classes. I have seen this error before, but offhand I do not remember why it occurs (I thought it was fixed permanently). Please check that your command line parameters are similar to the following: SNACCFLAGS = -D -C -VDAexport -u../../../SMPDist/util/VDASnacc/cpplib/asn1/asn-usefulVDA.asn1 as demonstrated in our ./SMIME/libcert/asn1/Make_w32libcertasn make file for MS Windows (same flags on Linux). the "-u" flag would point to the appropriate "asn-usefulVDA.asn1" file relative to your working directory. Also, I need to know which SNACC version you are working with. I assume you are using the C++ version based on the logic below (the "C" compiler builds all of the "String" definitions differently). I also assume that you did not modify the flags in building the SNACC compiler. If you attempt to turn off the "VDADER_RULES" flag, it will disable the special "String" processing. I have not tried to build the compiler with this flag disabled, it is very possible that the "String" logic is broken for the older implementation (I had not intended the library to be used without the "VDADER_RULES" define). IF THIS IS THE CASE (i.e. that you disable the "VDADER_RULES" definition), modify your make references to use the "asn-useful.asn1" file instead of the "asn-usefulVDA.asn1"; this should restore the missing defintions. If you do this, you will lose all of the multi-byte string support that has been added for the different "String" definitions (e.g. PrintableString vs. UTF8String, especially translating between the string types). Our build of the SNACC compiler works fine for all such definitions (we have this specification in our SMIME release). If you still have problems, and your SNACC compiler was built using the default make(s), please send my your version of the ASN.1 specifications; I will attempt to compile it with our current version of the compiler. If this succeeds, I can send you the current (soon to be released) working version of SNACC. Your version should work fine. Another possibility is that you are perhaps linking with an older set of include files? If you had a previous version before loading this version of SNACC, please re-load into a new directory and re-build. This new "String" modification was just made in that release of SNACC. Bob Colestock VDA -----Original Message----- From: Ken Stillson [mailto:stillson@mitretek.org] Sent: Friday, December 15, 2000 5:24 PM To: imc-snacc@imc.org Subject: problems compiling PKIX with ver 1.3b4 Hi.. I've been having problems compiling the 1998 ASN files from RFC 2459 (appendix B.1 & B.2), which the vda SNACC homepage [http://www.getronicsgov.com/hot/snacc_home.htm] specifically says "can be directly compiled using SNACC" SNACC generates output without any warnings, but the code it generates contains garbage. Here's a snippit of the SNACC generated PKIX1Explicit88.h: === class ExtendedNetworkAddressSeq: public AsnType { public: (null) number; (null) sub_address; === Obviously something has gone wrong. I think these (null)'s are suppsed to be NumericString's. (I tried manually replacing them, but it led to all sorts of other issues.) btw- the commands that led up to this were: .../bin/snacc -C -u .../snacc/asn1/asn-useful.asn1 PKIX1Explicit88.asn1 ln -s PKIX1Explicit88.C PKIX1Explicit88.cc g++ -g -Wconversion -Wall -I...snacc/include/snacc/c++ -Wno-unused -I -o o/PKIX1Explicit88.o -c PKIX1Explicit88.cc Has anyone else been successful in compiling PKIX ? Any thoughts on what might be wrong? Thank you very much! - Ken Stillson -- | Ken Stillson | stillson@mitretek.org | | Sr. Principal Engineer | voice: (703) 610-2965 | | Mitretek Systems | fax: (703) 610-2984 | From owner-imc-snacc Thu Jan 4 13:37:28 2001 Received: by ns.secondary.com (8.9.3/8.9.3) id NAA11803 for imc-snacc-bks; Thu, 4 Jan 2001 13:37:28 -0800 (PST) Received: from mtk-mail1.mitretek.org (mtk-mail1.mitretek.org [206.241.50.65]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA11799 for ; Thu, 4 Jan 2001 13:37:27 -0800 (PST) Received: from tsfsrv.mitretek.org (root@tsfsrv.mitretek.org [206.241.167.1]) by mtk-mail1.mitretek.org (8.9.3/8.9.3) with ESMTP id QAA27564; Thu, 4 Jan 2001 16:41:29 -0500 (EST) Received: from localhost (stillson@localhost [127.0.0.1]) by tsfsrv.mitretek.org (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id QAA03195; Thu, 4 Jan 2001 16:21:18 -0500 Date: Thu, 4 Jan 2001 16:21:14 -0500 (EST) From: Ken Stillson To: "Colestock, Robert" cc: "'imc-snacc@imc.org'" Subject: RE: problems compiling PKIX with ver 1.3b4 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Success! What I had not understood is that -DVADER_RULES must not only be defined during the compilation of SNACC itself, but must also be defined when compiling code generated by SNACC. (It turns out that #ifdef VADER_RULES is checked by various things in the SNACC include files). This is what was leading to all sorts of necessary classes not being defined. Thanks for your assistance! Things appear to be working fine now. - Ken -- | Ken Stillson | stillson@mitretek.org | | Sr. Principal Engineer | voice: (703) 610-2965 | | Mitretek Systems | fax: (703) 610-2984 | From owner-imc-snacc Mon Feb 12 02:30:04 2001 Received: (from majordomo@localhost) by above.proper.com (8.9.3/8.9.3) id CAA10673 for imc-snacc-bks; Mon, 12 Feb 2001 02:30:04 -0800 (PST) Received: from softamed.nl (a213-84-17-138.adsl.xs4all.nl [213.84.17.138]) by above.proper.com (8.9.3/8.9.3) with ESMTP id CAA10668 for ; Mon, 12 Feb 2001 02:30:01 -0800 (PST) Received: from Spooler by softamed.nl (Mercury/32 v3.01a) ID MO001928; 12 Feb 01 11:31:33 +0100 Received: from spooler by softamed.nl (Mercury/32 v3.01a); 12 Feb 01 11:31:27 +0100 Received: from softamed.SoftaNet (192.168.0.2) by Softamed SMTP Server (Mercury/32 v3.01a) with ESMTP ID MG001927; 12 Feb 01 11:31:27 +0100 Received: by SOFTAMED with Internet Mail Service (5.5.2650.21) id <1LDMQ6YM>; Mon, 12 Feb 2001 11:38:33 +0100 Message-ID: <51734B4BA43FD311960A00105A2DF7CE055DD4@SOFTAMED> From: Jaap de Wolff To: "'imc-snacc@imc.org'" Subject: Problems with the snacc compiler. Date: Mon, 12 Feb 2001 11:38:32 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hello, I am new to ASN.1 and new to snacc. As company we decided recently to use the ASN.1 notation as the way to document our protocols. So I downloaded the snacc sources (v 1.3b4), and compiled them. I am using it under windows NT4.0. And I discovered a few problems: 1- I can't find the commandline switch -D documented. 2- The file "asn-any.h" in c++-lib/inc/ contains: class SNACCDLL_API AsnAny: public AsnType { .... #ifdef VDADER_RULES ~AsnAny(); AsnAny &operator = (const AsnAny &o); }; // AnyDefinedBy is currently the same as AsnAny: typedef AsnAny AsnAnyDefinedBy; #endif /* conditional include */ now if VDADER_RULES is _not_ defined, the class AsnAny has no end. I think the last lines should be: }; // AnyDefinedBy is currently the same as AsnAny: typedef AsnAny AsnAnyDefinedBy; #else }; #endif /* conditional include */ 3- When creating C++ files, those files include "asn-incl.h", which includes the file "snacc.h", also a lot of the files which are included in this file include "snacc.h". I think the created files should _not_ be dependend on snacc.h, but only on files in the c++-lib/inc/ directory. 4- The current release is for the c++ part does (in asn-config.h): #include #include #include #include #include #include ... #ifdef VDADER_RULES //namespace std #ifndef WIN32 #include #else #include #endif #include however according to the ANSI C++ guidelines we should use: #include #include #include #include #include using namespace "std" #ifdef VDADER_RULES //namespace std #include #include from the STL. specialy the microsoft iostream.h can give a lot of trouble, when deriving your own streams, and is a standard. 5- Compiling for C++ crashes if no 'useful types' are given. The same asn.1 module is generating correct c code. In the function TypeLinkBasicType() in line 696 there is a lookup of useful types. This generates a 'Access Violation' if usefulTypeModG == NULL. I think the solution should be always creating the usefulTypeModG, also if no useful types are given. 6- The following piece of code generates the error file "demo.asn", line 6: parse error at symbol "1": Demo { iso(1) ansi(2) usa (3) sfm (4) sseries (5) pdu(6) version (7) } DEFINITIONS ::= BEGIN valtyp-BASE INTEGER ::= 10 -- Scalar types my-define INTEGER ::= valtyp-SCALAR-BASE + 1 END -- of Demo spec 7- The following piece of code generates the error file "demo.asn", line 7: ERROR - tag conflict among the CHOICE elements: Demo { iso(1) ansi(2) usa (3) sfm (4) sseries (5) pdu(6) version (9) } DEFINITIONS ::= BEGIN val1 INTEGER ::= 10 val2 INTEGER ::= 11 ErrDemo ::= SEQUENCE { value CHOICE { valtypINT [val1] IMPLICIT Tint, valtypUINT [val2] IMPLICIT Tuint } } Tint ::= INTEGER (-2147483648 .. 2147483647) Tuint ::= INTEGER (0..4294967295) END -- of Demo spec 8- It is not possible to create tcl code from windows code, with the current project settings. However there is a tcl interpreter for windows (http://dev.scriptics.com/software/tcltk/) What must I do to create a snacc version that supports tcl ? That was it for now. Of course I am willing to cooperate in changing code. --- Jaap de Wolff Wolff@softamed.nl Softamed Nederland B.V. Calandstraat 44 3316 EA Dordrecht Tel. 078 6548787 Fax 078 6548788 www.Softamed.nl From owner-imc-snacc Tue Feb 13 03:59:18 2001 Received: by above.proper.com (8.9.3/8.9.3) id DAA26086 for imc-snacc-bks; Tue, 13 Feb 2001 03:59:18 -0800 (PST) Received: from smtp.circle.net (smtp.circle.net [209.95.64.26]) by above.proper.com (8.9.3/8.9.3) with ESMTP id DAA26082 for ; Tue, 13 Feb 2001 03:59:17 -0800 (PST) Received: from ca-ol-sqy-13-233.abo.wanadoo.fr ([213.56.236.233] helo=les4y.net ident=root) by smtp.circle.net with esmtp (Exim 2.10 #2) id 14Se70-000BhC-00 for imc-snacc@imc.org; Tue, 13 Feb 2001 11:59:15 +0000 Message-ID: <3A8920E0.B44BAD2F@les4y.net> Date: Tue, 13 Feb 2001 12:56:16 +0100 From: Patrick Duplouy X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.14-15mdk i686) X-Accept-Language: fr, en MIME-Version: 1.0 To: "'imc-snacc@imc.org'" Subject: Installation problem with the snacc compiler Content-Type: multipart/alternative; boundary="------------429438A9DC09939C0CBC8A61" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: --------------429438A9DC09939C0CBC8A61 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, I'm really new in ASN.1 and, of course with the snacc compiler. I hope to use ASN for developping PKI-X package, (thanks to getronics for the already existing code) and specially for the RFC 2511 PKI message. My problem is quite simple: I'm runnig a Linux system, base on SuSe distribution. The C compiler is gcc 2.95.2, tcl is 8.3. The compilation works withiut no problem, but when I try to compile some examples programs, e.g. simple, I receive the following errors: p-rec.h:45: syntax error before ; (the ChoiceUnion seems not be defined) dateOfBirth and dateOfHire has incomplete type the ChildInformation::Print generated routine have a bad generated line: if (??? (name)) { Can you help me, what is the mistake I make when compiling snacc Thanks for your help Best regards, Patrick -- Patrick Duplouy pduplouy@les4y.net --------------429438A9DC09939C0CBC8A61 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hello,

I'm really new in ASN.1 and, of course with the snacc compiler. I hope to use ASN for developping PKI-X package, (thanks to getronics for the already existing code) and specially for the RFC 2511 PKI message.

My problem is quite simple:

I'm runnig a Linux system, base on SuSe distribution. The C compiler is gcc 2.95.2, tcl is 8.3.

The compilation works withiut no problem, but when I try to compile some examples programs, e.g. simple, I receive the following errors:

p-rec.h:45: syntax error before ; (the ChoiceUnion seems not be defined)
dateOfBirth and dateOfHire has incomplete type

the ChildInformation::Print generated routine have a bad generated line: if (??? (name)) {

Can you help me, what is the mistake I make when compiling snacc

Thanks for your help

Best regards,
Patrick

-- 
Patrick Duplouy
pduplouy@les4y.net
  --------------429438A9DC09939C0CBC8A61-- From owner-imc-snacc Tue Feb 13 07:22:44 2001 Received: (from majordomo@localhost) by above.proper.com (8.9.3/8.9.3) id HAA09334 for imc-snacc-bks; Tue, 13 Feb 2001 07:22:44 -0800 (PST) Received: from wfhqex05.gfgsi.com (netva01.wangfed.com [206.137.100.2]) by above.proper.com (8.9.3/8.9.3) with ESMTP id HAA09329 for ; Tue, 13 Feb 2001 07:22:43 -0800 (PST) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2650.21) id ; Tue, 13 Feb 2001 10:26:01 -0500 Message-ID: <0B95FB5619B3D411817E006008A5925945EC1E@wfhqex06.gfgsi.com> From: "Pawling, John" To: imc-snacc@imc.org Subject: FW: Installation problem with the snacc compiler Date: Tue, 13 Feb 2001 10:26:00 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C095D1.45310D80" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C095D1.45310D80 Content-Type: text/plain; charset="iso-8859-1" Patrick: Your error appear to be due to the lack of those defninitions. You are aware that all necessary definitions must be IMPORTed into the ASN file being compiled. Also, for SNACC, all definitions must be present at the time of compile (e.g. if a definition is IMPORTed, then the IMPORTed definition ASN file must be on the command line along with this ASN file). We do not provide these 2 definitions in SNACC. If you are still having problems, please send me your ASN.1 file(s), I will attempt to compile them (this should be easy and do as you expect). Bob Colestock VDA -----Original Message----- From: Patrick Duplouy [mailto:pduplouy@les4y.net] Sent: Tuesday, February 13, 2001 6:56 AM To: 'imc-snacc@imc.org' Subject: Installation problem with the snacc compiler Hello, I'm really new in ASN.1 and, of course with the snacc compiler. I hope to use ASN for developping PKI-X package, (thanks to getronics for the already existing code) and specially for the RFC 2511 PKI message. My problem is quite simple: I'm runnig a Linux system, base on SuSe distribution. The C compiler is gcc 2.95.2, tcl is 8.3. The compilation works withiut no problem, but when I try to compile some examples programs, e.g. simple, I receive the following errors: p-rec.h:45: syntax error before ; (the ChoiceUnion seems not be defined) dateOfBirth and dateOfHire has incomplete type the ChildInformation::Print generated routine have a bad generated line: if (??? (name)) { Can you help me, what is the mistake I make when compiling snacc Thanks for your help Best regards, Patrick -- Patrick Duplouy pduplouy@les4y.net ------_=_NextPart_001_01C095D1.45310D80 Content-Type: text/html; charset="iso-8859-1"
Patrick:
 
Your error appear to be due to the lack of those defninitions.  You are aware that all necessary definitions must be IMPORTed into the ASN file being compiled.  Also, for SNACC, all definitions must be present at the time of compile (e.g. if a definition is IMPORTed, then the IMPORTed definition ASN file must be on the command line along with this ASN file).  We do not provide these 2 definitions in SNACC.
 
If you are still having problems, please send me your ASN.1 file(s), I will attempt to compile them (this should be easy and do as you expect).
 
Bob Colestock
VDA
 
-----Original Message-----
From: Patrick Duplouy [mailto:pduplouy@les4y.net]
Sent: Tuesday, February 13, 2001 6:56 AM
To: 'imc-snacc@imc.org'
Subject: Installation problem with the snacc compiler

Hello,

I'm really new in ASN.1 and, of course with the snacc compiler. I hope to use ASN for developping PKI-X package, (thanks to getronics for the already existing code) and specially for the RFC 2511 PKI message.

My problem is quite simple:

I'm runnig a Linux system, base on SuSe distribution. The C compiler is gcc 2.95.2, tcl is 8.3.

The compilation works withiut no problem, but when I try to compile some examples programs, e.g. simple, I receive the following errors:

p-rec.h:45: syntax error before ; (the ChoiceUnion seems not be defined)
dateOfBirth and dateOfHire has incomplete type

the ChildInformation::Print generated routine have a bad generated line: if (??? (name)) {

Can you help me, what is the mistake I make when compiling snacc

Thanks for your help

Best regards,
Patrick

-- 
Patrick Duplouy
pduplouy@les4y.net
 
------_=_NextPart_001_01C095D1.45310D80-- From owner-imc-snacc Tue Feb 13 08:22:57 2001 Received: (from majordomo@localhost) by above.proper.com (8.9.3/8.9.3) id IAA15746 for imc-snacc-bks; Tue, 13 Feb 2001 08:22:57 -0800 (PST) Received: from wfhqex05.gfgsi.com (netva01.wangfed.com [206.137.100.2]) by above.proper.com (8.9.3/8.9.3) with ESMTP id IAA15741 for ; Tue, 13 Feb 2001 08:22:55 -0800 (PST) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2650.21) id ; Tue, 13 Feb 2001 11:26:14 -0500 Message-ID: <0B95FB5619B3D411817E006008A5925945EC22@wfhqex06.gfgsi.com> From: "Pawling, John" To: imc-snacc@imc.org Subject: FW: Problems with the snacc compiler. Date: Tue, 13 Feb 2001 11:26:12 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Jaap: Sorry to disappoint you, this software was originally produced as part of a graduate student project. We have simply adapted it to our free-ware implementation of the SMIME V3 e-mail specifications (and added ASN.1 DER encoding rules). As with most projects with a limited budget, we patch what we can and only modify what we must. My comments on each of your topics follow. 1. The command line -D switch is in the man pages for g++ for "-Dmacro". 2. This problem was reported earlier; it has been modified in the newest SNACC being released now. WE DO NOT TEST WITH THIS FLAG OFF so use at your own risk. You will not have any DER encoding rules with this flag disabled. Also, the new release pre-defines this flag internally, since this is the only way we test. The ability to turn off the flag is only retained to allow previous users to disable our logic. 3. Unfortuntately "snacc.h" is needed; we simply copy it into the delivery directory for the SNACC C++ run-time includes. This file is common to the c-lib, C++-lib and the SNACC compiler (both the BOOT and run-time compilers). I wish to avoid 2 copies in our release if possible. 4. The streams problem has also been pointed out before; it is on our list (no scheduled date) to fix this for consistency. There is very little logic that actually writes to the streams (only the << override operator I believe). Issue of priorities for us, the SNACC compiler is a small part of the system. I would be willing to incorporate such modifications if you are successful in building MS Windows/Linux ports of a consistent streams update!!!! We would have to incorporate such changes to all of our utilities, etc (which presently work fine, hence you can see why it is a low priority, sorry). I did try changing the stream include references at one time, but it was not obvious why I had include reference problems with the MS Windows Visual Studio and no easy way to build. Also, we now support strstream in our utilities, this would have to port to the new streams definitions. 5. I must admit that I have never run into this situation; I could not imagine not using the asn-useful.asn1 or asn-usefulVDA.asn files, they are quite necessary for useful definitions (especially PrintableString OCTET STRING tag). What would you suggest as a default? We could certainly make the SNACC compiler resiliant to a missing useful definition. 6. AND 7. Unfortunately there are some modifications necessary to the ASN definitions themselves. I consider these minor mods acceptable; usually I comment out the original definitions (like "valtyp-SCALAR-BASE + 1") and make up a new defition (like " valtyp-BASE INTEGER-PLUS-1 ::= 11"). We have been lobbying our customer to pay for us to upgrade the SNACC compiler to a newer ASN.1 specification (beyond the 1988 spec supported by SNACC). For the second failure (7.), you will have to substitute the actual values, not a definiton for the tags (I did not realise it was even valid to specify a tag through a definition): val1 INTEGER ::= 10 val2 INTEGER ::= 11 ... value CHOICE { valtypINT [10 --val1-- ] IMPLICIT Tint, valtypUINT [11 --val2-- ] IMPLICIT Tuint } ... These limitations seem to be a minor penalty for a free DER encoding compiler. 8. Since we do not use the TCL compiler features, this has not been tested, nor defined for MS Windows. The original SNACC compiler was not built on MS Windows; this was my port, since I did not need TCL the defines are not present. For Linux, the original Makefiles are used (with minor mods for some of our changes), the TCL should build and work fine. I have attempted to not strip out any code so that users like yourself can re-establish such features. If you are successful in integrating TCL into the MS Visual C++ projects, I am willing to incorporate such definitions into the baseline for you (as well as any notes you may have that I can add to a readme file for the project, attributable to you of course). As to what to do to produce a TCL compliant version; I would not know, but you should be able to figure it out easily enough through the Makefiles on the Linux. The Makefile (if built on a Linux box with TCL installed, so that the ./configure script builds the feature into the Makefile) should provide any link references and defines necessary. I can send our Linux makes if you are interested. The code would also help (perhaps the manual; there is a section on TCL). I would also suggest that the DER encoding rules may have to be checked for TCL code generation. You will also have problems with ANYs and table lookups of ANYs by OID since this logic was modified for C++. Both are isolated, small sections and should be easy to test/fix; you will have to understand how the compiler works. Much of the DER encoding changes (only 7 extra rules) were added to the compiler to produce code used by the run-time application; these changes could easily be adapted to TCL. Good indepth questions and invetigation into the SNACC compiler. Thank you for taking the time to respond. we are continuing to make improvements to the compiler. If you plan to change code; please use the newest version, this will make it easier on this end to incorporate changes into the baseline. Also, this version has a number of fixes. It should be available within the week on our website http://www.getronicsgov.com/index.cfm; or I can send you a copy now. The test routines have been improved (vdatest.cpp under the c++-examples directory); this would help in TCL integration to demonstrate different features. Bob Colestock VDA -----Original Message----- From: Jaap de Wolff [mailto:wolff@softamed.nl] Sent: Monday, February 12, 2001 5:39 AM To: 'imc-snacc@imc.org' Subject: Problems with the snacc compiler. Hello, I am new to ASN.1 and new to snacc. As company we decided recently to use the ASN.1 notation as the way to document our protocols. So I downloaded the snacc sources (v 1.3b4), and compiled them. I am using it under windows NT4.0. And I discovered a few problems: 1- I can't find the commandline switch -D documented. 2- The file "asn-any.h" in c++-lib/inc/ contains: class SNACCDLL_API AsnAny: public AsnType { .... #ifdef VDADER_RULES ~AsnAny(); AsnAny &operator = (const AsnAny &o); }; // AnyDefinedBy is currently the same as AsnAny: typedef AsnAny AsnAnyDefinedBy; #endif /* conditional include */ now if VDADER_RULES is _not_ defined, the class AsnAny has no end. I think the last lines should be: }; // AnyDefinedBy is currently the same as AsnAny: typedef AsnAny AsnAnyDefinedBy; #else }; #endif /* conditional include */ 3- When creating C++ files, those files include "asn-incl.h", which includes the file "snacc.h", also a lot of the files which are included in this file include "snacc.h". I think the created files should _not_ be dependend on snacc.h, but only on files in the c++-lib/inc/ directory. 4- The current release is for the c++ part does (in asn-config.h): #include #include #include #include #include #include ... #ifdef VDADER_RULES //namespace std #ifndef WIN32 #include #else #include #endif #include however according to the ANSI C++ guidelines we should use: #include #include #include #include #include using namespace "std" #ifdef VDADER_RULES //namespace std #include #include from the STL. specialy the microsoft iostream.h can give a lot of trouble, when deriving your own streams, and is a standard. 5- Compiling for C++ crashes if no 'useful types' are given. The same asn.1 module is generating correct c code. In the function TypeLinkBasicType() in line 696 there is a lookup of useful types. This generates a 'Access Violation' if usefulTypeModG == NULL. I think the solution should be always creating the usefulTypeModG, also if no useful types are given. 6- The following piece of code generates the error file "demo.asn", line 6: parse error at symbol "1": Demo { iso(1) ansi(2) usa (3) sfm (4) sseries (5) pdu(6) version (7) } DEFINITIONS ::= BEGIN valtyp-BASE INTEGER ::= 10 -- Scalar types my-define INTEGER ::= valtyp-SCALAR-BASE + 1 END -- of Demo spec 7- The following piece of code generates the error file "demo.asn", line 7: ERROR - tag conflict among the CHOICE elements: Demo { iso(1) ansi(2) usa (3) sfm (4) sseries (5) pdu(6) version (9) } DEFINITIONS ::= BEGIN val1 INTEGER ::= 10 val2 INTEGER ::= 11 ErrDemo ::= SEQUENCE { value CHOICE { valtypINT [val1] IMPLICIT Tint, valtypUINT [val2] IMPLICIT Tuint } } Tint ::= INTEGER (-2147483648 .. 2147483647) Tuint ::= INTEGER (0..4294967295) END -- of Demo spec 8- It is not possible to create tcl code from windows code, with the current project settings. However there is a tcl interpreter for windows (http://dev.scriptics.com/software/tcltk/) What must I do to create a snacc version that supports tcl ? That was it for now. Of course I am willing to cooperate in changing code. --- Jaap de Wolff Wolff@softamed.nl Softamed Nederland B.V. Calandstraat 44 3316 EA Dordrecht Tel. 078 6548787 Fax 078 6548788 www.Softamed.nl From owner-imc-snacc Tue Feb 13 09:04:17 2001 Received: by above.proper.com (8.9.3/8.9.3) id JAA18239 for imc-snacc-bks; Tue, 13 Feb 2001 09:04:17 -0800 (PST) Received: from softamed.nl (a213-84-17-138.adsl.xs4all.nl [213.84.17.138]) by above.proper.com (8.9.3/8.9.3) with ESMTP id JAA18232 for ; Tue, 13 Feb 2001 09:04:15 -0800 (PST) Received: from Spooler by softamed.nl (Mercury/32 v3.01a) ID MO000216; 13 Feb 01 18:05:48 +0100 Received: from spooler by softamed.nl (Mercury/32 v3.01a); 13 Feb 01 18:05:32 +0100 Received: from softamed.SoftaNet (192.168.0.2) by Softamed SMTP Server (Mercury/32 v3.01a) with ESMTP ID MG000215; 13 Feb 01 18:05:22 +0100 Received: by SOFTAMED with Internet Mail Service (5.5.2650.21) id <1LDMQ7D8>; Tue, 13 Feb 2001 18:12:51 +0100 Message-ID: <51734B4BA43FD311960A00105A2DF7CE055DDE@SOFTAMED> From: Jaap de Wolff To: "'Colestock, Robert'" Cc: "'imc-snacc@imc.org'" Subject: RE: Problems with the snacc compiler. Date: Tue, 13 Feb 2001 18:12:48 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: > -----Original Message----- > From: Colestock, Robert [mailto:Robert.Colestock@GetronicsGov.com] > Sent: Tuesday, February 13, 2001 5:10 PM > To: 'wolff@softamed.nl' > Cc: Pawling, John > Subject: RE: Problems with the snacc compiler. > > > Jaap: > > Sorry to disappoint you, this software was originally > produced as part of a > graduate student project. We have simply adapted it to our free-ware > implementation of the SMIME V3 e-mail specifications (and > added ASN.1 DER > encoding rules). As with most projects with a limited > budget, we patch what > we can and only modify what we must. I am not dissappointed, I did expect this. But I thought I best could give all points in one pass, I have no insight in the project, and don't know which points are more, and which less easy to fix. You are right that compiling without usefull types is not useful, and I did find this bug 'by accident'. For me the most important points are point 4 and point 6/7. About point 6/7: I have lots of ASN-code (400K+) which do this kind of things. But maybe I can make a pre-processor to do those things. And the other site: I derive my own streams for years now, and I was happy with the new STL conventions. And because this is only used in the C++ part, it should be easy to change. But that is something I can do myself, and maybe implement I can implement it conditional, so your code can still be used. I will try to do those things. I'm afraid I don't have time for that before you made your release, so it must be added later. You will hear from me. Jaap de Wolff From owner-imc-snacc Fri Feb 16 13:23:50 2001 Received: (from majordomo@localhost) by above.proper.com (8.9.3/8.9.3) id NAA25469 for imc-snacc-bks; Fri, 16 Feb 2001 13:23:50 -0800 (PST) Received: from wfhqex05.gfgsi.com (netva01.wangfed.com [206.137.100.2]) by above.proper.com (8.9.3/8.9.3) with ESMTP id NAA25465 for ; Fri, 16 Feb 2001 13:23:49 -0800 (PST) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2650.21) id ; Fri, 16 Feb 2001 16:27:09 -0500 Message-ID: <0B95FB5619B3D411817E006008A5925945EC78@wfhqex06.gfgsi.com> From: "Pawling, John" To: "Pawling, John" Subject: v1.3 R5 Enhanced SNACC ASN.1 Freeware Date: Fri, 16 Feb 2001 16:27:07 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: All, Getronics Government Solutions has delivered the v1.3 R5 Enhanced SNACC Abstract Syntax Notation.1 (ASN.1) Compiler, C++ library and C library source code compilable for Linux, Sun Solaris 2.7 and Microsoft Windows NT/95/98/2000. The source code and the Enhanced SNACC Software Public License are freely available to everyone from: In past releases, Getronics enhanced the SNACC library to implement the Distinguished Encoding Rules (DER). In the v1.3 R5 SNACC release, Getronics included the following enhancements: 1) Resolved compiler warnings. 2) Enhanced C++ library encode/decode performance. 3) Converted all source code to use CVS configuration management system. 4) Update SNACC readme file. 5) Tested with v1.9 S/MIME Freeware Library (SFL) that uses SNACC to implement the IETF S/MIME v3 set of specifications. 6) Tested with freeware v1.9 Certificate Management Library (CML) that uses SNACC to implement the 2000 X.509 Recommendation and RFC 2459. 7) Tested with freeware v1.5 Access Control Library (ACL) that uses SNACC to provide automated access control. SNACC implements the majority of ASN.1 encoding/decoding rules. SNACC does not support all of the latest ASN.1 features, but there are work-arounds that allow SNACC to be used to produce ASN.1 hex encodings that are identical to those produced by ASN.1 libraries that do support the latest ASN.1 features. Also note that many of the PKIX specs, such as RFC 2459, include 1988-compliant ASN.1 syntax modules which can be compiled using SNACC. The SNACC ASN.1 library is totally unencumbered as stated in the Enhanced SNACC Software Public License. All source code for the Enhanced SNACC software is being provided at no cost and with no financial limitations regarding its use and distribution. Organizations can use the Enhanced SNACC software without paying any royalties or licensing fees. The Internet Mail Consortium (IMC) has established a SNACC web page . The IMC has also established a SNACC mail list which is used to: distribute information regarding SNACC releases; discuss SNACC-related issues; and provide a means for SNACC users to provide feedback, comments, bug reports, etc. Subscription information for the imc-snacc mail list is at the IMC web site listed above. We welcome all feedback regarding the Enhanced SNACC software. If bugs are reported, then we will investigate each reported bug and, if required, will produce a patch or an updated release of the software to repair the bug. This SNACC release announcement was sent to several mail lists, but please send all messages regarding the Enhanced SNACC software to the imc-snacc mail list ONLY. Please do not send messages regarding the Enhanced SNACC software to any of the IETF mail lists. We will respond to all messages sent to the imc-snacc mail list. =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== From owner-imc-snacc Mon Feb 19 04:18:44 2001 Received: (from majordomo@localhost) by above.proper.com (8.9.3/8.9.3) id EAA01032 for imc-snacc-bks; Mon, 19 Feb 2001 04:18:44 -0800 (PST) Received: from mx7.port.ru (mx7.port.ru [194.67.23.44]) by above.proper.com (8.9.3/8.9.3) with ESMTP id EAA01028 for ; Mon, 19 Feb 2001 04:18:42 -0800 (PST) Received: from [195.28.33.228] (helo=SLEPPC) by mx7.port.ru with smtp (Exim 3.14 #4) id 14UpH5-0005Ap-00 for imc-snacc@imc.org; Mon, 19 Feb 2001 15:18:39 +0300 Message-ID: <001501c09a6d$c1295c80$LocalHost@SLEPPC> From: "slep" To: Subject: Enhansed SNACC problem Date: Mon, 19 Feb 2001 15:16:13 +0300 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0011_01C09A86.E58B9840" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0011_01C09A86.E58B9840 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0012_01C09A86.E58B9840" ------=_NextPart_001_0012_01C09A86.E58B9840 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Hello, We are trying to use the compiler=20 v1.3 R4 Enhansed Snacc for TCAP messages=20 processing (according to Q.773 specification of TCAP protocol).=20 We checks this ASN.1 source by OSS ASN.1 Syntax Checker -=20 input ASN.1 module successfully passed the syntax check. When we running Snacc -c -u <...> in Win98 for Tcapmess.asn1 file, = snacc is crashed. Could you help us? Vadim Slep. ------=_NextPart_001_0012_01C09A86.E58B9840 Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable
 Hello,

We are trying to use the compiler

v1.3 R4 Enhansed Snacc for TCAP messages

processing (according to Q.773 specification of TCAP = protocol).=20

We checks this ASN.1 source by OSS ASN.1 Syntax = Checker –=20

input ASN.1 module successfully passed the syntax=20 check.

When we running Snacc -c -u <...>  in Win98 = for=20 Tcapmess.asn1 file, snacc is crashed.

Could you help us?

Vadim Slep.

------=_NextPart_001_0012_01C09A86.E58B9840-- ------=_NextPart_000_0011_01C09A86.E58B9840 Content-Type: application/octet-stream; name="Tcapmess.asn1" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Tcapmess.asn1" TCAPMess { ccitt recommendation 773 modules (2) messages (1) version2 = (2) } DEFINITIONS ::=3D BEGIN EXPORTS OPERATION, ERROR, Component, InvokeIdType; -- Transaction Portion fields MessageType ::=3D CHOICE { unidirectional [APPLICATION 1] IMPLICIT Unidirectional, begin [APPLICATION 2] IMPLICIT Begin, end [APPLICATION 4] IMPLICIT End, continue [APPLICATION 5] IMPLICIT Continue, abort [APPLICATION 7] IMPLICIT Abort } Unidirectional ::=3D SEQUENCE { dialoguePortion DialoguePortion = OPTIONAL, components ComponentPortion } Begin ::=3D SEQUENCE { otid OrigTransactionID, dialoguePortion DialoguePortion OPTIONAL, components ComponentPortion OPTIONAL } End ::=3D SEQUENCE { dtid DestTransactionID, dialoguePortion DialoguePortion OPTIONAL, components ComponentPortion OPTIONAL } Continue ::=3D SEQUENCE { otid OrigTransactionID, dtid DestTransactionID, dialoguePortion DialoguePortion OPTIONAL, components ComponentPortion OPTIONAL } Abort ::=3D SEQUENCE { dtid DestTransactionID, reason CHOICE { p-abortCause P-AbortCause, dialoguePortion DialoguePortion } OPTIONAL } -- NOTE - When the Abort Message is generated by the Transaction = sub-layer, a p-Abort Cause must be present. --IMPORTS dialogue-as-id, DialoguePDU; --dangerous vadik change!! DialoguePortion ::=3D [APPLICATION 11] [UNIVERSAL 8] IMPLICIT SEQUENCE=20 {dialogue-as-id OBJECT IDENTIFIER, dPDU DialoguePDU } --dialogue-as-id { ccitt recommendation q 773 as (1) dialogue-as (1) = version1 (1) } DialoguePDU ::=3D CHOICE { dialogueRequest AARQ-apdu, dialogueResponse AARE-apdu, dialogueAbort ABRT-apdu } AARQ-apdu ::=3D [0] IMPLICIT SEQUENCE {=20 protocol-version [0] IMPLICIT BIT STRING { version1 (0) } DEFAULT { version1 }, application-context-name [1] = OBJECT IDENTIFIER, user-information [30] IMPLICIT OCTET STRING OPTIONAL } AARE-apdu ::=3D [1] IMPLICIT SEQUENCE { protocol-version [0] IMPLICIT BIT STRING { version1 (0) } DEFAULT { version1 }, application-context-name [1] OBJECT IDENTIFIER, result [2] Associate-result, result-source-diagnostic [3] Associate-source-diagnostic, user-information [30] IMPLICIT OCTET STRING OPTIONAL } -- RLRQ PDU is currently not used. -- It is included for completeness only. RLRQ-apdu ::=3D [2] IMPLICIT SEQUENCE { reason [0] IMPLICIT Release-request-reason OPTIONAL, user-information [30] IMPLICIT OCTET STRING OPTIONAL } -- RLRE PDU is currently not used. -- It is included for completeness only RLRE-apdu ::=3D [APPLICATION 3] IMPLICIT SEQUENCE { reason [0] IMPLICIT Release-response-reason OPTIONAL, user-information [30] IMPLICIT OCTET STRING OPTIONAL } ABRT-apdu ::=3D [4] IMPLICIT SEQUENCE { abort-source [0] IMPLICIT ABRT-source, user-information [30] IMPLICIT OCTET STRING OPTIONAL } ABRT-source ::=3D INTEGER { dialogue-service-user (0), dialogue-service-provider (1) } Associate-result ::=3D INTEGER { accepted (0), reject-permanent (1) } Associate-source-diagnostic ::=3D CHOICE { dialogue-service-user [1] INTEGER { null (0), no-reason-given (1), application-context-name-not-supported (2) }, dialogue-service-provider [2] INTEGER { null (0), no-reason-given (1), no-common-dialogue-portion (2) } } -- Release-request-reason is currently not used. -- It is included for completeness only. Release-request-reason ::=3D INTEGER { normal (0), urgent (1), user-defined (30) } -- Release-response-reason is currently not used.=20 -- It is included for completeness only. Release-response-reason ::=3D INTEGER { normal (0), not-finished (1), user-defined (30) } -- The dialogue portion carries the dialogue control PDUs as value of = the external data type. -- The direct reference should be set to { ccitt recommendation q 773 as = (1) dialogue-as (1) version (1) } -- if structured dialogue is used and to { ccitt recommendation q 773 as = (1) unidialogue-as (2) version (1) } -- if unstructured dialogue is used or any user defined abstract syntax = name when only user information -- is carried (e.g. when user information is sent in a 1988 Abort = message). OrigTransactionID ::=3D [APPLICATION 8] IMPLICIT OCTET STRING (SIZE = (1..4) ) DestTransactionID ::=3D [APPLICATION 9] IMPLICIT OCTET STRING (SIZE = (1..4) ) P-AbortCause ::=3D [APPLICATION 10] IMPLICIT INTEGER { unrecognizedMessageType (0), unrecognizedTransactionID (1), badlyFormattedTransactionPortion (2), incorrectTransactionPortion (3), resourceLimitation (4) } -- COMPONENT PORTION. The last field in the transaction portion of the = TCAP message is the Component Portion. -- The Component Portion may be absent. ComponentPortion ::=3D [APPLICATION 12] IMPLICIT SEQUENCE SIZE (1..MAX) = OF Component -- Component Portion fields -- COMPONENT TYPE. Recommendation X.229 defines four Application = Protocol Data Units (APDUs). -- TCAP adds returnResultNotLast to allow for the segmentation of a = result. Component ::=3D CHOICE { invoke [1] IMPLICIT Invoke, returnResultLast [2] IMPLICIT ReturnResult, returnError [3] IMPLICIT ReturnError, reject [4] IMPLICIT Reject, returnResultNotLast [7] IMPLICIT ReturnResult } -- The Components are sequences of data elements. Invoke ::=3D SEQUENCE { invokeID InvokeIdType, linkedID [0] IMPLICIT InvokeIdType OPTIONAL, operationCode OPERATION, parameter ANY DEFINED BY operationCode OPTIONAL } -- ANY is filled by the single ASN.1 data type following the keyword = PARAMETER or the keyword ARGUMENT -- in the type definition of a particular operation. ReturnResult ::=3D SEQUENCE { invokeID InvokeIdType, result SEQUENCE { operationCode OPERATION, parameter ANY DEFINED BY operationCode=20 } OPTIONAL } -- ANY is filled by the single ASN.1 datatype following the keyword = RESULT in the type definition -- of a particular operation. ReturnError ::=3D SEQUENCE { invokeID InvokeIdType, errorCode ERROR, parameter ANY DEFINED BY errorCode OPTIONAL } -- ANY is filled by the single ASN.1 data type following the keyword = PARAMETER in the type definition -- of a particular error. Reject ::=3D SEQUENCE { invokeID CHOICE {=09 derivable InvokeIdType, not-derivable NULL }, problem CHOICE { generalProblem [0] IMPLICIT GeneralProblem, invokeProblem [1] IMPLICIT InvokeProblem, returnResultProblem [2] IMPLICIT ReturnResultProblem, returnErrorProblem [3] IMPLICIT ReturnErrorProblem } } InvokeIdType ::=3D INTEGER (-128..127) -- PROBLEMS GeneralProblem ::=3D INTEGER { unrecognizedComponent (0), mistypedComponent (1), badlyStructuredComponent (2) } InvokeProblem ::=3D INTEGER { duplicateInvokeID (0), unrecognizedOperation (1), mistypedParameter (2), resourceLimitation (3), initiatingRelease (4), unrecognizedLinkedID (5), linkedResponseUnexpected (6), unexpectedLinkedOperation (7) } ReturnResultProblem ::=3D INTEGER { unrecognizedInvokeID (0), returnResultUnexpected (1), mistypedParameter (2) } ReturnErrorProblem ::=3D INTEGER { unrecognizedInvokeID (0), returnErrorUnexpected (1), unrecognizedError (2), unexpectedError (3), mistypedParameter (4) } -- OPERATIONS -- Operations are specified with the OPERATION MACRO. -- When an operation is specified, the valid parameter set, results, and = errors for that operation are indicated. -- Default values and optional parameters are permitted. OPERATION MACRO ::=3D BEGIN TYPE NOTATION ::=3D Parameter Result Errors LinkedOperations VALUE NOTATION ::=3D value (VALUE CHOICE { localValue INTEGER } ) -- ,globalValue OBJECT IDENTIFIER } ) Parameter ::=3D ArgKeyword NamedType | empty ArgKeyword ::=3D "ARGUMENT" | "PARAMETER" Result ::=3D "RESULT" ResultType | empty Errors ::=3D "ERRORS" "{"ErrorNames"}" | empty LinkedOperations ::=3D "LINKED" "{"LinkedOperationNames"}" | empty ResultType ::=3D NamedType | empty ErrorNames ::=3D ErrorList | empty ErrorList ::=3D Error | ErrorList "," Error Error ::=3D value (ERROR) -- shall reference an error value | type -- shall reference an error type -- if no error value is specified LinkedOperationNames ::=3D OperationList | empty OperationList ::=3D Operation | OperationList "," Operation Operation ::=3D value (OPERATION) -- shall reference an operation value | type -- shall reference an operation type if -- no operation value is specified NamedType ::=3D identifier type | type END -- ERRORS -- Errors are specified with the ERROR MACRO. -- When an error is specified, the valid parameters for that error are = indicated. -- Default values and optional parameters are permitted. ERROR MACRO ::=3D BEGIN TYPE NOTATION ::=3D Parameter VALUE NOTATION ::=3D value (VALUE CHOICE { localValue INTEGER } ) -- ,globalValue OBJECT IDENTIFIER } ) Parameter ::=3D "PARAMETER" NamedType | empty NamedType ::=3D identifier type | type END END -- TCAPMessages ------=_NextPart_000_0011_01C09A86.E58B9840-- From owner-imc-snacc Tue Feb 27 11:24:57 2001 Received: by above.proper.com (8.9.3/8.9.3) id LAA13072 for imc-snacc-bks; Tue, 27 Feb 2001 11:24:57 -0800 (PST) Received: from mail.motus.qc.ca (mail.motus.qc.ca [207.236.155.221]) by above.proper.com (8.9.3/8.9.3) with ESMTP id LAA13068 for ; Tue, 27 Feb 2001 11:24:55 -0800 (PST) From: eboudreault@motus.com Subject: To: imc-snacc@imc.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: Date: Tue, 27 Feb 2001 14:25:09 -0500 X-MIMETrack: Serialize by Router on motus1/Motus Technologies Inc.(Release 5.0.5 |September 22, 2000) at 2001-02-27 14:25:42 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id LAA13069 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, I don't understand what i have to fix and why tag0 is not used. Somebody can help me ???? void AttributeTypeAndDistinguishedValueSetOfSeq::BDecContent (BUF_TYPE b, AsnTag /*tag0*/, AsnLen elmtLen0, AsnLen &bytesDecoded, ENV_TYPE env) { AsnTag tag1; AsnLen seqBytesDecoded = 0; AsnLen elmtLen1; <------------------------------------------------- ????? // ANY type <------------------------------------------------- ????? distingAttrValue = new AsnAny; DEC_LOAD_ANYBUF(distingAttrValue, b, seqBytesDecoded, env); tag1 = BDecTag (b, seqBytesDecoded, env); if ((tag1 == MAKE_TAG_ID (UNIV, CONS, SET_TAG_CODE))) { elmtLen1 = BDecLen (b, seqBytesDecoded, env); contextList.BDecContent (b, tag1, elmtLen1, seqBytesDecoded, env); } else { Asn1Error << "ERROR - SEQUENCE is missing non-optional elmt." << endl; longjmp (env, -108); } bytesDecoded += seqBytesDecoded; if (elmtLen0 == INDEFINITE_LEN) { BDecEoc (b, bytesDecoded, env); return; } else if (seqBytesDecoded != elmtLen0) { Asn1Error << "ERROR - Length discrepancy on sequence." << endl; longjmp (env, -109); } else return; } // AttributeTypeAndDistinguishedValueSetOfSeq::BDecContent Thanks . ********************************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ********************************************************************************************** From owner-imc-snacc Tue Feb 27 13:51:34 2001 Received: by above.proper.com (8.9.3/8.9.3) id NAA21298 for imc-snacc-bks; Tue, 27 Feb 2001 13:51:34 -0800 (PST) Received: from wfhqex05.gfgsi.com (netva01.wangfed.com [206.137.100.2]) by above.proper.com (8.9.3/8.9.3) with ESMTP id NAA21293 for ; Tue, 27 Feb 2001 13:51:33 -0800 (PST) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2650.21) id ; Tue, 27 Feb 2001 16:54:51 -0500 Message-ID: <0B95FB5619B3D411817E006008A5925945ECEC@wfhqex06.gfgsi.com> From: "Pawling, John" To: imc-snacc@imc.org Subject: FW: Date: Tue, 27 Feb 2001 16:54:47 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id NAA21294 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: -----Original Message----- From: Colestock, Robert Sent: Tuesday, February 27, 2001 3:33 PM To: 'eboudreault@motus.com' Cc: Pawling, John Subject: RE: eboudreault: I cannot tell why the SNACC compiler wrote the code in this manner; please send me the ASN.1 excerpt that caused this error. I suspect it is due to a confusion in a Sequence, Sequence of, Set or Set of with other Anys. I have found that OPTIONAL elements sometimes cause ambiguous(?) decodings, causing such an error. This should have been indicated at the SNACC copilation level before the .C code was output. What you have to fix is to tag the ANY (e.g. [3]) so that the SNACC compiler can correctly recognize the OPTIONAL Any if present. You must have other definitions that confuse the decoding process since an ANY can be any ASN.1 type (e.g. in a Sequence). Bob Colestock VDA -----Original Message----- From: eboudreault@motus.com [mailto:eboudreault@motus.com] Sent: Tuesday, February 27, 2001 2:25 PM To: imc-snacc@imc.org Subject: Hi, I don't understand what i have to fix and why tag0 is not used. Somebody can help me ???? void AttributeTypeAndDistinguishedValueSetOfSeq::BDecContent (BUF_TYPE b, AsnTag /*tag0*/, AsnLen elmtLen0, AsnLen &bytesDecoded, ENV_TYPE env) { AsnTag tag1; AsnLen seqBytesDecoded = 0; AsnLen elmtLen1; <------------------------------------------------- ????? // ANY type <------------------------------------------------- ????? distingAttrValue = new AsnAny; DEC_LOAD_ANYBUF(distingAttrValue, b, seqBytesDecoded, env); tag1 = BDecTag (b, seqBytesDecoded, env); if ((tag1 == MAKE_TAG_ID (UNIV, CONS, SET_TAG_CODE))) { elmtLen1 = BDecLen (b, seqBytesDecoded, env); contextList.BDecContent (b, tag1, elmtLen1, seqBytesDecoded, env); } else { Asn1Error << "ERROR - SEQUENCE is missing non-optional elmt." << endl; longjmp (env, -108); } bytesDecoded += seqBytesDecoded; if (elmtLen0 == INDEFINITE_LEN) { BDecEoc (b, bytesDecoded, env); return; } else if (seqBytesDecoded != elmtLen0) { Asn1Error << "ERROR - Length discrepancy on sequence." << endl; longjmp (env, -109); } else return; } // AttributeTypeAndDistinguishedValueSetOfSeq::BDecContent Thanks . **************************************************************************** ****************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com **************************************************************************** ****************** From owner-imc-snacc Fri Mar 23 03:31:01 2001 Received: by above.proper.com (8.9.3/8.9.3) id DAA00608 for imc-snacc-bks; Fri, 23 Mar 2001 03:31:01 -0800 (PST) Received: from ntserver.hps.co.ma ([212.217.52.196]) by above.proper.com (8.9.3/8.9.3) with ESMTP id DAA00602 for ; Fri, 23 Mar 2001 03:30:57 -0800 (PST) Received: from faycal.hps.co.ma ([192.42.172.82]) by ntserver.hps.co.ma (Netscape Messaging Server 3.5) with SMTP id 226 for ; Fri, 23 Mar 2001 11:27:18 +0000 Received: by localhost with Microsoft MAPI; Fri, 23 Mar 2001 11:32:05 -0000 Message-ID: <01C0B38C.E30F54C0.elmotie@hps.co.ma> From: "rachid elmotie" To: "'imc-snacc@imc.org'" Subject: Snacc error Date: Fri, 23 Mar 2001 11:32:03 -0000 Organization: hps X-Mailer: Messagerie Internet de Microsoft/MAPI - 8.0.0.4211 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hello I have installed the Snacc in my computer, so i have encountred a greet probleme when i tried to compile " test-lib.c " . so the generated error was : : \c-lib\inc\asn-config.h(219) : fatal error C1189: #error : " don't know what buffer type to use! " i want just to say that the same error is generated when i compile others examples. So, please if you have any solution to resolve this probleme, make me informed. Best regards From owner-imc-snacc Fri Mar 23 06:41:30 2001 Received: by above.proper.com (8.9.3/8.9.3) id GAA14541 for imc-snacc-bks; Fri, 23 Mar 2001 06:41:30 -0800 (PST) Received: from wfhqex05.gfgsi.com (netva01.wangfed.com [206.137.100.2]) by above.proper.com (8.9.3/8.9.3) with ESMTP id GAA14535 for ; Fri, 23 Mar 2001 06:41:29 -0800 (PST) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2650.21) id ; Fri, 23 Mar 2001 09:41:45 -0500 Message-ID: <0B95FB5619B3D411817E006008A5925945EEC8@wfhqex06.gfgsi.com> From: "Pawling, John" To: "'rachid elmotie'" , "'imc-snacc@imc.org'" Subject: RE: Snacc error Date: Fri, 23 Mar 2001 09:41:44 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: -----Original Message----- From: Colestock, Robert Sent: Thursday, March 22, 2001 5:02 PM To: 'elmotie@hps.co.ma' Cc: Pawling, John Subject: RE: Snacc rachid: Sorry, we only use the C++ side of the SNACC compiler. We have been updating some portions of the "C" library, but I do not keep up with the "C" test program(s). This particular error has to do with the buffer choice, the old SNACC manual describes some of the choices you must make (through the command line "-D" or compiler define) in order to specify which buffer scheme to use. In C++ there was only 1 choice and no flags. The project or makefile should have indicated a choice for this particular test. Our release has a copy of the old SNACC manual in ./SNACC/doc/snacc-a5.ps (postscript). I can send you a .pdf copy if you are interested. After looking at the test-lib makefile, it specifies "-DUSE_SBUF" (which is the most common buffer). You should use this flag on any files that include the "C" SNACC includes. Bob Colestock VDA -----Original Message----- From: rachid elmotie [mailto:elmotie@hps.co.ma] Sent: Friday, March 23, 2001 6:32 AM To: 'imc-snacc@imc.org' Subject: Snacc error Hello I have installed the Snacc in my computer, so i have encountred a greet probleme when i tried to compile " test-lib.c " . so the generated error was : : \c-lib\inc\asn-config.h(219) : fatal error C1189: #error : " don't know what buffer type to use! " i want just to say that the same error is generated when i compile others examples. So, please if you have any solution to resolve this probleme, make me informed. Best regards From owner-imc-snacc Tue Apr 24 13:49:53 2001 Received: by above.proper.com (8.9.3/8.9.3) id NAA18311 for imc-snacc-bks; Tue, 24 Apr 2001 13:49:53 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.9.3/8.9.3) with ESMTP id NAA18303 for ; Tue, 24 Apr 2001 13:49:51 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2650.21) id ; Tue, 24 Apr 2001 16:50:38 -0400 Message-ID: <0B95FB5619B3D411817E006008A59259692A92@wfhqex06.gfgsi.com> From: "Pawling, John" To: "Pawling, John" Subject: v1.3 R6 Enhanced SNACC ASN.1 Freeware Date: Tue, 24 Apr 2001 16:50:30 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: All, Getronics Government Solutions has delivered the v1.3 R6 Enhanced SNACC Abstract Syntax Notation.1 (ASN.1) Compiler, C++ library and C library source code compilable for Linux, Sun Solaris 2.7 and Microsoft Windows NT/98/2000. The source code and the Enhanced SNACC Software Public License are freely available to everyone from: In past releases, Getronics enhanced the SNACC library to implement the Distinguished Encoding Rules (DER). In the v1.3 R6 SNACC release, Getronics included the following enhancements: 1) Fixes bugs in SNACC C Library regarding the handling of multi-byte characters. 2) Tested with v1.10 S/MIME Freeware Library (SFL) that uses SNACC to implement the IETF S/MIME v3 set of specifications. 3) Tested with freeware v1.9.1 Certificate Management Library (CML) that uses SNACC to implement the 2000 X.509 Recommendation and RFC 2459. 4) Tested with freeware v1.5 Access Control Library (ACL) that uses SNACC to provide automated access control. SNACC implements the majority of ASN.1 encoding/decoding rules. SNACC does not support all of the latest ASN.1 features, but there are work-arounds that allow SNACC to be used to produce ASN.1 hex encodings that are identical to those produced by ASN.1 libraries that do support the latest ASN.1 features. Also note that many of the PKIX specs, such as RFC 2459, include 1988-compliant ASN.1 syntax modules which can be compiled using SNACC. The SNACC ASN.1 library is totally unencumbered as stated in the Enhanced SNACC Software Public License. All source code for the Enhanced SNACC software is being provided at no cost and with no financial limitations regarding its use and distribution. Organizations can use the Enhanced SNACC software without paying any royalties or licensing fees. The Internet Mail Consortium (IMC) has established a SNACC web page . The IMC has also established a SNACC mail list which is used to: distribute information regarding SNACC releases; discuss SNACC-related issues; and provide a means for SNACC users to provide feedback, comments, bug reports, etc. Subscription information for the imc-snacc mail list is at the IMC web site listed above. We welcome all feedback regarding the Enhanced SNACC software. If bugs are reported, then we will investigate each reported bug and, if required, will produce a patch or an updated release of the software to repair the bug. This SNACC release announcement was sent to several mail lists, but please send all messages regarding the Enhanced SNACC software to the imc-snacc mail list ONLY. Please do not send messages regarding the Enhanced SNACC software to any of the IETF mail lists. We will respond to all messages sent to the imc-snacc mail list. =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== From owner-imc-snacc Thu Apr 26 11:40:47 2001 Received: by above.proper.com (8.9.3/8.9.3) id LAA06652 for imc-snacc-bks; Thu, 26 Apr 2001 11:40:47 -0700 (PDT) Received: from mtk-mail1.mitretek.org (mtk-mail1.mitretek.org [206.241.50.65]) by above.proper.com (8.9.3/8.9.3) with ESMTP id LAA06648 for ; Thu, 26 Apr 2001 11:40:46 -0700 (PDT) From: kds@mitretek.org Received: from mail1.mitretek.org (mail1.mitretek.org [172.16.49.31]) by mtk-mail1.mitretek.org (8.9.3+Sun/8.9.3) with ESMTP id OAA24207 for ; Thu, 26 Apr 2001 14:40:17 -0400 (EDT) Received: from tsfsrv.mitretek.org ([206.241.167.1]) by mail1.mitretek.org (Lotus Domino Release 5.0.4) with ESMTP id 2001042614401650:15404 ; Thu, 26 Apr 2001 14:40:16 -0400 Received: from localhost (localhost [127.0.0.1]) by localhost (8.12.0.Beta5/8.12.0.Beta5/Debian 8.12.0-1) with ESMTP id f3QIiV3j005494 for ; Thu, 26 Apr 2001 14:44:35 -0400 Date: Thu, 26 Apr 2001 14:44:30 -0400 (EDT) X-X-Sender: Reply-To: To: Subject: SNACC integer size too small for PKI ? Message-ID: MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on Mail1/Mitretek Systems(Release 5.0.4 |June 8, 2000) at 04/26/2001 02:40:16 PM, Serialize by Router on Mail1/Mitretek Systems(Release 5.0.4 |June 8, 2000) at 04/26/2001 02:40:17 PM, Serialize complete at 04/26/2001 02:40:17 PM Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hey. Quick question for whoever out there can help... Various PKI structures, such as X509 certificates (field: certificateSerialNumber), contain fields of asn.1 type "INTEGER" In common usage, these serial numbers tend to be very large (16 bytes or so), but SNACC appears to be have its internal type AsnIntType tied to 32 bit intereger. So- I'm having problems getting SNACC to create or parse just about anything PKI related. I get AsnInt::BDecContent: ERROR - integer is too big to decode when I try to decode, and cannot find any method to allow me to load the internal AsnInt state to a large value to try and encode. Is there some other SNACC type I should be using? (LONG INTEGER doesn't appear to parse.) Should I try to trick SNACC by creating my own pre-compiled code type that mimics "OCTET STRING" but changes the TAG to "UNIV,PRIM,INTEGER_TAG_CODE" ? Any ideas would be most appreicated! - Ken Stillson, kds@mitretek.org -- | Ken Stillson | stillson@mitretek.org | | Sr. Principal Engineer | voice: (703) 610-2965 | | Mitretek Systems | fax: (703) 610-2984 | From owner-imc-snacc Thu Apr 26 12:10:29 2001 Received: by above.proper.com (8.9.3/8.9.3) id MAA07219 for imc-snacc-bks; Thu, 26 Apr 2001 12:10:29 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.9.3/8.9.3) with ESMTP id MAA07215 for ; Thu, 26 Apr 2001 12:10:27 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2650.21) id ; Thu, 26 Apr 2001 15:11:25 -0400 Message-ID: <0B95FB5619B3D411817E006008A592592C2DE2@wfhqex06.gfgsi.com> From: "Nicholas, Richard" To: imc-snacc@imc.org Subject: RE: SNACC integer size too small for PKI ? Date: Thu, 26 Apr 2001 15:11:24 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Ken, In the Certificate Management Library we wrote for the U.S. DoD, we changed the ASN.1 definitions for the productions containing large INTEGERs similar to the following example from X.509: CertificateSerialNumber ::= [UNIVERSAL 2] IMPLICIT OCTET STRING -- originally INTEGER SNACC would then correctly generate encoding/decoding functions to handle those large ASN.1 INTEGERs, by treating them as OCTET STRINGs, which they essentially are. This solution does require you to modify the ASN.1 syntax and you must be able to anticipate ahead of time which INTEGERs need this mod. The best solution is to modify the SNACC library to handle INTEGERs larger than a 32-bit integer. I believe that is one of the proposed changes to be included in the next release of the Getronics SNACC code. I think that version is scheduled for release in late July. - Rich --------------------------- Richard E. Nicholas Principal Secure Systems Engineer Getronics Government Solutions, LLC Richard.Nicholas@GetronicsGov.com (301) 939-2722 > -----Original Message----- > From: kds@mitretek.org [mailto:kds@mitretek.org] > Sent: Thursday, April 26, 2001 2:45 PM > To: imc-snacc@imc.org > Subject: SNACC integer size too small for PKI ? > > > > Hey. Quick question for whoever out there can help... > > Various PKI structures, such as X509 certificates (field: > certificateSerialNumber), contain fields of asn.1 type "INTEGER" > > In common usage, these serial numbers tend to be very large > (16 bytes or > so), but SNACC appears to be have its internal type > AsnIntType tied to 32 > bit intereger. > > So- I'm having problems getting SNACC to create or parse just about > anything PKI related. I get > AsnInt::BDecContent: ERROR - integer is too big to decode > when I try to decode, and cannot find any method to allow > me to load the > internal AsnInt state to a large value to try and encode. > > Is there some other SNACC type I should be using? > (LONG INTEGER doesn't appear to parse.) > > Should I try to trick SNACC by creating my own pre-compiled > code type that > mimics "OCTET STRING" but changes the TAG to > "UNIV,PRIM,INTEGER_TAG_CODE" ? > > Any ideas would be most appreicated! > > - Ken Stillson, > kds@mitretek.org > > -- > | Ken Stillson | stillson@mitretek.org | > | Sr. Principal Engineer | voice: (703) 610-2965 | > | Mitretek Systems | fax: (703) 610-2984 | From owner-imc-snacc Thu Apr 26 12:21:03 2001 Received: by above.proper.com (8.9.3/8.9.3) id MAA07395 for imc-snacc-bks; Thu, 26 Apr 2001 12:21:03 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.9.3/8.9.3) with ESMTP id MAA07391 for ; Thu, 26 Apr 2001 12:21:02 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2650.21) id ; Thu, 26 Apr 2001 15:22:00 -0400 Message-ID: From: "Colestock, Robert" To: "'kds@mitretek.org'" Cc: "Pawling, John" , "'imc-snacc@imc.org'" Subject: RE: SNACC integer size too small for PKI ? Date: Thu, 26 Apr 2001 15:21:59 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Ken: That is exactly what we do. We create a special BigIntegerString definition with the integer tag and treat it as an Octet String. You must redefine the ASN.1 defintion to use this new definition. The syntax is below: BigIntegerStr ::= [UNIVERSAL 2] IMPLICIT OCTET STRING Sorry, we have this fixed in our application, but have not moved it to SNACC (yet). We have a bucket of functionality that supplements this class to handle the 0 extension of (negative) integers that follow the big integer rules for signature processing, if this is of interest to you. This is only an issue if you try to place binary data into the Integer definition, if the upper bit happens to be "1", you do not want sign extension. Bob Colestock VDA. -----Original Message----- From: kds@mitretek.org [mailto:kds@mitretek.org] Sent: Thursday, April 26, 2001 2:45 PM To: imc-snacc@imc.org Subject: SNACC integer size too small for PKI ? Hey. Quick question for whoever out there can help... Various PKI structures, such as X509 certificates (field: certificateSerialNumber), contain fields of asn.1 type "INTEGER" In common usage, these serial numbers tend to be very large (16 bytes or so), but SNACC appears to be have its internal type AsnIntType tied to 32 bit intereger. So- I'm having problems getting SNACC to create or parse just about anything PKI related. I get AsnInt::BDecContent: ERROR - integer is too big to decode when I try to decode, and cannot find any method to allow me to load the internal AsnInt state to a large value to try and encode. Is there some other SNACC type I should be using? (LONG INTEGER doesn't appear to parse.) Should I try to trick SNACC by creating my own pre-compiled code type that mimics "OCTET STRING" but changes the TAG to "UNIV,PRIM,INTEGER_TAG_CODE" ? Any ideas would be most appreicated! - Ken Stillson, kds@mitretek.org -- | Ken Stillson | stillson@mitretek.org | | Sr. Principal Engineer | voice: (703) 610-2965 | | Mitretek Systems | fax: (703) 610-2984 | From owner-imc-snacc Fri Apr 27 11:42:46 2001 Received: by above.proper.com (8.9.3/8.9.3) id LAA13545 for imc-snacc-bks; Fri, 27 Apr 2001 11:42:46 -0700 (PDT) Received: from mtk-mail1.mitretek.org (mtk-mail1.mitretek.org [206.241.50.65]) by above.proper.com (8.9.3/8.9.3) with ESMTP id LAA13540 for ; Fri, 27 Apr 2001 11:42:44 -0700 (PDT) From: kds@mitretek.org Received: from mail1.mitretek.org (mail1.mitretek.org [172.16.49.31]) by mtk-mail1.mitretek.org (8.9.3+Sun/8.9.3) with ESMTP id OAA11810; Fri, 27 Apr 2001 14:42:15 -0400 (EDT) Received: from tsfsrv.mitretek.org ([206.241.167.1]) by mail1.mitretek.org (Lotus Domino Release 5.0.4) with ESMTP id 2001042714421505:23385 ; Fri, 27 Apr 2001 14:42:15 -0400 Received: from localhost (localhost [127.0.0.1]) by localhost (8.12.0.Beta5/8.12.0.Beta5/Debian 8.12.0-1) with ESMTP id f3RIkk3j007486; Fri, 27 Apr 2001 14:46:46 -0400 Date: Fri, 27 Apr 2001 14:46:42 -0400 (EDT) X-X-Sender: Reply-To: To: "Nicholas, Richard" cc: Subject: RE: SNACC integer size too small for PKI ? In-Reply-To: <0B95FB5619B3D411817E006008A592592C2DE2@wfhqex06.gfgsi.com> Message-ID: MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on Mail1/Mitretek Systems(Release 5.0.4 |June 8, 2000) at 04/27/2001 02:42:15 PM, Serialize by Router on Mail1/Mitretek Systems(Release 5.0.4 |June 8, 2000) at 04/27/2001 02:42:15 PM, Serialize complete at 04/27/2001 02:42:15 PM Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Thanks guys- that appears to do the trick- although it's worth noting for the record that it appears that sometimes one must PREPEND the integer octet string with the byte 0x00 to prevent confusion about whether the integer is negative or not.. Thanks again, - Ken > In the Certificate Management Library we wrote for the U.S. DoD, we changed > the ASN.1 definitions for the productions containing large INTEGERs similar > to the following example from X.509: > > CertificateSerialNumber ::= [UNIVERSAL 2] IMPLICIT OCTET STRING > -- originally > INTEGER -- | Ken Stillson | stillson@mitretek.org | | Sr. Principal Engineer | voice: (703) 610-2965 | | Mitretek Systems | fax: (703) 610-2984 | From owner-imc-snacc Fri Apr 27 11:48:22 2001 Received: (from majordomo@localhost) by above.proper.com (8.9.3/8.9.3) id LAA13696 for imc-snacc-bks; Fri, 27 Apr 2001 11:48:22 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.9.3/8.9.3) with ESMTP id LAA13692 for ; Fri, 27 Apr 2001 11:48:21 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2650.21) id ; Fri, 27 Apr 2001 14:49:19 -0400 Message-ID: <0B95FB5619B3D411817E006008A59259692ACA@wfhqex06.gfgsi.com> From: "Pawling, John" To: "'kds@mitretek.org'" Cc: imc-snacc@imc.org Subject: RE: SNACC integer size too small for PKI ? Date: Fri, 27 Apr 2001 14:49:17 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C0CF4A.C3596880" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C0CF4A.C3596880 Content-Type: text/plain; charset="iso-8859-1" Ken, We have written pre-processing and post-processing code that implements the rules for processing large ASN.1 INTEGERs documented in the attached message. =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== -----Original Message----- From: kds@mitretek.org [mailto:kds@mitretek.org] Sent: Friday, April 27, 2001 2:47 PM To: Nicholas, Richard Cc: imc-snacc@imc.org Subject: RE: SNACC integer size too small for PKI ? Thanks guys- that appears to do the trick- although it's worth noting for the record that it appears that sometimes one must PREPEND the integer octet string with the byte 0x00 to prevent confusion about whether the integer is negative or not.. Thanks again, - Ken > In the Certificate Management Library we wrote for the U.S. DoD, we changed > the ASN.1 definitions for the productions containing large INTEGERs similar > to the following example from X.509: > > CertificateSerialNumber ::= [UNIVERSAL 2] IMPLICIT OCTET STRING > -- originally > INTEGER -- | Ken Stillson | stillson@mitretek.org | | Sr. Principal Engineer | voice: (703) 610-2965 | | Mitretek Systems | fax: (703) 610-2984 | ------_=_NextPart_000_01C0CF4A.C3596880 Content-Type: message/rfc822 Content-Description: Re: Encoding of INTEGER fields in PKIX certs Message-ID: <33BD629222C0D211B6DB0060085ACF311CFB46@WFHQEX03> From: John Pawling To: "'pgut001@cs.auckland.ac.nz'" , "'IETF-PKIX@LISTS.TANDEM.COM'" , "'dpkemp@missi.ncsc.mil'" Subject: Re: Encoding of INTEGER fields in PKIX certs Date: Wed, 19 May 1999 11:38:34 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) X-Attachments: Content-Type: text/plain; charset="iso-8859-1" All, The US Department of Defense MISSI Key Privilege Certificate Management Working Group (KPCMWG) debated the issue of encoding large INTEGERs raised by Dave Kemp in his original msg in this chain. The MISSI KPCMWG came to the same conclusion as Peter stated in the enclosed msg that X.680 must be followed and decided to adopt the following strategy: Rules for ASN.1 encoding INTEGER values generated by the crypto token (i.e. hardware and/or software that implements the crypto algorithms): IF the crypto token generates an INTEGER value in which the most significant 9 bits are all set to 0, THEN the encoding software deletes the most significant octet from the octets to be encoded. This rule is applied repeatedly to the remaining octets until the most significant 9 bits are not all set to 0. IF the crypto token generates an INTEGER value in which the most significant bit (MSB) is set to 1, THEN the encoding software prepends a single octet in which every bit is set to 0 to the octets to be encoded. Rules for ASN.1 decoding INTEGER values to be supplied to the crypto token: 1) IF the encoded value is "missing" octets (i.e. there are fewer than the expected number of octets) THEN the decoding software ensures that the MSB is 0 and, if so, prepends the appropriate number of octets in which every bit is set to 0 to the decoded value to obtain the value to be supplied to the crypto token. If the MSB of the value encoded in the certificate is set to 1, then an error condition is reported. 2) IF the encoded value includes an "extra" octet (i.e. the length of the decoded value is one greater that what is expected) THEN the decoding software ensures that every bit in the most significant octet is set to 0 and, if so, deletes the most significant octet from the decoded value to obtain the value to be supplied to the crypto token. If the most significant octet contains a bit set to 1, then an error condition is reported. Example 1: Encoding: The software uses the crypto token to generate a 128 byte DSA public key in which the most significant octets are "FF0B". The aforementioned encoding rules are applied. Because the MSB is set to 1, then the software prepends a single octet in which every bit is set to 0 to the octets to be encoded. In this case, a 129 byte DSA public key is encoded in the DSAPublicKey ASN.1 INTEGER in which the most significant octets are "00FF0B" Decoding: The certificate-using software discovers that a 129 byte DSA public key in which the most significant octets are "00FF0B" is encoded in the certificate. Because the crypto token demands a 128 byte DSA public key, the decoding software ensures that every bit in the most significant octet is set to 0 and deletes the most significant octet from the decoded value to obtain the value to be supplied to the crypto token to obtain a 128 byte value in which the most significant octets are "FF0B". Example 2: Encoding: The software uses the crypto token to generate a 128 byte DSA public key in which the most significant octets are "001FFF". The aformentioned encoding rules are applied. Because the most significant 9 bits are all set to 0, then the most significant octet is not included in the encoding of the public key. The aforementioned encoding rules are applied to the remaining octets. The most significant nine bits are neither all set to 1 nor all set to 0, so the ASN.1 rules are satisfied. In this case, a 127 byte DSA public key value is encoded in the DSAPublicKey ASN.1 INTEGER in which the most significant octets are "1FFF" Decoding: The certificate using software discovers that a 127 byte DSA public key in which the most significant octets are "1FFF" is encoded in the certificate. Because the cryto token demands a 128 byte public key and because the MSB of the decoded value is 0, then the decoding software prepends an octet consisting of all zeroes (i.e. 00) to the decoded value to obtain a 128 byte value in which the most significant octets are "001FFF". Example 3: Encoding: The software uses the crypto token to generate a 128 byte DSA public key in which the most significant octets are "00001FFF". The aformentioned encoding rules are applied. Because the most significant 9 bits are all set to 0, then the most significant octet is not included in the encoding of the public key. The aforementioned encoding rules are applied to the remaining octets. Because the most significant 9 bits of the remaining octets are all set to 0, then the most significant of the remaining octets is also not included in the encoding of the public key. The aformentioned encoding rules are applied to the remaining octets. The most significant nine bits are neither all set to 1 nor all set to 0, so the ASN.1 rules are satisfied. In this case, a 126 byte DSA public key value is encoded in the DSAPublicKey ASN.1 INTEGER as in which the most significant octets are "1FFF" Decoding: The certificate using software discovers that a 126 byte DSA public key in which the most significant octets are "1FFF" is encoded in the certificate. Because the cryto token demands a 128 byte public key and because the MSB of the decoded value is 0, then the decoding software prepends two octets each of which consist of all zeroes to the decoded value to obtain a 128 byte value in which the most significant octets are "00001FFF". ================================ John Pawling jsp@jgvandyke.com J.G. Van Dyke & Associates, Inc. ================================ At 03:59 PM 12/6/97, pgut001@cs.auckland.ac.nz wrote: >David P. Kemp writes: > >>ASN.1 INTEGERS are encoded as two's-complement numbers, which implies that if >>a BER-encoded value is decoded into a larger native storage value, the high >>bit of the encoded value will be sign-extended into the excess bits of the >>native value. For cryptographic purposes, it is my understanding that bignums >>are always the same size as the encoded values, so the issue of sign >>extension never arises. (Additionally, for cryptographic algorithms using >>modular arithmetic with a 2^n modulus, any sign-extended bits larger than the >>modulus are ignored - chopped off in the modular reduction.) >> >>[...] >>Since a distinguished encoding of these values is required, there MUST be an >>encoding convention for whether to do sign padding when MSB=1. Most of the >>cert examples I have seen do not do sign padding. > >The only certs I've seen that very consistently do this are the ones produced >by Microsoft software, who encode all (well, strictly speaking about 50% on >average) of their INTEGERs incorrectly. Everyone else seems to get it right >(this is from a random sample of 50-odd CA certs pulled from browsers and >things). My ASN.1 dump program >http://www.cs.auckland.ac.nz/~pgut001/dumpasn1.c, will flag negative integers >as encoding errors and can be used to check for this problem. > >>* Does a convention for sign padding of INTEGERs already exist anywhere? > >Yes. X.680 says: > > 8.3.2 If the contents octets of an integer value encoding consists of more > than one octet then [the first 9 bits] > > a) shall not be all ones; and > b) shall not be zero. > > 8.3.3 The contents octets shall be a two's complement binary number equal to > the integer value and consisting of [lots of stuff on how the bits are > ordered]. > >Therefore if the high bit in the value to be encoded is set, the first octet >is zero; if the high bit is not set, the first octet is nonzero (in other >words INTEGERs have to be zero-padded). > >>If not, Part 1 should be amended to specify that compliant CAs SHALL NOT >>generate padding 00 bytes for INTEGERs, and that verifiers SHOULD accept both >>padded and unpadded INTEGERs. And I will correct the examples accordingly. > >Doing this would be in violation of the BER and DER, which is unhealthy (you >could try asking about messing with the encoding rules on the OSS ASN.1 list, >but I'm pretty sure I know what they'd say). It should be the other way >around, always pad 00 for integers. > >(As an aside, it's a bit of a pain to work with these padding bytes because >your encoded integers have a 50% chance of growing by 1 byte after your >signature is generated. However the standard says you have to do this, and it >makes sense even if it's a bit of a nuisance). > >Peter. > > ------_=_NextPart_000_01C0CF4A.C3596880-- From owner-imc-snacc Thu May 3 08:28:20 2001 Received: by above.proper.com (8.9.3/8.9.3) id IAA10894 for imc-snacc-bks; Thu, 3 May 2001 08:28:20 -0700 (PDT) Received: from mtk-mail1.mitretek.org (mtk-mail1.mitretek.org [206.241.50.65]) by above.proper.com (8.9.3/8.9.3) with ESMTP id IAA10887 for ; Thu, 3 May 2001 08:28:18 -0700 (PDT) From: kds@mitretek.org Received: from mail1.mitretek.org (mail1.mitretek.org [172.16.49.31]) by mtk-mail1.mitretek.org (8.9.3+Sun/8.9.3) with ESMTP id LAA03479 for ; Thu, 3 May 2001 11:27:49 -0400 (EDT) Received: from tsfsrv.mitretek.org ([206.241.167.1]) by mail1.mitretek.org (Lotus Domino Release 5.0.4) with ESMTP id 2001050311274905:30668 ; Thu, 3 May 2001 11:27:49 -0400 Received: from localhost (localhost [127.0.0.1]) by localhost (8.12.0.Beta5/8.12.0.Beta5/Debian 8.12.0-1) with ESMTP id f43FXe3j029338 for ; Thu, 3 May 2001 11:33:40 -0400 Date: Thu, 3 May 2001 11:33:36 -0400 (EDT) X-X-Sender: Reply-To: To: Subject: SNACC bug?- asn-any destructor... In-Reply-To: <0B95FB5619B3D411817E006008A59259692ACA@wfhqex06.gfgsi.com> Message-ID: MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on Mail1/Mitretek Systems(Release 5.0.4 |June 8, 2000) at 05/03/2001 11:27:49 AM, Serialize by Router on Mail1/Mitretek Systems(Release 5.0.4 |June 8, 2000) at 05/03/2001 11:27:49 AM, Serialize complete at 05/03/2001 11:27:49 AM Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hey folks. Thanks for your recent help.. Here's another one. :) any-any.cpp:183 reads AsnAny::~AsnAny() { delete (CSM_Buffer *)this->value; } I find that this reliably SIGSEV's when destructing my instance tree. Now, so far as I can tell, AsnAny is not a subtype of CSM_Buffer; so isn't this cast just wrong? (When you view the value instance as a CSM_Buffer, it just contains garbage, it's not surprising the CSM_Buffer destructor explodes.) The specific Any type I'm using here is an AsnNull, ie: static AsnNull sample1; oid.Set(1,2,840,113549,1,1,5); // sha1 AsnAny::InstallAnyByOid(oid, 1, &sample1); Now, perhaps I'm not supposed to be using an AsnNull, but for the pre-encoded certificates I've been looking at where SHA1 is used, the AlgorithmIdentifier.Algorithm.Parameters (x509) field in-fact just contains and encoded NULL, so I need a type here that can accept a pre-encoded [UNIVERSAL 5] when I call decode, and AsnNull is the only thing I know of. Should the type-cast simply be removed from asn-any ? Should I be using something else instead of AsnNull? Any other ideas? Many thanks!! - Ken Stillson -- | Ken Stillson | stillson@mitretek.org | | Sr. Principal Engineer | voice: (703) 610-2965 | | Mitretek Systems | fax: (703) 610-2984 | From owner-imc-snacc Fri May 4 06:16:09 2001 Received: by above.proper.com (8.9.3/8.9.3) id GAA13251 for imc-snacc-bks; Fri, 4 May 2001 06:16:09 -0700 (PDT) Received: from mail.motus.qc.ca (mail.motus.qc.ca [207.236.155.221]) by above.proper.com (8.9.3/8.9.3) with ESMTP id GAA13247 for ; Fri, 4 May 2001 06:16:06 -0700 (PDT) From: eboudreault@motus.com Subject: snacc_builds project (1.9.1) To: imc-snacc@imc.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: Date: Fri, 4 May 2001 09:16:23 -0400 X-MIMETrack: Serialize by Router on motus1/Motus Technologies Inc.(Release 5.0.5 |September 22, 2000) at 2001-05-04 09:16:55 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id GAA13248 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, i would like to know why i get this error when i execute the building project "SNACC\BuildAll\BuildAll.dsp" : /******************************************************************************************** ..... Compiling... tbl.c fatal error C1083: Cannot open source file: 'E: \work\CML1.9.1\SNACC\compiler\core\tbl.c': No such file or directory Error executing cl.exe. BuildAll - 1 error(s), 0 warning(s) ********************************************************************************************/ Thanks. ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Fri May 4 07:46:23 2001 Received: by above.proper.com (8.9.3/8.9.3) id HAA20696 for imc-snacc-bks; Fri, 4 May 2001 07:46:23 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.9.3/8.9.3) with ESMTP id HAA20692 for ; Fri, 4 May 2001 07:46:20 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2650.21) id ; Fri, 4 May 2001 10:47:42 -0400 Message-ID: <0B95FB5619B3D411817E006008A59259692B24@wfhqex06.gfgsi.com> From: "Pawling, John" To: imc-snacc@imc.org Subject: FW: snacc_builds project (1.9.1) Date: Fri, 4 May 2001 10:47:41 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id HAA20693 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: -----Original Message----- From: Colestock, Robert Sent: Friday, May 04, 2001 10:38 AM To: 'eboudreault@motus.com' Cc: Pawling, John Subject: RE: snacc_builds project (1.9.1) Eric: I have never seen this particular error. I can tell you that it is necessary that you build the DEBUG version first, then the release version. (I noticed this recently; running Release directly does not build). I suspect this is the problem described below, the tbl.c and tbl.h are built during the build process. For some reason the Release build does not construct this file (to be investigated). If building DEBUG first does not fix the problem, please indicate what operating system you are running (it makes a big difference due to the SNACC DOS command line compiler execution statements). Bob Colestock Getronics -----Original Message----- From: eboudreault@motus.com [mailto:eboudreault@motus.com] Sent: Friday, May 04, 2001 9:16 AM To: imc-snacc@imc.org Subject: snacc_builds project (1.9.1) Hi, i would like to know why i get this error when i execute the building project "SNACC\BuildAll\BuildAll.dsp" : /*********************************************************************** ********************* ..... Compiling... tbl.c fatal error C1083: Cannot open source file: 'E: \work\CML1.9.1\SNACC\compiler\core\tbl.c': No such file or directory Error executing cl.exe. BuildAll - 1 error(s), 0 warning(s) ************************************************************************ ********************/ Thanks. ************************************************************************ ** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************ ** From owner-imc-snacc Fri May 4 07:59:59 2001 Received: (from majordomo@localhost) by above.proper.com (8.9.3/8.9.3) id HAA21067 for imc-snacc-bks; Fri, 4 May 2001 07:59:59 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.9.3/8.9.3) with ESMTP id HAA21062 for ; Fri, 4 May 2001 07:59:57 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2650.21) id ; Fri, 4 May 2001 11:00:54 -0400 Message-ID: From: "Colestock, Robert" To: "'imc-snacc@imc.org'" , "'kds@mitretek.org'" Cc: "Pawling, John" Subject: RE: SNACC bug?- asn-any destructor... Date: Fri, 4 May 2001 11:00:52 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Ken Stillson: Sorry for this confusion; you are probably not going to like my answer. You are the first to notice this discrepency buried in the ANY logic. You are correct in that this should not be done (but must be in this case). You are attempting to use the ANY data structures as documented in Mike Sample's manual. This scheme was modified here at VDA (Getronics now) for use in the SFL. We could get away with such a customization before our incarnation of the SNACC compiler was being used for strict ASN.1 compiles outside the SFL library use. I performed the modification, to allow the CSM_Buffer to be decoded (encoded) directly into the AsnAny::value data element, but I did not want to break the undercarriage for anyone attempting to use the original logic, so I left the type declaration as it was. Once I discovered memory leaks, I had to update the AsnAny desctuctor to delete the CSM_Buffer (which did break other uses of the AsnAny, as in your case). It's a kludge, I have finally corrected this discrepency with our working ASN.1 SNACC update which enables ANY DEFINED BY to co-exist with the CSM_Buffer (as a default, if the ANY OID cannot be associated directly). The new definitions will allow your existing program to operate properly (no release date yet). The old SNACC logic used to simply "abort()" if the ANY OID was not located; this would not work for the SFL, where we could not associate all OIDs all of the time for our ANYs. For your immediate needs, if you do not mind a memory leak in other logic, simply comment out the offending delete. If you are using the normal ANY (not the ANY DEFINED BY) syntax, I am surprised it crashes since the SNACC compiler generated code should load your ANY with a CSM_Buffer all of the time (or default NULL). I am assuming you are using the ANY DEFINED BY syntax; I am sorry I broke this logic on you. I have not tested the "InstallAnyByOid(...)" method (now on my list). This method does attempt to use the ANY DEFINED BY features. We also have to load NULL params in algs (there is an SFL class method that does so, CSM_Alg::LoadNullParams() I believe?). We load it by loading an 0x05, 0x00 into a CSM_Buffer and assigning the buffer to the ANY (see below). long CSM_Alg::LoadNullParams(AlgorithmIdentifier *pAlg) { CSM_Buffer *pCBuf; // RWC; ADD NULL parameter for SMIME compliance. if (pAlg->parameters == NULL) // ONLY IF EMPTY. { pAlg->parameters = new AsnAny; pCBuf = GetNullParams(); SM_ASSIGN_ANYBUF(pCBuf, pAlg->parameters); delete pCBuf; } return(0); } I can send you my working copy of the SNACC compiler (it has been built and tested with the SFL and libCert). It has not been tested with the CML (soon) nor the ACL libraries. You will need our working copy of the SFL as well. This will allow the ANY DEFINED BY logic to co-exist with our use of ANY (and fix the ANY DEFINED BY to allow a default CSM_Buffer if the OID is unrecognized). There is a demonstration of this use in the new vdatest c++-example. I have not documented these features yet. Bob Colestock VDA -----Original Message----- From: kds@mitretek.org [mailto:kds@mitretek.org] Sent: Thursday, May 03, 2001 11:34 AM To: imc-snacc@imc.org Subject: SNACC bug?- asn-any destructor... Hey folks. Thanks for your recent help.. Here's another one. :) any-any.cpp:183 reads AsnAny::~AsnAny() { delete (CSM_Buffer *)this->value; } I find that this reliably SIGSEV's when destructing my instance tree. Now, so far as I can tell, AsnAny is not a subtype of CSM_Buffer; so isn't this cast just wrong? (When you view the value instance as a CSM_Buffer, it just contains garbage, it's not surprising the CSM_Buffer destructor explodes.) The specific Any type I'm using here is an AsnNull, ie: static AsnNull sample1; oid.Set(1,2,840,113549,1,1,5); // sha1 AsnAny::InstallAnyByOid(oid, 1, &sample1); Now, perhaps I'm not supposed to be using an AsnNull, but for the pre-encoded certificates I've been looking at where SHA1 is used, the AlgorithmIdentifier.Algorithm.Parameters (x509) field in-fact just contains and encoded NULL, so I need a type here that can accept a pre-encoded [UNIVERSAL 5] when I call decode, and AsnNull is the only thing I know of. Should the type-cast simply be removed from asn-any ? Should I be using something else instead of AsnNull? Any other ideas? Many thanks!! - Ken Stillson -- | Ken Stillson | stillson@mitretek.org | | Sr. Principal Engineer | voice: (703) 610-2965 | | Mitretek Systems | fax: (703) 610-2984 | From owner-imc-snacc Tue May 22 12:09:59 2001 Received: (from majordomo@localhost) by above.proper.com (8.9.3/8.9.3) id MAA28468 for imc-snacc-bks; Tue, 22 May 2001 12:09:59 -0700 (PDT) Received: from mail.motus.qc.ca (mail.motus.qc.ca [207.236.155.221]) by above.proper.com (8.9.3/8.9.3) with ESMTP id MAA28463 for ; Tue, 22 May 2001 12:09:53 -0700 (PDT) From: eboudreault@motus.com Subject: Encoding problem To: imc-snacc@imc.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: Date: Tue, 22 May 2001 15:10:11 -0400 X-MIMETrack: Serialize by Router on motus1/Motus Technologies Inc.(Release 5.0.5 |September 22, 2000) at 2001-05-22 15:10:44 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id MAA28464 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, i have a problem when i encode a SafeContents structure with my function void MT_ENCODE_TO_BUFFER (AsnType &snaccType, AsnBuf &outputBuf). When we trace into AsnLen SafeContents::BEnc (BUF_TYPE b), the length returned by this function is equal to 561 but in the BUF_TYPE b the length is equal to 512. ?????? ************************************************************************ Encoding function: AsnLen SafeContents::BEnc (BUF_TYPE b) { AsnLen l=0; l = BEncContent (b); l += BEncConsLen (b, l); l += BEncTag1 (b, UNIV, CONS, SEQ_TAG_CODE); return l; } The function where the problem is: void MT_ENCODE_TO_BUFFER (AsnType &snaccType, AsnBuf &outputBuf) { char *buffer = NULL; try { buffer = new char[VDASNACC_ENCDEC_BUFSIZE]; outputBuf.Init(buffer, VDASNACC_ENCDEC_BUFSIZE); outputBuf.ResetInWriteRvsMode(); snaccType.BEnc(outputBuf); <------------------------------------------------------- PROBLEM (or bug ????) } catch (...) { throw; } } Where i call MT_ENCODE_TO_BUFFER in my program: void MTPFX::CreateEncryptedData(SafeContents& safeContent, EncryptedData& encryptedData) { CSM_Free3 ctil; CSM_Buffer pData, pEncryptedData, pParameters, pKey, pIV; ContentInfo *pContentInfo = NULL; unsigned char *ucpKey = NULL, *ucpIV = NULL; char *pSalt = NULL; unsigned int uiKeyLen = 0, uiIVLen = 0; try { //////////////////////////////////////////// // We create an EncryptedData; encryptedData.version = 0; encryptedData.encryptedContentInfo = new EncryptedContentInfo; encryptedData.encryptedContentInfo->contentType = id_data; encryptedData.encryptedContentInfo->contentEncryptionAlgorithm = new ContentEncryptionAlgorithmIdentifier; encryptedData.encryptedContentInfo->contentEncryptionAlgorithm->algorithm = pbeWithSHAAnd3_KeyTripleDES_CBC; encryptedData.encryptedContentInfo->contentEncryptionAlgorithm->parameters = new AsnAny; AsnBuf salt; AsnBuf password; char *pSalt = new char[SALT_LENGTH]; gp_RandomBuffer->GetBuffer((unsigned char *)pSalt, SALT_LENGTH); salt.InstallData(pSalt, SALT_LENGTH); password.InstallData((char *)m_Password_UNICODE, m_PasswordLength_UNICODE); PBEParameter parameters; parameters.iterationCount = ITERATION_COUNT; parameters.salt.Set(salt.DataPtr(), salt.DataLen()); MT_ENCODE_ANY (parameters, *encryptedData.encryptedContentInfo->contentEncryptionAlgorithm->parameters); encryptedData.encryptedContentInfo->encryptedContent = new AsnOcts; // We encode the SafeContent. AsnBuf encodedSafeContent; MT_ENCODE_TO_BUFFER(safeContent, encodedSafeContent); <--------------- CALL to MT_ENCODE_TO_BUFFER //////////////////////////////////////////////////////////////// // We produce a key with password. (owf = sha1) CGenerateKey genKey; // Key. genKey.GenerateKeyPBE(m_Password_UNICODE, m_PasswordLength_UNICODE, (unsigned char *)salt.DataPtr(), salt.DataLen(), SECRETKEY_LENGTH, ITERATION_COUNT, ID_ENCRYPTION, MT_ALGO_SHA_1); genKey.GetKey(&ucpKey, uiKeyLen); pKey.Set((char *)ucpKey, uiKeyLen); delete []ucpKey; ucpKey = NULL; // IV. genKey.GenerateKeyPBE(m_Password_UNICODE, m_PasswordLength_UNICODE, (unsigned char *)salt.DataPtr(), salt.DataLen(), SECRETKEY_LENGTH, ITERATION_COUNT, ID_VECT_INIT, MT_ALGO_SHA_1); genKey.GetKey(&ucpIV, uiIVLen); pIV.Set((char *)ucpIV, uiIVLen); delete []ucpIV; ucpIV = NULL; //////////////////////////////////////////////////////////////// // We encrypt the SafeContent; pData.Set(encodedSafeContent.DataPtr(), encodedSafeContent.DataLen()); ctil.SMTI_Encrypt(&pData, &pEncryptedData, &pParameters, &pKey, &pIV); encryptedData.encryptedContentInfo->encryptedContent->Set(pEncryptedData.Access ), pEncryptedData.Length()); //////////////////////////////////////////// } catch(...) { if (ucpKey) { delete []ucpKey; ucpKey = NULL; } if (ucpIV) { delete []ucpIV; ucpIV = NULL; } if (pSalt) { delete []pSalt; pSalt = NULL; } throw; } } ************************************************************************ Can you help me with that ????? Thanks. ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Wed May 23 10:55:05 2001 Received: (from majordomo@localhost) by above.proper.com (8.9.3/8.9.3) id KAA08541 for imc-snacc-bks; Wed, 23 May 2001 10:55:05 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.9.3/8.9.3) with ESMTP id KAA08532 for ; Wed, 23 May 2001 10:54:59 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Wed, 23 May 2001 13:57:59 -0400 Message-ID: From: "Colestock, Robert" To: "'eboudreault@motus.com'" , "'imc-snacc@imc.org'" Cc: "Pawling, John" Subject: RE: Encoding problem Date: Wed, 23 May 2001 13:57:56 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Eric: I assume you are re-computing a value for the "BUF_TYPE b" length since there is no length in the data structure (data end address - data start address). After some preliminary testing, I have noticed that this computed length appears to be the length loaded by the upper-level BEnc function (this seems intuitive anyway, but I wanted to be sure, SNACC acts oddly internally sometimes). I would remind you that the buffers are reverse loaded. This should not matter if you got the counts you report correctly (512 does sound like a default buffer length, not a data encoded length). I have found the library to behave very consistently with the SFL, libcert, CML and ACL libraries, so I suspect it must be with the new definitions you have implemented below or the data. After a more careful check of your logic, it would appear that you have removed any reference to CSM_Buffers. This will fail in the ANY logic since the ANY loads require a CSM_Buffer in the ->type element (overriden for the SFL library since SNACC could not handle unknown ANYs). The only suspect element in your "SafeContents" is the ANY you load, since the ANY is not directly controlled by the SNACC library (or SNACC compiler built elements); I suspect that your "MT_ENCODE_ANY(...)" macro/method is not properly loading a CSM_Buffer element as expected by the SNACC generated code for an ANY. Sorry about this oddity, it was the best way to add support for unknown ANYs. I have recently added full ANY DEFINED BY support back in, where the CSM_Buffer BLOBs can be supported as well as known ANYs. This new logic will make it easier to handle such modifications as you have written. For the time being, create something that looks like a CSM_Buffer (already in the SNACC includes) and load an instance with the encoded ANY results into the ANY. Check the length. This should fix the problem (see the ANY macros in sm_vdasnacc.h). Bob Colestock VDA -----Original Message----- From: eboudreault@motus.com [mailto:eboudreault@motus.com] Sent: Tuesday, May 22, 2001 3:10 PM To: imc-snacc@imc.org Subject: Encoding problem Hi, i have a problem when i encode a SafeContents structure with my function void MT_ENCODE_TO_BUFFER (AsnType &snaccType, AsnBuf &outputBuf). When we trace into AsnLen SafeContents::BEnc (BUF_TYPE b), the length returned by this function is equal to 561 but in the BUF_TYPE b the length is equal to 512. ?????? ************************************************************************ Encoding function: AsnLen SafeContents::BEnc (BUF_TYPE b) { AsnLen l=0; l = BEncContent (b); l += BEncConsLen (b, l); l += BEncTag1 (b, UNIV, CONS, SEQ_TAG_CODE); return l; } The function where the problem is: void MT_ENCODE_TO_BUFFER (AsnType &snaccType, AsnBuf &outputBuf) { char *buffer = NULL; try { buffer = new char[VDASNACC_ENCDEC_BUFSIZE]; outputBuf.Init(buffer, VDASNACC_ENCDEC_BUFSIZE); outputBuf.ResetInWriteRvsMode(); snaccType.BEnc(outputBuf); <------------------------------------------------------- PROBLEM (or bug ????) } catch (...) { throw; } } Where i call MT_ENCODE_TO_BUFFER in my program: void MTPFX::CreateEncryptedData(SafeContents& safeContent, EncryptedData& encryptedData) { CSM_Free3 ctil; CSM_Buffer pData, pEncryptedData, pParameters, pKey, pIV; ContentInfo *pContentInfo = NULL; unsigned char *ucpKey = NULL, *ucpIV = NULL; char *pSalt = NULL; unsigned int uiKeyLen = 0, uiIVLen = 0; try { //////////////////////////////////////////// // We create an EncryptedData; encryptedData.version = 0; encryptedData.encryptedContentInfo = new EncryptedContentInfo; encryptedData.encryptedContentInfo->contentType = id_data; encryptedData.encryptedContentInfo->contentEncryptionAlgorithm = new ContentEncryptionAlgorithmIdentifier; encryptedData.encryptedContentInfo->contentEncryptionAlgorithm->algorithm = pbeWithSHAAnd3_KeyTripleDES_CBC; encryptedData.encryptedContentInfo->contentEncryptionAlgorithm->parameters = new AsnAny; AsnBuf salt; AsnBuf password; char *pSalt = new char[SALT_LENGTH]; gp_RandomBuffer->GetBuffer((unsigned char *)pSalt, SALT_LENGTH); salt.InstallData(pSalt, SALT_LENGTH); password.InstallData((char *)m_Password_UNICODE, m_PasswordLength_UNICODE); PBEParameter parameters; parameters.iterationCount = ITERATION_COUNT; parameters.salt.Set(salt.DataPtr(), salt.DataLen()); MT_ENCODE_ANY (parameters, *encryptedData.encryptedContentInfo->contentEncryptionAlgorithm->parameters) ; encryptedData.encryptedContentInfo->encryptedContent = new AsnOcts; // We encode the SafeContent. AsnBuf encodedSafeContent; MT_ENCODE_TO_BUFFER(safeContent, encodedSafeContent); <--------------- CALL to MT_ENCODE_TO_BUFFER //////////////////////////////////////////////////////////////// // We produce a key with password. (owf = sha1) CGenerateKey genKey; // Key. genKey.GenerateKeyPBE(m_Password_UNICODE, m_PasswordLength_UNICODE, (unsigned char *)salt.DataPtr(), salt.DataLen(), SECRETKEY_LENGTH, ITERATION_COUNT, ID_ENCRYPTION, MT_ALGO_SHA_1); genKey.GetKey(&ucpKey, uiKeyLen); pKey.Set((char *)ucpKey, uiKeyLen); delete []ucpKey; ucpKey = NULL; // IV. genKey.GenerateKeyPBE(m_Password_UNICODE, m_PasswordLength_UNICODE, (unsigned char *)salt.DataPtr(), salt.DataLen(), SECRETKEY_LENGTH, ITERATION_COUNT, ID_VECT_INIT, MT_ALGO_SHA_1); genKey.GetKey(&ucpIV, uiIVLen); pIV.Set((char *)ucpIV, uiIVLen); delete []ucpIV; ucpIV = NULL; //////////////////////////////////////////////////////////////// // We encrypt the SafeContent; pData.Set(encodedSafeContent.DataPtr(), encodedSafeContent.DataLen()); ctil.SMTI_Encrypt(&pData, &pEncryptedData, &pParameters, &pKey, &pIV); encryptedData.encryptedContentInfo->encryptedContent->Set(pEncryptedData.Acc ess ), pEncryptedData.Length()); //////////////////////////////////////////// } catch(...) { if (ucpKey) { delete []ucpKey; ucpKey = NULL; } if (ucpIV) { delete []ucpIV; ucpIV = NULL; } if (pSalt) { delete []pSalt; pSalt = NULL; } throw; } } ************************************************************************ Can you help me with that ????? Thanks. ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Thu May 24 09:12:54 2001 Received: (from majordomo@localhost) by above.proper.com (8.9.3/8.9.3) id JAA18879 for imc-snacc-bks; Thu, 24 May 2001 09:12:54 -0700 (PDT) Received: from mail.motus.qc.ca (mail.motus.qc.ca [207.236.155.221]) by above.proper.com (8.9.3/8.9.3) with ESMTP id JAA18861 for ; Thu, 24 May 2001 09:12:47 -0700 (PDT) From: eboudreault@motus.com Subject: =?iso-8859-1?q?R=E9f=2E_=3A_RE=3A_Encoding_problem?= To: "Colestock, Robert" Cc: "'imc-snacc@imc.org'" , "Pawling, John" , owner-imc-snacc@mail.imc.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: Date: Thu, 24 May 2001 12:13:05 -0400 X-MIMETrack: Serialize by Router on motus1/Motus Technologies Inc.(Release 5.0.5 |September 22, 2000) at 2001-05-24 12:13:37 MIME-Version: 1.0 Content-type: multipart/mixed; Boundary="0__=85256A56005761358f9e8a93df938690918c85256A5600576135" Content-Disposition: inline Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: --0__=85256A56005761358f9e8a93df938690918c85256A5600576135 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable Thanks to you to respond to my questions. I had try what you have recommends to me but that's not resolve my prob= lem. But i have noticed that the SafeContents was not correctly encoded. Th= ere is, in attachement, the encoded SafeContents. (See attached file: SafeContent.der) Now i use this class to encode/decode ASN structure in replacement of MT_ENCODE_TO_BUFFER/MT_DECODE_BUFFER macros: template class MTEncodeDecode { public: static void Decode (AsnBuf& intput, ASN_TYPE& output) { size_t bytesDecoded =3D 0; try { output.BDecPdu(intput, bytesDecoded); if (intput.ReadError()) { throw ERROR_BAD_SNACC_DECODE; } } catch (...) { throw; } }; static void Encode (ASN_TYPE& input, AsnBuf& output) { char *buffer =3D NULL; AsnLen bytesEncoded; try { buffer =3D new char[VDASNACC_ENCDEC_BUFSIZE]; output.Init(buffer, VDASNACC_ENCDEC_BUFSIZE); output.ResetInWriteRvsMode(); input.BEncPdu(output, bytesEncoded); if (output.WriteError()) { throw ERROR_BAD_SNACC_ENCODE; } // On ne se soucie pas de d=E9truire le "char *buffer" // car il est sous le contr=F4le de "AsnBuf& outpuBuf". } catch (...) { if (buffer) { if (!output.DataPtr()) { delete []buffer; buffer =3D= NULL; } } throw; } }; }; Can you tel me why the result of this encoded structure (SafeContents) = is so "BIZ" ???? P.S. Note that the bagValue are not present in the encoded strucutre a= nd they are supposed to be there. Thanks. ***********************************************************************= *** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Qu=E9bec, Qc G1K 3P6 T=E9l.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ***********************************************************************= *** = =20 "Colestock, Robert" = =20 , =20 csGov.com> "'imc-snacc@imc.or= g'" =20 Envoy=E9 par : cc : "Pawling= , John" =20 owner-imc-snacc@mail.imc. Objet : RE: E= ncoding problem =20 org = =20 = =20 = =20 23/05/01 13:57 = =20 = =20 = =20 Eric: I assume you are re-computing a value for the "BUF_TYPE b" length since= there is no length in the data structure (data end address - data start= address). After some preliminary testing, I have noticed that this computed length appears to be the length loaded by the upper-level BEnc function= (this seems intuitive anyway, but I wanted to be sure, SNACC acts oddly= internally sometimes). I would remind you that the buffers are reverse loaded. This should no= t matter if you got the counts you report correctly (512 does sound like = a default buffer length, not a data encoded length). I have found the library to behave very consistently with the SFL, libcert, CML and ACL librarie= s, so I suspect it must be with the new definitions you have implemented belo= w or the data. After a more careful check of your logic, it would appear that you have= removed any reference to CSM_Buffers. This will fail in the ANY logic since the ANY loads require a CSM_Buffer in the ->type element (overriden for= the SFL library since SNACC could not handle unknown ANYs). The only suspe= ct element in your "SafeContents" is the ANY you load, since the ANY is no= t directly controlled by the SNACC library (or SNACC compiler built elements); I suspect that your "MT_ENCODE_ANY(...)" macro/method is not properly loading a CSM_Buffer element as expected by the SNACC generated code fo= r an ANY. Sorry about this oddity, it was the best way to add support for unknown ANYs. I have recently added full ANY DEFINED BY support back i= n, where the CSM_Buffer BLOBs can be supported as well as known ANYs. Thi= s new logic will make it easier to handle such modifications as you have writ= ten. For the time being, create something that looks like a CSM_Buffer (alre= ady in the SNACC includes) and load an instance with the encoded ANY result= s into the ANY. Check the length. This should fix the problem (see the = ANY macros in sm_vdasnacc.h). Bob Colestock VDA -----Original Message----- From: eboudreault@motus.com [mailto:eboudreault@motus.com] Sent: Tuesday, May 22, 2001 3:10 PM To: imc-snacc@imc.org Subject: Encoding problem Hi, i have a problem when i encode a SafeContents structure with my functio= n void MT_ENCODE_TO_BUFFER (AsnType &snaccType, AsnBuf &outputBuf). When we trace into AsnLen SafeContents::BEnc (BUF_TYPE b), the length returned by this function is equal to 561 but in the BUF_TYPE b the len= gth is equal to 512. ?????? ***********************************************************************= * Encoding function: AsnLen SafeContents::BEnc (BUF_TYPE b) { AsnLen l=3D0; l =3D BEncContent (b); l +=3D BEncConsLen (b, l); l +=3D BEncTag1 (b, UNIV, CONS, SEQ_TAG_CODE); return l; } The function where the problem is: void MT_ENCODE_TO_BUFFER (AsnType &snaccType, AsnBuf &outputBuf) { char *buffer =3D NULL; try { buffer =3D new char[VDASNACC_ENCDEC_BUFSIZE]; outputBuf.Init(buffer, VDASNACC_ENCDEC_BUFSIZE); outputBuf.ResetInWriteRvsMode(); snaccType.BEnc(outputBuf); <------------------------------------------------------- PROBLEM (or b= ug ????) } catch (...) { throw; } } Where i call MT_ENCODE_TO_BUFFER in my program: void MTPFX::CreateEncryptedData(SafeContents& safeContent, EncryptedDat= a& encryptedData) { CSM_Free3 ctil; CSM_Buffer pData, pEncryptedData, pParameters, pKey, pIV; ContentInfo *pContentInfo =3D NULL; unsigned char *ucpKey =3D NULL, *ucpIV =3D NULL; char *pSalt =3D NULL; unsigned int uiKeyLen =3D 0, uiIVLen =3D 0; try { //////////////////////////////////////////// // We create an EncryptedData; encryptedData.version =3D 0; encryptedData.encryptedContentInfo =3D new EncryptedContentIn= fo; encryptedData.encryptedContentInfo->contentType =3D id_data; encryptedData.encryptedContentInfo->contentEncryptionAlgorith= m =3D new ContentEncryptionAlgorithmIdentifier; encryptedData.encryptedContentInfo->contentEncryptionAlgorithm->algorit= hm =3D pbeWithSHAAnd3_KeyTripleDES_CBC; encryptedData.encryptedContentInfo->contentEncryptionAlgorithm->paramet= ers =3D new AsnAny; AsnBuf salt; AsnBuf password; char *pSalt =3D new char[SALT_LENGTH]; gp_RandomBuffer->GetBuffer((unsigned char *)pSalt, SALT_LENGT= H); salt.InstallData(pSalt, SALT_LENGTH); password.InstallData((char *)m_Password_UNICODE, m_PasswordLength_UNICODE); PBEParameter parameters; parameters.iterationCount =3D ITERATION_COUNT; parameters.salt.Set(salt.DataPtr(), salt.DataLen()); MT_ENCODE_ANY (parameters, *encryptedData.encryptedContentInfo->contentEncryptionAlgorithm->parame= ters) ; encryptedData.encryptedContentInfo->encryptedContent =3D new AsnOcts; // We encode the SafeContent. AsnBuf encodedSafeContent; MT_ENCODE_TO_BUFFER(safeContent, encodedSafeContent); <--------------- CALL to MT_ENCODE_TO_BUFFER /////////////////////////////////////////////////////////////= /// // We produce a key with password. (owf =3D sha1) CGenerateKey genKey; // Key. genKey.GenerateKeyPBE(m_Password_UNICODE, m_PasswordLength_UNICODE, (unsigned char *)salt.DataPtr(), salt.DataLen(), SECRETKEY_LENGTH, ITERATION_COUNT,= ID_ENCRYPTION, MT_ALGO_SHA_1); genKey.GetKey(&ucpKey, uiKeyLen); pKey.Set((char *)ucpKey, uiKeyLen); delete []ucpKey; ucpKey =3D NULL; // IV. genKey.GenerateKeyPBE(m_Password_UNICODE, m_PasswordLength_UNICODE, (unsigned char *)salt.DataPtr(), salt.DataLen(), SECRETKEY_LENGTH, ITERATION_COUNT,= ID_VECT_INIT, MT_ALGO_SHA_1); genKey.GetKey(&ucpIV, uiIVLen); pIV.Set((char *)ucpIV, uiIVLen); delete []ucpIV; ucpIV =3D NULL; /////////////////////////////////////////////////////////////= /// // We encrypt the SafeContent; pData.Set(encodedSafeContent.DataPtr(), encodedSafeContent.DataLen()); ctil.SMTI_Encrypt(&pData, &pEncryptedData, &pParameters, &pKe= y, &pIV); encryptedData.encryptedContentInfo->encryptedContent->Set(pEncryptedDat= a.Acc ess ), pEncryptedData.Length()); //////////////////////////////////////////// } catch(...) { if (ucpKey) { delete []ucpKey; ucpKey =3D NULL; } if (ucpIV) { delete []ucpIV; ucpIV =3D NULL; } if (pSalt) { delete []pSalt; pSalt =3D NULL; } throw; } } ***********************************************************************= * Can you help me with that ????? Thanks. ***********************************************************************= *** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Qu=E9bec, Qc G1K 3P6 T=E9l.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ***********************************************************************= *** = --0__=85256A56005761358f9e8a93df938690918c85256A5600576135 Content-type: application/octet-stream; name="=?iso-8859-1?Q?SafeContent.der?=" Content-Disposition: attachment; filename="=?iso-8859-1?Q?SafeContent.der?=" Content-transfer-encoding: base64 MIICRjBDBgsqhkiG9w0BDAoBA6AaMRgwFgYJKoZIhvcNAQkUMQkeB0NBX0NFUlQwPQYLKoZIhvcN AQwKAQOgFzEVMBMGCSqGSIb3DQEJFDEGHgRDRVJUMIIBvgYLKoZIhvcNAQwKAQKgggGSMIIBjjAo BgoqhkiG9w0BDAEDMBrMBNcymixz5hVXdu761WlZgI633iJdAgIH0ASCAWBKN7b+uiFG4xx+ciDP rsVu71Xf0SHoynbgjFr1YS+urc/CfdZd+OLLZLdLH3ufWia5cOdRs0g4DT9723qSmURM1KvHHuff 8xKxynxsdjxWfepaSuSiZfZXgRZJ9cd7h97IXshhG1dh9gy4+JlRj7OsknR/tIjfi6XohGvyu266 R675UMpzRnR1hPeWqVfGo6tZi3pqFf6Ta4jq+OkCYrSqP+RT0JVRKAskEbtxfAgJoJstqgS+0ejt yVMAbu9eapnoknUTw8E4s1Mu/bGw78C1DmIdEHbvLWQf3GpE7gU2jAC7yHnBNzSsrfq8cHu82T7c D7g/2P64CzOCkNBklm6hKgO84ozGYjJ17J/8iRuCXftPmE60LI3aCGMosHtPNzjn7x01Rwqgus/4 yXXALOM8y8myPSZAn3PQUO61317CPqsLhX/iCZZrHSgTVQ0hJZM7pfshZTdivMcrsh9NC3YJMRkw FwYJKoZIhvcNAQkUMQoeCEtFWV9QUklW --0__=85256A56005761358f9e8a93df938690918c85256A5600576135-- From owner-imc-snacc Thu May 24 11:16:36 2001 Received: (from majordomo@localhost) by above.proper.com (8.9.3/8.9.3) id LAA25567 for imc-snacc-bks; Thu, 24 May 2001 11:16:36 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.9.3/8.9.3) with ESMTP id LAA25562 for ; Thu, 24 May 2001 11:16:29 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Thu, 24 May 2001 14:19:28 -0400 Message-ID: From: "Colestock, Robert" To: "'eboudreault@motus.com'" Cc: "'imc-snacc@imc.org'" Subject: =?iso-8859-1?Q?RE=3A_R=E9f=2E_=3A_RE=3A_Encoding_problem?= Date: Thu, 24 May 2001 14:19:24 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id LAA25563 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Eric: I still believe it is the ANY (or one of the ANYs you are loading). The encoding you sent is definitely wrong. It fails after the OID definition for "pbeWithSHAAnd3_KeyTripleDES_CBC" (I assume an ANY) in the Sequence. You appear to be loading the ANY improperly. The final encoding is not the problem. What you have written appears to be OK. The ANY loads assume that the loaded data is already properly ASN.1 encoded with proper tags, so the ANY data is copied directly to the encoding buffer when BEnc(...) is called. There is no OCTET STRING wrapping, or any other wrapping done to an ANY. Since you have not sent the ANY load macro you have, I suggest you check that macro carefully to be sure is properly loads a (CSM_Buffer *) into the AsnAny::type ((asnAny)->value from MACRO in sm_vdasnacc.h) member variable, so that the BEnc(...) logic will load it properly. You should also check the ANY data buffer you are loading is properly ASN.1 encoded. If either are wrong, you can have such an encoding failure. ANYs are rather unpleasant elements; this is why I wrote the MACROs you see in sm_vdasnacc.h to hide such issues from users. Bob Colestock VDA. -----Original Message----- From: eboudreault@motus.com [mailto:eboudreault@motus.com] Sent: Thursday, May 24, 2001 11:13 AM To: Colestock, Robert Cc: 'imc-snacc@imc.org'; Pawling, John; owner-imc-snacc@mail.imc.org Subject: Réf. : RE: Encoding problem Thanks to you to respond to my questions. I had try what you have recommends to me but that's not resolve my problem. But i have noticed that the SafeContents was not correctly encoded. There is, in attachement, the encoded SafeContents. (See attached file: SafeContent.der) Now i use this class to encode/decode ASN structure in replacement of MT_ENCODE_TO_BUFFER/MT_DECODE_BUFFER macros: template class MTEncodeDecode { public: static void Decode (AsnBuf& intput, ASN_TYPE& output) { size_t bytesDecoded = 0; try { output.BDecPdu(intput, bytesDecoded); if (intput.ReadError()) { throw ERROR_BAD_SNACC_DECODE; } } catch (...) { throw; } }; static void Encode (ASN_TYPE& input, AsnBuf& output) { char *buffer = NULL; AsnLen bytesEncoded; try { buffer = new char[VDASNACC_ENCDEC_BUFSIZE]; output.Init(buffer, VDASNACC_ENCDEC_BUFSIZE); output.ResetInWriteRvsMode(); input.BEncPdu(output, bytesEncoded); if (output.WriteError()) { throw ERROR_BAD_SNACC_ENCODE; } // On ne se soucie pas de détruire le "char *buffer" // car il est sous le contrôle de "AsnBuf& outpuBuf". } catch (...) { if (buffer) { if (!output.DataPtr()) { delete []buffer; buffer = NULL; } } throw; } }; }; Can you tel me why the result of this encoded structure (SafeContents) is so "BIZ" ???? P.S. Note that the bagValue are not present in the encoded strucutre and they are supposed to be there. Thanks. ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** "Colestock, Robert" , csGov.com> "'imc-snacc@imc.org'" Envoyé par : cc : "Pawling, John" owner-imc-snacc@mail.imc. Objet : RE: Encoding problem org 23/05/01 13:57 Eric: I assume you are re-computing a value for the "BUF_TYPE b" length since there is no length in the data structure (data end address - data start address). After some preliminary testing, I have noticed that this computed length appears to be the length loaded by the upper-level BEnc function (this seems intuitive anyway, but I wanted to be sure, SNACC acts oddly internally sometimes). I would remind you that the buffers are reverse loaded. This should not matter if you got the counts you report correctly (512 does sound like a default buffer length, not a data encoded length). I have found the library to behave very consistently with the SFL, libcert, CML and ACL libraries, so I suspect it must be with the new definitions you have implemented below or the data. After a more careful check of your logic, it would appear that you have removed any reference to CSM_Buffers. This will fail in the ANY logic since the ANY loads require a CSM_Buffer in the ->type element (overriden for the SFL library since SNACC could not handle unknown ANYs). The only suspect element in your "SafeContents" is the ANY you load, since the ANY is not directly controlled by the SNACC library (or SNACC compiler built elements); I suspect that your "MT_ENCODE_ANY(...)" macro/method is not properly loading a CSM_Buffer element as expected by the SNACC generated code for an ANY. Sorry about this oddity, it was the best way to add support for unknown ANYs. I have recently added full ANY DEFINED BY support back in, where the CSM_Buffer BLOBs can be supported as well as known ANYs. This new logic will make it easier to handle such modifications as you have written. For the time being, create something that looks like a CSM_Buffer (already in the SNACC includes) and load an instance with the encoded ANY results into the ANY. Check the length. This should fix the problem (see the ANY macros in sm_vdasnacc.h). Bob Colestock VDA -----Original Message----- From: eboudreault@motus.com [mailto:eboudreault@motus.com] Sent: Tuesday, May 22, 2001 3:10 PM To: imc-snacc@imc.org Subject: Encoding problem Hi, i have a problem when i encode a SafeContents structure with my function void MT_ENCODE_TO_BUFFER (AsnType &snaccType, AsnBuf &outputBuf). When we trace into AsnLen SafeContents::BEnc (BUF_TYPE b), the length returned by this function is equal to 561 but in the BUF_TYPE b the length is equal to 512. ?????? ************************************************************************ Encoding function: AsnLen SafeContents::BEnc (BUF_TYPE b) { AsnLen l=0; l = BEncContent (b); l += BEncConsLen (b, l); l += BEncTag1 (b, UNIV, CONS, SEQ_TAG_CODE); return l; } The function where the problem is: void MT_ENCODE_TO_BUFFER (AsnType &snaccType, AsnBuf &outputBuf) { char *buffer = NULL; try { buffer = new char[VDASNACC_ENCDEC_BUFSIZE]; outputBuf.Init(buffer, VDASNACC_ENCDEC_BUFSIZE); outputBuf.ResetInWriteRvsMode(); snaccType.BEnc(outputBuf); <------------------------------------------------------- PROBLEM (or bug ????) } catch (...) { throw; } } Where i call MT_ENCODE_TO_BUFFER in my program: void MTPFX::CreateEncryptedData(SafeContents& safeContent, EncryptedData& encryptedData) { CSM_Free3 ctil; CSM_Buffer pData, pEncryptedData, pParameters, pKey, pIV; ContentInfo *pContentInfo = NULL; unsigned char *ucpKey = NULL, *ucpIV = NULL; char *pSalt = NULL; unsigned int uiKeyLen = 0, uiIVLen = 0; try { //////////////////////////////////////////// // We create an EncryptedData; encryptedData.version = 0; encryptedData.encryptedContentInfo = new EncryptedContentInfo; encryptedData.encryptedContentInfo->contentType = id_data; encryptedData.encryptedContentInfo->contentEncryptionAlgorithm = new ContentEncryptionAlgorithmIdentifier; encryptedData.encryptedContentInfo->contentEncryptionAlgorithm->algorithm = pbeWithSHAAnd3_KeyTripleDES_CBC; encryptedData.encryptedContentInfo->contentEncryptionAlgorithm->parameters = new AsnAny; AsnBuf salt; AsnBuf password; char *pSalt = new char[SALT_LENGTH]; gp_RandomBuffer->GetBuffer((unsigned char *)pSalt, SALT_LENGTH); salt.InstallData(pSalt, SALT_LENGTH); password.InstallData((char *)m_Password_UNICODE, m_PasswordLength_UNICODE); PBEParameter parameters; parameters.iterationCount = ITERATION_COUNT; parameters.salt.Set(salt.DataPtr(), salt.DataLen()); MT_ENCODE_ANY (parameters, *encryptedData.encryptedContentInfo->contentEncryptionAlgorithm->parameters) ; encryptedData.encryptedContentInfo->encryptedContent = new AsnOcts; // We encode the SafeContent. AsnBuf encodedSafeContent; MT_ENCODE_TO_BUFFER(safeContent, encodedSafeContent); <--------------- CALL to MT_ENCODE_TO_BUFFER //////////////////////////////////////////////////////////////// // We produce a key with password. (owf = sha1) CGenerateKey genKey; // Key. genKey.GenerateKeyPBE(m_Password_UNICODE, m_PasswordLength_UNICODE, (unsigned char *)salt.DataPtr(), salt.DataLen(), SECRETKEY_LENGTH, ITERATION_COUNT, ID_ENCRYPTION, MT_ALGO_SHA_1); genKey.GetKey(&ucpKey, uiKeyLen); pKey.Set((char *)ucpKey, uiKeyLen); delete []ucpKey; ucpKey = NULL; // IV. genKey.GenerateKeyPBE(m_Password_UNICODE, m_PasswordLength_UNICODE, (unsigned char *)salt.DataPtr(), salt.DataLen(), SECRETKEY_LENGTH, ITERATION_COUNT, ID_VECT_INIT, MT_ALGO_SHA_1); genKey.GetKey(&ucpIV, uiIVLen); pIV.Set((char *)ucpIV, uiIVLen); delete []ucpIV; ucpIV = NULL; //////////////////////////////////////////////////////////////// // We encrypt the SafeContent; pData.Set(encodedSafeContent.DataPtr(), encodedSafeContent.DataLen()); ctil.SMTI_Encrypt(&pData, &pEncryptedData, &pParameters, &pKey, &pIV); encryptedData.encryptedContentInfo->encryptedContent->Set(pEncryptedData.Acc ess ), pEncryptedData.Length()); //////////////////////////////////////////// } catch(...) { if (ucpKey) { delete []ucpKey; ucpKey = NULL; } if (ucpIV) { delete []ucpIV; ucpIV = NULL; } if (pSalt) { delete []pSalt; pSalt = NULL; } throw; } } ************************************************************************ Can you help me with that ????? Thanks. ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Thu May 24 12:35:05 2001 Received: by above.proper.com (8.9.3/8.9.3) id MAA27936 for imc-snacc-bks; Thu, 24 May 2001 12:35:05 -0700 (PDT) Received: from mail.motus.qc.ca (mail.motus.qc.ca [207.236.155.221]) by above.proper.com (8.9.3/8.9.3) with ESMTP id MAA27932 for ; Thu, 24 May 2001 12:35:00 -0700 (PDT) From: eboudreault@motus.com Subject: Initilisation of an AsnAny To: imc-snacc@imc.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: Date: Thu, 24 May 2001 15:35:19 -0400 X-MIMETrack: Serialize by Router on motus1/Motus Technologies Inc.(Release 5.0.5 |September 22, 2000) at 2001-05-24 15:35:51 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id MAA27933 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, I have these lines code in my program: ************************************************************************** ...... pNewSafeBag = new SafeBag; pNewSafeBag->bagId = certBag_id; // On crée le Bag qui contiendra un certificat encodé. CertBag *bag = new CertBag; bag->certId = x509CertificateType; AsnOcts *octetString = new AsnOcts; octetString->Set(certificatBuf.DataPtr(), certificatBuf.DataLen()); MT_ENCODE_ANY (*octetString, bag->certValue); MT_ENCODE_ANY (*bag, pNewSafeBag->bagValue); ...... ************************************************************************** My problem is: When i execute the second MT_ENCODE_ANY, the hash table in the AsnAny is not initialized. My question: What i have to do to initilize it correctly ????? Thanks. ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Thu May 24 13:01:20 2001 Received: by above.proper.com (8.9.3/8.9.3) id NAA29149 for imc-snacc-bks; Thu, 24 May 2001 13:01:20 -0700 (PDT) Received: from mail.motus.qc.ca (mail.motus.qc.ca [207.236.155.221]) by above.proper.com (8.9.3/8.9.3) with ESMTP id NAA29142 for ; Thu, 24 May 2001 13:01:15 -0700 (PDT) From: eboudreault@motus.com Subject: Hash table To: imc-snacc@imc.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: Date: Thu, 24 May 2001 16:01:35 -0400 X-MIMETrack: Serialize by Router on motus1/Motus Technologies Inc.(Release 5.0.5 |September 22, 2000) at 2001-05-24 16:02:06 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id NAA29143 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, Can you explain me the utility of the hash table in AsnAny ??? P.S. It's my problem in my precedent message. Thanks. ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Fri May 25 11:07:48 2001 Received: by above.proper.com (8.9.3/8.9.3) id LAA20485 for imc-snacc-bks; Fri, 25 May 2001 11:07:48 -0700 (PDT) Received: from mail.motus.qc.ca (mail.motus.qc.ca [207.236.155.221]) by above.proper.com (8.9.3/8.9.3) with ESMTP id LAA20476 for ; Fri, 25 May 2001 11:07:42 -0700 (PDT) From: eboudreault@motus.com Subject: AsnAny encoding problem. To: imc-snacc@imc.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: Date: Fri, 25 May 2001 14:07:59 -0400 X-MIMETrack: Serialize by Router on motus1/Motus Technologies Inc.(Release 5.0.5 |September 22, 2000) at 2001-05-25 14:08:33 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id LAA20477 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, In addition to my question of yesterday, there is an example of the problem i have encouter: .... pNewSafeBag = new SafeBag; pNewSafeBag->bagId = certBag_id; CertBag *bag = new CertBag; bag->certId = x509CertificateType; AsnOcts *octetString = new AsnOcts; octetString->Set(certificatBuf.DataPtr(), certificatBuf.DataLen()); MT_ENCODE_ANY (*octetString, bag->certValue); AsnOid oid = x509CertificateType; bag->certValue.InstallAnyByOid(oid, 5, octetString); <------------------- A MT_ENCODE_ANY (*bag, pNewSafeBag->bagValue); <------------------- B .... A ) How i am supposed to do this normaly in a program ???? B ) The encoding function of CertBag produce an error in the encoding procedure of "bag". It produce that error when it try to encode the variable certValue (that is part of CertBag). Can you help me to understand what i have to do to resolve that error ????? Thanks. ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Tue May 29 07:57:42 2001 Received: by above.proper.com (8.9.3/8.9.3) id HAA19294 for imc-snacc-bks; Tue, 29 May 2001 07:57:42 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.9.3/8.9.3) with ESMTP id HAA19288 for ; Tue, 29 May 2001 07:57:36 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Tue, 29 May 2001 11:00:34 -0400 Message-ID: From: "Colestock, Robert" To: "'eboudreault@motus.com'" , imc-snacc@imc.org Subject: RE: Initilisation of an AsnAny Date: Tue, 29 May 2001 11:00:28 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id HAA19290 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Eric: The AsnAny hash table logic is initialized through the ASN.1 definition "OBJECT-TYPE" as described in Mike Sample's manual. It will not work in our version, since I have broken the AsnAny class handling (BEnc() does not work correctly). This has been corrected in the newest version of the SNACC compiler (soon to be released); both the CSM_Buffer blob handling AND the ANY DEFINED BY logic will co-exist. Bob Colestock VDA. -----Original Message----- From: eboudreault@motus.com [mailto:eboudreault@motus.com] Sent: Thursday, May 24, 2001 2:35 PM To: imc-snacc@imc.org Subject: Initilisation of an AsnAny Hi, I have these lines code in my program: ************************************************************************** ...... pNewSafeBag = new SafeBag; pNewSafeBag->bagId = certBag_id; // On crée le Bag qui contiendra un certificat encodé. CertBag *bag = new CertBag; bag->certId = x509CertificateType; AsnOcts *octetString = new AsnOcts; octetString->Set(certificatBuf.DataPtr(), certificatBuf.DataLen()); MT_ENCODE_ANY (*octetString, bag->certValue); MT_ENCODE_ANY (*bag, pNewSafeBag->bagValue); ...... ************************************************************************** My problem is: When i execute the second MT_ENCODE_ANY, the hash table in the AsnAny is not initialized. My question: What i have to do to initilize it correctly ????? Thanks. ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Wed May 30 12:50:05 2001 Received: (from majordomo@localhost) by above.proper.com (8.9.3/8.9.3) id MAA01116 for imc-snacc-bks; Wed, 30 May 2001 12:50:05 -0700 (PDT) Received: from mail.motus.qc.ca (mail.motus.qc.ca [207.236.155.221]) by above.proper.com (8.9.3/8.9.3) with ESMTP id MAA01110 for ; Wed, 30 May 2001 12:50:00 -0700 (PDT) From: eboudreault@motus.com Subject: Big one To: imc-snacc@imc.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: Date: Wed, 30 May 2001 15:50:18 -0400 X-MIMETrack: Serialize by Router on motus1/Motus Technologies Inc.(Release 5.0.5 |September 22, 2000) at 2001-05-30 15:50:51 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id MAA01111 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, It's me again !!! I have a "BIG" question for you. Can you tel me if there is other problems with AsnAny ???? It's just beacause i have made my own Pkcs12 class that manage all the structures (they are pointers) that we need for. I can create and read it. No problems until there. The problems apears when i decided to change all the pointers to a non-pointers structure. I can't decode the CertBag::certValue (AsnAny) and i don't understand why !!!! There is an example of my class (before and after): BEFORE: ListeBuffer MTPFX::GetCertificates(AsnBuf& segAttribute) { CertBag *certBag = NULL; char *szDecodedCertType = NULL;; unsigned int uiDecodedCertTypeLen; try { ListeBuffer Liste; ListeBuffer ListeTemp = GetBagByAttribute(segAttribute, certBag_id); AsnBuf certificat; AsnBuf bag; int nNext = 0; if (ListeTemp.length() > 0) { ListeTemp.Head(); while (nNext == 0) { ListeTemp.Retrieve(bag); certBag = new CertBag; //AsnLen certBagLen; //certBag->BDecPdu(bag, certBagLen); //////////////////////////////////////////////// // Initialisation de la Hash Table. AsnOid oid1 = x509CertificateType; AsnOcts octTemp; AsnAny::InstallAnyByOid(oid1, 1, &octTemp); AsnOid oid2 = certBag_id; AsnAny::InstallAnyByOid(oid2, 2, certBag); //////////////////////////////////////////////// MTEncodeDecode::Decode(bag, *certBag); <--------- correctly decoded ....... } AFTER : ListeBuffer MTPFX::GetCertificates(AsnBuf& segAttribute) { CertBag certBag; char *szDecodedCertType = NULL;; unsigned int uiDecodedCertTypeLen; try { ListeBuffer Liste; ListeBuffer ListeTemp = GetBagByAttribute(segAttribute, certBag_id); AsnBuf certificat; AsnBuf bag; int nNext = 0; if (ListeTemp.length() > 0) { ListeTemp.Head(); while (nNext == 0) { ListeTemp.Retrieve(bag); //////////////////////////////////////////////// // Initialisation de la Hash Table. AsnOid oid1 = x509CertificateType; AsnOcts octTemp; AsnAny::InstallAnyByOid(oid1, 1, &octTemp); AsnOid oid2 = certBag_id; AsnAny::InstallAnyByOid(oid2, 2, &certBag); //////////////////////////////////////////////// MTEncodeDecode::Decode(bag, certBag); <--------- error ...... } Can you help me to resolve that ????? Thanks. ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Mon Jun 11 12:37:22 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f5BJbMZ14752 for imc-snacc-bks; Mon, 11 Jun 2001 12:37:22 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f5BJbFJ14748 for ; Mon, 11 Jun 2001 12:37:16 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Mon, 11 Jun 2001 15:37:32 -0400 Message-ID: <0B95FB5619B3D411817E006008A59259692D06@wfhqex06.gfgsi.com> From: "Pawling, John" To: imc-snacc@imc.org Subject: FW: Big one Date: Mon, 11 Jun 2001 15:37:30 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: -----Original Message----- From: Colestock, Robert Sent: Monday, June 11, 2001 3:36 PM To: 'eboudreault@motus.com' Cc: Pawling, John Subject: RE: Big one Eric: No, I cannot tell from this code what might be wrong. Where did "Decode(...)" come from? I suspect it depends on what this definition is. As to problems with AsnAny, the answer is YES, there are numerous problems with AsnAny. They are very difficult to deal with at the application level. With our current imcarnation, it is very easy to have the SNACC run-time library decode ANY DEFINED BY definitions, and have the application programmer treat the result as a AsnAnyBuffer, which will cause problems. We are trying to come up with a consistent way to handle (or at least check) the various possibilities. I would prefer to treat all ANYs as buffers, never decoding results; force the application to deal with the details. Bob Colestock VDA -----Original Message----- From: eboudreault@motus.com [mailto:eboudreault@motus.com] Sent: Wednesday, May 30, 2001 3:50 PM To: imc-snacc@imc.org Subject: Big one Hi, It's me again !!! I have a "BIG" question for you. Can you tel me if there is other problems with AsnAny ???? It's just beacause i have made my own Pkcs12 class that manage all the structures (they are pointers) that we need for. I can create and read it. No problems until there. The problems apears when i decided to change all the pointers to a non-pointers structure. I can't decode the CertBag::certValue (AsnAny) and i don't understand why !!!! There is an example of my class (before and after): BEFORE: ListeBuffer MTPFX::GetCertificates(AsnBuf& segAttribute) { CertBag *certBag = NULL; char *szDecodedCertType = NULL;; unsigned int uiDecodedCertTypeLen; try { ListeBuffer Liste; ListeBuffer ListeTemp = GetBagByAttribute(segAttribute, certBag_id); AsnBuf certificat; AsnBuf bag; int nNext = 0; if (ListeTemp.length() > 0) { ListeTemp.Head(); while (nNext == 0) { ListeTemp.Retrieve(bag); certBag = new CertBag; //AsnLen certBagLen; //certBag->BDecPdu(bag, certBagLen); //////////////////////////////////////////////// // Initialisation de la Hash Table. AsnOid oid1 = x509CertificateType; AsnOcts octTemp; AsnAny::InstallAnyByOid(oid1, 1, &octTemp); AsnOid oid2 = certBag_id; AsnAny::InstallAnyByOid(oid2, 2, certBag); //////////////////////////////////////////////// MTEncodeDecode::Decode(bag, *certBag); <--------- correctly decoded ....... } AFTER : ListeBuffer MTPFX::GetCertificates(AsnBuf& segAttribute) { CertBag certBag; char *szDecodedCertType = NULL;; unsigned int uiDecodedCertTypeLen; try { ListeBuffer Liste; ListeBuffer ListeTemp = GetBagByAttribute(segAttribute, certBag_id); AsnBuf certificat; AsnBuf bag; int nNext = 0; if (ListeTemp.length() > 0) { ListeTemp.Head(); while (nNext == 0) { ListeTemp.Retrieve(bag); //////////////////////////////////////////////// // Initialisation de la Hash Table. AsnOid oid1 = x509CertificateType; AsnOcts octTemp; AsnAny::InstallAnyByOid(oid1, 1, &octTemp); AsnOid oid2 = certBag_id; AsnAny::InstallAnyByOid(oid2, 2, &certBag); //////////////////////////////////////////////// MTEncodeDecode::Decode(bag, certBag); <--------- error ...... } Can you help me to resolve that ????? Thanks. ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Wed Jun 20 13:20:17 2001 Received: by above.proper.com (8.11.3/8.11.3) id f5KKKH704975 for imc-snacc-bks; Wed, 20 Jun 2001 13:20:17 -0700 (PDT) Received: from mail.motus.qc.ca (mail.motus.qc.ca [207.236.155.221]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f5KKKGk04971 for ; Wed, 20 Jun 2001 13:20:16 -0700 (PDT) Subject: BER encoding To: imc-snacc@imc.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: From: eboudreault@motus.com Date: Wed, 20 Jun 2001 16:21:01 -0400 X-MIMETrack: Serialize by Router on motus1/Motus Technologies Inc.(Release 5.0.5 |September 22, 2000) at 2001-06-20 16:21:08 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id f5KKKGk04972 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, I am in the interroperability prossessing tests with the Netscape inport/export certificates. To do this, i need BER encoding and not DER encoding (that's what the snacc librarie's doing). Is this librarie able to do BER encoding ???? What i have to do ??? Thanks. ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Thu Jun 21 05:18:08 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f5LCI8X24832 for imc-snacc-bks; Thu, 21 Jun 2001 05:18:08 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f5LCI6k24828 for ; Thu, 21 Jun 2001 05:18:06 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Thu, 21 Jun 2001 08:18:22 -0400 Message-ID: <0B95FB5619B3D411817E006008A592592C2E4F@wfhqex06.gfgsi.com> From: "Nicholas, Richard" To: imc-snacc@imc.org Subject: RE: BER encoding Date: Thu, 21 Jun 2001 08:18:21 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id f5LCI7k24829 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Eric, DER is BER with additional restrictions. Therefore, ASN.1 objects encoded using DER are still compliant with BER. Netscape shouldn't have any problem decoding objects encoded using the latest enhanced SNACC library. - Rich --------------------------- Richard E. Nicholas Principal Secure Systems Engineer Getronics Government Solutions, LLC Richard.Nicholas@GetronicsGov.com (301) 939-2722 > -----Original Message----- > From: eboudreault@motus.com [mailto:eboudreault@motus.com] > Sent: Wednesday, June 20, 2001 4:21 PM > To: imc-snacc@imc.org > Subject: BER encoding > > > > Hi, > > I am in the interroperability prossessing tests with the Netscape > inport/export certificates. To do this, i need BER encoding > and not DER > encoding (that's what the snacc librarie's doing). > > Is this librarie able to do BER encoding ???? What i have to do ??? > > > Thanks. > > ************************************************************** > ************ > Eric Boudreault > ------------------------------------------------ > Programmeur > ------------------------------------------------ > Motus Technologies > 390, St-Vallier Est > Bureau 100 > Québec, Qc > G1K 3P6 > Tél.: 521-2100 ext.#242 > Fax.: 521-2101 > courriel: eboudreault@motus.com > ************************************************************** > ************ > From owner-imc-snacc Fri Jun 22 05:45:05 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f5MCj5k04094 for imc-snacc-bks; Fri, 22 Jun 2001 05:45:05 -0700 (PDT) Received: from mail.motus.qc.ca (mail.motus.qc.ca [207.236.155.221]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f5MCj3k04090 for ; Fri, 22 Jun 2001 05:45:03 -0700 (PDT) Subject: BMPString To: imc-snacc@imc.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: From: eboudreault@motus.com Date: Fri, 22 Jun 2001 08:45:47 -0400 X-MIMETrack: Serialize by Router on motus1/Motus Technologies Inc.(Release 5.0.5 |September 22, 2000) at 2001-06-22 08:45:54 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id f5MCj4k04091 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, I think that the class BMPString's not encoding correctly. See the example below : snacc BMPString : 00000000 1E 22 4D 6F 74 75 73 20 54 65 63 68 4E 6F 6C 6F ."Motus TechNolo 00000010 67 69 65 73 20 69 6E 63 2E 20 2D 20 43 6C 69 65 gies inc. - Clie 00000020 6E 74 20 32 nt 2 Microsoft BMPString : 00000000 1E 54 00 4D 00 69 00 63 00 72 00 6F 00 73 00 6F .T.M.i.c.r.o.s.o 00000010 00 66 00 74 00 20 00 42 00 61 00 73 00 65 00 20 .f.t. .B.a.s.e. 00000020 00 43 00 72 00 79 00 70 00 74 00 6F 00 67 00 72 .C.r.y.p.t.o.g.r 00000030 00 61 00 70 00 68 00 69 00 63 00 20 00 50 00 72 .a.p.h.i.c. .P.r 00000040 00 6F 00 76 00 69 00 64 00 65 00 72 00 20 00 76 .o.v.i.d.e.r. .v 00000050 00 31 00 2E 00 30 .1...0 Can you tel me if tis is an error ???? If not, what i have to do to encode a BMPString like Microsoft ????? Thanks. ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Fri Jun 22 06:27:44 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f5MDRiE07054 for imc-snacc-bks; Fri, 22 Jun 2001 06:27:44 -0700 (PDT) Received: from stingray.missi.ncsc.mil (stingray.missi.ncsc.mil [144.51.50.20]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f5MDRhk07050 for ; Fri, 22 Jun 2001 06:27:43 -0700 (PDT) Mime-Version: 1.0 X-Sender: dadalko@amx.missi.ncsc.mil Message-Id: In-Reply-To: References: Date: Fri, 22 Jun 2001 09:28:31 -0400 To: eboudreault@motus.com, imc-snacc@imc.org From: David Dalkowski Subject: Re: BMPString Content-Type: text/plain; charset="iso-8859-1" ; format="flowed" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id f5MDRhk07051 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Eric, a BMPString is supposed to contain 16 bits per character - it looks like your input to the encoder only contained 8 bits. If you only working in normal ASCII, try interleaving '00' in the array you create. UCHAR mydata[] = {'M',00,'o',00,'t',00, .... etc} -David At 8:45 AM -0400 6/22/01, eboudreault@motus.com wrote: >Hi, > >I think that the class BMPString's not encoding correctly. See the >example below : > >snacc BMPString : >00000000 1E 22 4D 6F 74 75 73 20 54 65 63 68 4E 6F 6C 6F ."Motus TechNolo >00000010 67 69 65 73 20 69 6E 63 2E 20 2D 20 43 6C 69 65 gies inc. - Clie >00000020 6E 74 20 32 nt 2 > >Microsoft BMPString : >00000000 1E 54 00 4D 00 69 00 63 00 72 00 6F 00 73 00 6F .T.M.i.c.r.o.s.o >00000010 00 66 00 74 00 20 00 42 00 61 00 73 00 65 00 20 .f.t. .B.a.s.e. >00000020 00 43 00 72 00 79 00 70 00 74 00 6F 00 67 00 72 .C.r.y.p.t.o.g.r >00000030 00 61 00 70 00 68 00 69 00 63 00 20 00 50 00 72 .a.p.h.i.c. .P.r >00000040 00 6F 00 76 00 69 00 64 00 65 00 72 00 20 00 76 .o.v.i.d.e.r. .v >00000050 00 31 00 2E 00 30 .1...0 > > >Can you tel me if tis is an error ???? > >If not, what i have to do to encode a BMPString like Microsoft ????? > > >Thanks. > >************************************************************************** >Eric Boudreault >------------------------------------------------ >Programmeur >------------------------------------------------ >Motus Technologies >390, St-Vallier Est >Bureau 100 >Québec, Qc >G1K 3P6 >Tél.: 521-2100 ext.#242 >Fax.: 521-2101 >courriel: eboudreault@motus.com >************************************************************************** From owner-imc-snacc Thu Jul 5 13:15:38 2001 Received: by above.proper.com (8.11.3/8.11.3) id f65KFc723170 for imc-snacc-bks; Thu, 5 Jul 2001 13:15:38 -0700 (PDT) Received: from mail.motus.qc.ca (mail.motus.qc.ca [207.236.155.221]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f65KFam23166 for ; Thu, 5 Jul 2001 13:15:37 -0700 (PDT) Subject: Private Key structure To: imc-snacc@imc.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: From: eboudreault@motus.com Date: Thu, 5 Jul 2001 16:16:22 -0400 X-MIMETrack: Serialize by Router on motus1/Motus Technologies Inc.(Release 5.0.5 |September 22, 2000) at 2001-07-05 16:16:30 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id f65KFbm23167 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, I want to know to encode a DSA private key. I know how RSA private key is encoded but i don't know for DSA. RSA : RSAPrivateKey ::= SEQUENCE { version Version, modulus INTEGER, publicExponent INTEGER, privateExponent INTEGER, prime1 INTEGER, prime2 INTEGER, exponent1 INTEGER, exponent2 INTEGER, coefficient INTEGER } DSA : ?????? Can you help me with that ???? Thanks. ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Thu Jul 5 13:58:33 2001 Received: by above.proper.com (8.11.3/8.11.3) id f65KwXp24274 for imc-snacc-bks; Thu, 5 Jul 2001 13:58:33 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f65KwXm24270 for ; Thu, 5 Jul 2001 13:58:33 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Thu, 5 Jul 2001 16:58:49 -0400 Message-ID: <0B95FB5619B3D411817E006008A59259692E2E@wfhqex06.gfgsi.com> From: "Pawling, John" To: "'eboudreault@motus.com'" , imc-snacc@imc.org Subject: RE: Private Key structure Date: Thu, 5 Jul 2001 16:58:40 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id f65KwXm24271 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Eric, PKCS #11 v2.10, section 12.9, provides the answer to your question. =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== -----Original Message----- From: eboudreault@motus.com [mailto:eboudreault@motus.com] Sent: Thursday, July 05, 2001 4:16 PM To: imc-snacc@imc.org Subject: Private Key structure Hi, I want to know to encode a DSA private key. I know how RSA private key is encoded but i don't know for DSA. RSA : RSAPrivateKey ::= SEQUENCE { version Version, modulus INTEGER, publicExponent INTEGER, privateExponent INTEGER, prime1 INTEGER, prime2 INTEGER, exponent1 INTEGER, exponent2 INTEGER, coefficient INTEGER } DSA : ?????? Can you help me with that ???? Thanks. ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Thu Jul 5 23:42:09 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f666g9A12494 for imc-snacc-bks; Thu, 5 Jul 2001 23:42:09 -0700 (PDT) Received: from door.cgey.com (rpapar1.cgey.com [194.3.224.25]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f666g7m12482 for ; Thu, 5 Jul 2001 23:42:07 -0700 (PDT) Received: from prenoms.capgemini.fr (prenoms.capgemini.fr [194.2.91.200]) by door.cgey.com (8.11.3/8.11.3) with ESMTP id f666g1s10142 for ; Fri, 6 Jul 2001 08:42:01 +0200 (MEST) Received: from prenoms.capgemini.fr (localhost [127.0.0.1]) by prenoms.capgemini.fr (8.9.3/8.9.3) with ESMTP id IAA21744 for ; Fri, 6 Jul 2001 08:42:01 +0200 (MET DST) Received: from mnguyen ([10.67.208.166]) by prenoms.capgemini.fr (8.9.3/8.9.3) with SMTP id IAA21710 for ; Fri, 6 Jul 2001 08:42:00 +0200 (MET DST) Message-ID: <002a01c105e6$eb77d2c0$a6d0430a@sudouest.capgemini.fr> From: "Marc NGUYEN" To: Subject: Pb compiling and decoding Date: Fri, 6 Jul 2001 08:43:07 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0027_01C105F7.AD8F5F80" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0027_01C105F7.AD8F5F80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I'm new to ASN.1 and Snacc and I'm trying to understand how it = works. First of all I don't really understand how to decode. I've looked at the = example and I wonder how to decode when it's not PDU type. =20 What tag do I have to take for tagId0 and what length for elmtLen0? Do you have any other examples? =20 And then I compiled an ASN.1 file and I have such warning : --------------- Warning - generated code for the "ANY" type in type = "Element-Protocole-Circuit" will need modification by YOU. The source files will have a "/* ANY - Fix Me!*/" comment before = related code. -------------- Here is an excerpt of the file. -------------- Element-Protocole-Circuit ::=3D --$ primitive -- SEQUENCE { expediteur Adr-Extremite, destinataire Adr-Extremite, type-flux Type-Flux, contenu ANY }; --------------- Thank you again, Nguyen Marc ------=_NextPart_000_0027_01C105F7.AD8F5F80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi, I'm new to ASN.1 and Snacc and I'm = trying to=20 understand how it works.
 
First of all I don't really understand = how to=20 decode. I've looked at the example and I wonder how to decode when it's = not PDU=20 type.
 
What tag do I have to take for tagId0 = and what=20 length for elmtLen0?
 
Do you have any other = examples?
 
 
And then I compiled an ASN.1 file and I = have such=20 warning :
 
---------------
Warning - generated code for the "ANY" = type in type=20 "Element-Protocole-Circuit" will need modification by
YOU.  The = source=20 files will have a "/* ANY - Fix Me!*/" comment before related=20 code.
--------------
Here is an excerpt of the = file.

--------------
Element-Protocole-Circuit ::=3D=20 --$ primitive -- SEQUENCE = {
       =20 expediteur          &nb= sp;=20 Adr-Extremite,
       =20 destinataire         =20 Adr-Extremite,
       =20 type-flux          &nbs= p;   =20 Type-Flux,
       =20 contenu           =     =20 ANY
        };
---------------
 
Thank you again,
 
Nguyen Marc
 
------=_NextPart_000_0027_01C105F7.AD8F5F80-- From owner-imc-snacc Fri Jul 6 03:28:04 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f66AS4I29779 for imc-snacc-bks; Fri, 6 Jul 2001 03:28:04 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f66AS2m29775 for ; Fri, 6 Jul 2001 03:28:02 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Fri, 6 Jul 2001 06:28:16 -0400 Message-ID: From: "Leonberger, Pierce" To: "'Marc NGUYEN'" , imc-snacc@imc.org Subject: RE: Pb compiling and decoding Date: Fri, 6 Jul 2001 06:28:08 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: If you are using C++ every SNACC generated class has a BDec() (PDU decoder) and BDecContent() (non-PDU decoder). If you are using C SNACC generates a the PDU and non-PDU decode routines based on the name of the type. For instance your syntax below would result in the following decode routines: BDecElement_Protocole_Circuit() BDecElement_Protocole_CircuitContent() As for the ANY warning. I suspect are you using SNACC to generated C code. We modified the C++ side to stuff all "ANY" types into a buffer so you don't have to add any code. You just have to analyze the buffer after you decode the type. If you want SNACC to generated C++ code use the following switches: "-D -C". -Pierce -----Original Message----- From: Marc NGUYEN [mailto:marc.nguyen@cgey.com] Sent: Friday, July 06, 2001 2:43 AM To: imc-snacc@imc.org Subject: Pb compiling and decoding Hi, I'm new to ASN.1 and Snacc and I'm trying to understand how it works. First of all I don't really understand how to decode. I've looked at the example and I wonder how to decode when it's not PDU type. What tag do I have to take for tagId0 and what length for elmtLen0? Do you have any other examples? And then I compiled an ASN.1 file and I have such warning : --------------- Warning - generated code for the "ANY" type in type "Element-Protocole-Circuit" will need modification by YOU. The source files will have a "/* ANY - Fix Me!*/" comment before related code. -------------- Here is an excerpt of the file. -------------- Element-Protocole-Circuit ::= --$ primitive -- SEQUENCE { expediteur Adr-Extremite, destinataire Adr-Extremite, type-flux Type-Flux, contenu ANY }; --------------- Thank you again, Nguyen Marc From owner-imc-snacc Fri Jul 6 03:34:01 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f66AY1S29874 for imc-snacc-bks; Fri, 6 Jul 2001 03:34:01 -0700 (PDT) Received: from imcaks.wipro.co.in (imcwipro.wipro.co.in [202.177.129.166]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f66AXwm29870 for ; Fri, 6 Jul 2001 03:33:59 -0700 (PDT) Received: from sun.wipro.co.in (sun [192.9.101.5]) by imcaks.wipro.co.in with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 3JZR1V0B; Fri, 6 Jul 2001 16:00:35 +0530 Received: from uranus.wipro.co.in (uranus [10.100.8.5]) by sun.wipro.co.in with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 3J8Q46VQ; Fri, 6 Jul 2001 16:04:10 +0530 Received: by uranus with Internet Mail Service (5.5.2653.19) id <3JVW8PGA>; Fri, 6 Jul 2001 15:59:37 +0530 Message-ID: <59B50C31CB6CD511902C009027F7056B32BD8E@uranus> From: "Satish Venkata Siva Sunkara (SSD-BLRSJP-ECOM)" To: "'imc-snacc@imc.org'" Subject: Calrification needed Date: Fri, 6 Jul 2001 15:59:37 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, I would like to know as to how we can free the structure generated by SNACC compiler. We used the function PrintRecord that dispalyed the contents of the record structure. After the display, we used the FreeRecord and the snacc provided freeing functions to free the memory. But when we gave a PrintRecord after freeing, it still displays the original values though we expect it to display null values. Thanks and Regards, Satish. From owner-imc-snacc Fri Jul 6 04:25:10 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f66BPAe00707 for imc-snacc-bks; Fri, 6 Jul 2001 04:25:10 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f66BP9m00696 for ; Fri, 6 Jul 2001 04:25:09 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Fri, 6 Jul 2001 07:25:23 -0400 Message-ID: From: "Leonberger, Pierce" To: "'Satish Venkata Siva Sunkara (SSD-BLRSJP-ECOM)'" , "'imc-snacc@imc.org'" Subject: RE: Calrification needed Date: Fri, 6 Jul 2001 07:25:11 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Satish, I personally don't use snacc 'C' generated code much, but when I do I use the NIBBLE memory mode which avoids free routines (snacc won't even generate them). If you look around you should find the routine code for "FreeRecord". Send me the code. If it doesn't re-initialize the structure members to NULL then I'll modify the compiler to do so. -Pierce -----Original Message----- From: Satish Venkata Siva Sunkara (SSD-BLRSJP-ECOM) [mailto:satishsvs@wipro.co.in] Sent: Friday, July 06, 2001 6:30 AM To: 'imc-snacc@imc.org' Subject: Calrification needed Hi, I would like to know as to how we can free the structure generated by SNACC compiler. We used the function PrintRecord that dispalyed the contents of the record structure. After the display, we used the FreeRecord and the snacc provided freeing functions to free the memory. But when we gave a PrintRecord after freeing, it still displays the original values though we expect it to display null values. Thanks and Regards, Satish. From owner-imc-snacc Fri Jul 6 05:06:40 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f66C6eE01181 for imc-snacc-bks; Fri, 6 Jul 2001 05:06:40 -0700 (PDT) Received: from imcaks.wipro.co.in (imcwipro.wipro.co.in [202.177.129.166]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f66C6Zm01176 for ; Fri, 6 Jul 2001 05:06:36 -0700 (PDT) Received: from sun.wipro.co.in (sun [192.9.101.5]) by imcaks.wipro.co.in with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 3JZR1Y0Z; Fri, 6 Jul 2001 17:33:12 +0530 Received: from uranus.wipro.co.in (uranus [10.100.8.5]) by sun.wipro.co.in with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 3J8Q48CH; Fri, 6 Jul 2001 17:36:47 +0530 Received: by uranus with Internet Mail Service (5.5.2653.19) id <3MMABTTT>; Fri, 6 Jul 2001 17:32:15 +0530 Message-ID: <59B50C31CB6CD511902C009027F7056B32BD8F@uranus> From: "Satish Venkata Siva Sunkara (SSD-BLRSJP-ECOM)" To: "'imc-snacc@imc.org'" Subject: clarification needed for hex values Date: Fri, 6 Jul 2001 17:32:14 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: hi we are facing some problem in converting the hexvalues to strings we are able to convert all the hex values from 01 to 7f except 00 for example if we have "616263" we are able to convert it into "abc" but whenever the string starts with "00" or the string contains 00 as the part like "610063" we are getting only "a" . actually while converting into string format we are taking two bytes at a time and after doing bit manipulating we are making it as a single byte and those characters we storing in one array. so whenver we store 00 after converting, the array is taking as the end of string though it does contain other values. i want clarification regarding this problem thanks and regards satish. From owner-imc-snacc Mon Jul 9 03:13:45 2001 Received: by above.proper.com (8.11.3/8.11.3) id f69ADj211653 for imc-snacc-bks; Mon, 9 Jul 2001 03:13:45 -0700 (PDT) Received: from cmailg3.svr.pol.co.uk (cmailg3.svr.pol.co.uk [195.92.195.173]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f69ADhm11649 for ; Mon, 9 Jul 2001 03:13:44 -0700 (PDT) Received: from modem-775.blackbird.dialup.pol.co.uk ([62.137.127.7] helo=lasvegas) by cmailg3.svr.pol.co.uk with smtp (Exim 3.13 #0) id 15JY2x-0002x4-00 for imc-snacc@imc.org; Mon, 09 Jul 2001 11:13:43 +0100 From: "Paul Gogarty" To: Subject: Using Snacc with Microsoft Visual C++ Date: Mon, 9 Jul 2001 11:13:10 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi I am having trouble compiling a Microsoft Visual C++ project containing a set C++ classes produced by Snacc. The Snacc C++ libraries (those in the include directory) generate a series of syntax errors. I have compiled the example projects (VDA test and VDAtestDLL) and these do not generate any syntax errors, yet they use the same Snacc C++ Libraries. I assume my problem is to do with a project setting yet I have checked my project settings against those of the examples and can find no obvious cause for my problem. If anyone who has experience of using Snacc with Visual C++ could help me I would be most appreciative. Paul Gogarty mailto:p.gogarty@mail.com From owner-imc-snacc Mon Jul 9 04:59:06 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f69Bx6713112 for imc-snacc-bks; Mon, 9 Jul 2001 04:59:06 -0700 (PDT) Received: from cmailg4.svr.pol.co.uk (cmailg4.svr.pol.co.uk [195.92.195.174]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f69Bx3m13108 for ; Mon, 9 Jul 2001 04:59:04 -0700 (PDT) Received: from modem-212.blackbird.dialup.pol.co.uk ([62.137.124.212] helo=lasvegas) by cmailg4.svr.pol.co.uk with smtp (Exim 3.13 #0) id 15JZgs-0000ns-00 for imc-snacc@imc.org; Mon, 09 Jul 2001 12:59:03 +0100 From: "Paul Gogarty" To: Subject: RE: Using Snacc with Microsoft Visual C++ (Solution) Date: Mon, 9 Jul 2001 12:58:28 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 In-Reply-To: Importance: Normal Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi I look a bit stupid now but the solution to the afore mentioned problem is not to do with project settings but to do with file names. If using C++ under windows the outputted file must be renamed form XXX.C to XXX.cpp then it compiles with no problems I hope this helps all those in similar situations to myself -----Original Message----- From: owner-imc-snacc@mail.imc.org [mailto:owner-imc-snacc@mail.imc.org]On Behalf Of Paul Gogarty Sent: Monday, July 09, 2001 11:13 AM To: imc-snacc@imc.org Subject: Using Snacc with Microsoft Visual C++ Hi I am having trouble compiling a Microsoft Visual C++ project containing a set C++ classes produced by Snacc. The Snacc C++ libraries (those in the include directory) generate a series of syntax errors. I have compiled the example projects (VDA test and VDAtestDLL) and these do not generate any syntax errors, yet they use the same Snacc C++ Libraries. I assume my problem is to do with a project setting yet I have checked my project settings against those of the examples and can find no obvious cause for my problem. If anyone who has experience of using Snacc with Visual C++ could help me I would be most appreciative. Paul Gogarty mailto:p.gogarty@mail.com From owner-imc-snacc Mon Jul 9 07:13:56 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f69EDuo15544 for imc-snacc-bks; Mon, 9 Jul 2001 07:13:56 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f69EDsm15540 for ; Mon, 9 Jul 2001 07:13:54 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Mon, 9 Jul 2001 10:14:08 -0400 Message-ID: From: "Leonberger, Pierce" To: "'Paul Gogarty'" , imc-snacc@imc.org Subject: RE: Using Snacc with Microsoft Visual C++ (Solution) Date: Mon, 9 Jul 2001 10:14:07 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: I'm currently working on some C++ modifications to SNACC. I'll change to compiler to produce .cpp files (when generated C++ code of course). -Pierce -----Original Message----- From: Paul Gogarty [mailto:p.gogarty@mail.com] Sent: Monday, July 09, 2001 7:58 AM To: imc-snacc@imc.org Subject: RE: Using Snacc with Microsoft Visual C++ (Solution) Hi I look a bit stupid now but the solution to the afore mentioned problem is not to do with project settings but to do with file names. If using C++ under windows the outputted file must be renamed form XXX.C to XXX.cpp then it compiles with no problems I hope this helps all those in similar situations to myself -----Original Message----- From: owner-imc-snacc@mail.imc.org [mailto:owner-imc-snacc@mail.imc.org]On Behalf Of Paul Gogarty Sent: Monday, July 09, 2001 11:13 AM To: imc-snacc@imc.org Subject: Using Snacc with Microsoft Visual C++ Hi I am having trouble compiling a Microsoft Visual C++ project containing a set C++ classes produced by Snacc. The Snacc C++ libraries (those in the include directory) generate a series of syntax errors. I have compiled the example projects (VDA test and VDAtestDLL) and these do not generate any syntax errors, yet they use the same Snacc C++ Libraries. I assume my problem is to do with a project setting yet I have checked my project settings against those of the examples and can find no obvious cause for my problem. If anyone who has experience of using Snacc with Visual C++ could help me I would be most appreciative. Paul Gogarty mailto:p.gogarty@mail.com From owner-imc-snacc Tue Jul 10 07:54:16 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f6AEsGU15070 for imc-snacc-bks; Tue, 10 Jul 2001 07:54:16 -0700 (PDT) Received: from mail1.svr.pol.co.uk (mail1.svr.pol.co.uk [195.92.193.18]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f6AEsDm15058 for ; Tue, 10 Jul 2001 07:54:13 -0700 (PDT) Received: from modem-305.blackbird.dialup.pol.co.uk ([62.137.125.49] helo=lasvegas) by mail1.svr.pol.co.uk with smtp (Exim 3.13 #0) id 15Jytr-0001cp-00 for imc-snacc@imc.org; Tue, 10 Jul 2001 15:54:07 +0100 From: "Paul Gogarty" To: "Imc-Snacc" Subject: Set of ANY Date: Tue, 10 Jul 2001 15:53:40 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0015_01C10958.7D062010" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0015_01C10958.7D062010 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I have a problem with the code generated by SNACC when trying to create a SET OF ANY using the following ASN.1 <...snip...> Attribute ::= SEQUENCE { type AttributeType, values SET OF AttributeValue -- at least one value is required -- } AttributeType ::= OBJECT IDENTIFIER AttributeValue ::= ANY <...snip...> The produced C++ includes a BDecContent member function for the class associated with "values SET OF AttributeValue" this member function attempts to call the BDecContent member functions for all the elements in the set, Unfortunately the set is a list of ANY objects which don't posses BDecContent member functions. <...snip...> void AttributeSetOf::BDecContent (BUF_TYPE b, AsnTag /*tag0*/, AsnLen elmtLen0, AsnLen &bytesDecoded, ENV_TYPE env) { AttributeValue *listElmt; AsnTag tag1; AsnLen listBytesDecoded = 0; while ((listBytesDecoded < elmtLen0) || (elmtLen0 == INDEFINITE_LEN)) { tag1 = BDecTag (b, listBytesDecoded, env); if ((tag1 == EOC_TAG_ID) && (elmtLen0 == INDEFINITE_LEN)) { BDEC_2ND_EOC_OCTET (b, listBytesDecoded, env); break; } listElmt = Append(); listElmt->BDecContent (b, tag1, elmtLen0, listBytesDecoded, env); //BDecContent is not a member //of AsnAny class } bytesDecoded += listBytesDecoded; } // AttributeSetOf::BDecContent <...snip...> I have looked for documentation on the action of the BDecContent function but am unsure of its use. Is there a way to re-write the produced code using the BDec function which is a member of AsnAny I include the ASN definition and the associated C++ code to aid anyone looking at this problem Thanks in advance Paul Gogarty ASN.1 Developer De La Rue InterClear Ltd. De La Rue House Jays Close Viables Basingstoke England RG22 4BS Fax: +44 (0)1256 487755 Tel: +44 (0)7879 458416 mailto:paul.gogarty@interclear.co.uk http://www.interclear.co.uk/ ------=_NextPart_000_0015_01C10958.7D062010 Content-Type: application/octet-stream; name="simple.h" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="simple.h" // NOTE: this is a machine generated file--editing not recommended // // simple.h - class definitions for ASN.1 module Simple // // This file was generated by snacc on Tue Jul 10 15:41:19 2001 // UBC snacc by Mike Sample // A couple of enhancements made by IBM European Networking Center #ifndef _simple_h_ #define _simple_h_ //-----------------------------------------------------------------------= ------- // class declarations: class AttributeSetOf; class Attribute; //-----------------------------------------------------------------------= ------- // class definitions: /* OBJECT IDENTIFIER */ typedef AsnOid AttributeType; /* ANY */ typedef AsnAny AttributeValue; class AttributeSetOf: public AsnType { protected: unsigned long int count; struct AsnListElmt { AsnListElmt *next; AsnListElmt *prev; AttributeValue *elmt; } *first, *curr, *last; public: AttributeSetOf() { count =3D 0; first =3D curr =3D last =3D NULL; } AttributeSetOf (const AttributeSetOf &); ~AttributeSetOf(); AsnType *Clone() const; AttributeSetOf &operator =3D (const AttributeSetOf &); void SetCurrElmt (unsigned long int index); unsigned long int GetCurrElmtIndex(); void SetCurrToFirst() { curr =3D first; } void SetCurrToLast() { curr =3D last; } // reading member fcns int Count() const { return count; } // NOTE: if your compiler complains about these NULLs, its definition = of NULL is broken (and you better change it there!) AttributeValue *First() const { return count > 0 ? first->elmt : NULL; = } AttributeValue *Last() const { return count > 0 ? last->elmt : NULL; } AttributeValue *Curr() const { return curr ? curr->elmt : NULL; } AttributeValue *Next() const { return curr && curr->next ? = curr->next->elmt : NULL; } AttributeValue *Prev() const { return curr && curr->prev ? = curr->prev->elmt : NULL; } // routines that move the curr elmt AttributeValue *GoNext() { if (curr) curr =3D curr->next; return = Curr(); } AttributeValue *GoPrev() { if (curr) curr =3D curr->prev; return = Curr(); } // write & alloc fcns - returns new elmt AttributeValue *Append(); // add elmt to end of list AttributeValue *Prepend(); // add elmt to beginning of list AttributeValue *InsertBefore(); //insert elmt before current elmt AttributeValue *InsertAfter(); //insert elmt after current elmt // write & alloc & copy - returns list after copying elmt AttributeSetOf &AppendCopy (AttributeValue &elmt); // add elmt to end = of list AttributeSetOf &PrependCopy (AttributeValue &elmt); // add elmt to = beginning of list AttributeSetOf &InsertBeforeAndCopy (AttributeValue &elmt); //insert = elmt before current elmt AttributeSetOf &InsertAfterAndCopy (AttributeValue &elmt); //insert = elmt after current elmt // removing the current elmt from the list void RemoveCurrFromList(); // encode and decode routines =20 AsnLen BEnc (BUF_TYPE b); void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env); AsnLen BEncContent (BUF_TYPE b); void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen = &bytesDecoded, ENV_TYPE env); PDU_MEMBER_MACROS void Print (ostream &os) const; void PrintXML (ostream &os, const char *lpszTitle=3DNULL) const; }; class Attribute: public AsnType { public: AttributeType type; AttributeSetOf values; Attribute(); Attribute (const Attribute &); ~Attribute(); AsnType *Clone() const; Attribute &operator =3D (const Attribute &); AsnLen BEncContent (BUF_TYPE b); void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen = &bytesDecoded, ENV_TYPE env); AsnLen BEnc (BUF_TYPE b); void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env); int BEncPdu (BUF_TYPE b, AsnLen &bytesEncoded); int BDecPdu (BUF_TYPE b, AsnLen &bytesDecoded); void Print (ostream &os) const; void PrintXML (ostream &os, const char *lpszTitle=3DNULL) const; }; //-----------------------------------------------------------------------= ------- // externs for value defs //-----------------------------------------------------------------------= ------- #endif /* conditional include of simple.h */ ------=_NextPart_000_0015_01C10958.7D062010 Content-Type: application/octet-stream; name="simple.Cpp" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="simple.Cpp" // NOTE: this is a machine generated file--editing not recommended // // simple.C - class member functions for ASN.1 module Simple // // This file was generated by snacc on Tue Jul 10 15:41:19 2001 // UBC snacc written by Mike Sample // A couple of enhancements made by IBM European Networking Center #include "asn-incl.h" #include "simple.h" //-----------------------------------------------------------------------= ------- // value defs //-----------------------------------------------------------------------= ------- // class member definitions: AsnType *AttributeSetOf::Clone() const { return new AttributeSetOf; } AsnLen AttributeSetOf::BEnc (BUF_TYPE b) { AsnLen l=3D0; l =3D BEncContent (b); l +=3D BEncConsLen (b, l); l +=3D BEncTag1 (b, UNIV, CONS, SET_TAG_CODE); return l; } void AttributeSetOf::BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE = env) { AsnTag tag; AsnLen elmtLen1; if ((tag =3D BDecTag (b, bytesDecoded, env)) !=3D MAKE_TAG_ID (UNIV, = CONS, SET_TAG_CODE)) { Asn1Error << "AttributeSetOf::BDec: ERROR - wrong tag" << endl; longjmp (env, -100); } elmtLen1 =3D BDecLen (b, bytesDecoded, env); BDecContent (b, tag, elmtLen1, bytesDecoded, env); } AttributeSetOf::AttributeSetOf (const AttributeSetOf &) { Asn1Error << "use of incompletely defined = AttributeSetOf::AttributeSetOf (const AttributeSetOf &)" << endl; #ifdef VDADER_RULES throw (new = CSM_Exception(23,__LINE__,"SNACC_FUNCTION",__FILE__,"SNACC_ERROR",NULL));= #else abort(); #endif } AttributeSetOf::~AttributeSetOf() { SetCurrToFirst(); for (; Curr() !=3D NULL; RemoveCurrFromList()) ; } // end of destructor #if SNACC_DEEP_COPY AttributeSetOf &AttributeSetOf::operator =3D (const AttributeSetOf = &that) #else // SNACC_DEEP_COPY AttributeSetOf &AttributeSetOf::operator =3D (const AttributeSetOf &) #endif // SNACC_DEEP_COPY { #if SNACC_DEEP_COPY if (this !=3D &that) { SetCurrToFirst(); for (; Curr(); RemoveCurrFromList()) ; //that.SetCurrToFirst(); //for (; that.Curr(); that.GoNext()) // AppendCopy (*that.Curr()); for (const AsnListElmt *run=3Dthat.first; run; run=3Drun->next) AppendCopy (*run->elmt); } return *this; #else // SNACC_DEEP_COPY Asn1Error << "use of incompletely defined AttributeSetOf = &AttributeSetOf::operator =3D (const AttributeSetOf &)" << endl; #ifdef VDADER_RULES throw (new = CSM_Exception(23,__LINE__,"SNACC_FUNCTION",__FILE__,"SNACC_ERROR",NULL));= #else abort(); #endif // if your compiler complains here, check the -novolat option #endif // SNACC_DEEP_COPY } void AttributeSetOf::Print (ostream &os) const { os << "{ -- SEQUENCE/SET OF -- " << endl; indentG =3D (short)(indentG + stdIndentG); //SetCurrToFirst(); //for (; Curr() !=3D NULL; GoNext()) for (const AsnListElmt *run=3Dfirst; run; run=3Drun->next) { Indent (os, indentG); //os << *Curr(); os << *run->elmt; //if (Curr() !=3D Last()) if (run !=3D last) os << ","; os << endl; } indentG =3D (short)(indentG - stdIndentG); Indent (os, indentG); os << "}\n"; } // Print void AttributeSetOf::PrintXML (ostream &os, const char *lpszTitle) const { os << ""; if (lpszTitle) os << lpszTitle; os << "-" << endl; for (const AsnListElmt *run=3Dfirst; run; run=3Drun->next) { (*run->elmt).PrintXML(os); //os << *run->elmt; } os << "" << endl; } // AttributeSetOf::PrintXML void AttributeSetOf::SetCurrElmt (unsigned long int index) { unsigned long int i; curr =3D first; if (count) for (i =3D 0; (i < (count-1)) && (i < index); i++) curr =3D curr->next; } // AttributeSetOf::SetCurrElmt unsigned long int AttributeSetOf::GetCurrElmtIndex() { unsigned long int i; AsnListElmt *tmp; if (curr !=3D NULL) { for (i =3D 0, tmp =3D first; tmp !=3D NULL; i++) { if (tmp =3D=3D curr) return i; else tmp =3D tmp->next; } } return count; } // AttributeSetOf::GetCurrElmtIndex // alloc new list elmt, put at end of list // and return the component type AttributeValue *AttributeSetOf::Append() { AsnListElmt *newElmt; newElmt =3D new AsnListElmt; newElmt->elmt =3D new AttributeValue; newElmt->next =3D NULL; if (last =3D=3D NULL) { newElmt->prev =3D NULL; first =3D last =3D newElmt; } else { newElmt->prev =3D last; last->next =3D newElmt; last =3D newElmt; } count++; return (curr =3D newElmt)->elmt; } // AttributeSetOf::Append // alloc new list elmt, put at begining of list // and return the component type AttributeValue *AttributeSetOf::Prepend() { AsnListElmt *newElmt; newElmt =3D new AsnListElmt; newElmt->elmt =3D new AttributeValue; newElmt->prev =3D NULL; if (first =3D=3D NULL) { newElmt->next =3D NULL; first =3D last =3D newElmt; } else { newElmt->next =3D first; first->prev =3D newElmt; first =3D newElmt; } count++; return (curr =3D newElmt)->elmt; } // AttributeSetOf::Prepend // alloc new list elmt, insert it before the // current element and return the component type // if the current element is null, the new element // is placed at the beginning of the list. AttributeValue *AttributeSetOf::InsertBefore() { AsnListElmt *newElmt; newElmt =3D new AsnListElmt; newElmt->elmt =3D new AttributeValue; if (curr =3D=3D NULL) { newElmt->next =3D first; newElmt->prev =3D NULL; first =3D newElmt; if (last =3D=3D NULL) last =3D newElmt; } else { newElmt->next =3D curr; newElmt->prev =3D curr->prev; curr->prev =3D newElmt; if (curr =3D=3D first) first =3D newElmt; else newElmt->prev->next =3D newElmt; } count++; return (curr =3D newElmt)->elmt; } // AttributeSetOf::InsertBefore // alloc new list elmt, insert it after the // current element and return the component type // if the current element is null, the new element // is placed at the end of the list. AttributeValue *AttributeSetOf::InsertAfter() { AsnListElmt *newElmt; newElmt =3D new AsnListElmt; newElmt->elmt =3D new AttributeValue; if (curr =3D=3D NULL) { newElmt->prev =3D last; newElmt->next =3D NULL; last =3D newElmt; if (first =3D=3D NULL) first =3D newElmt; } else { newElmt->prev =3D curr; newElmt->next =3D curr->next; curr->next =3D newElmt; if (curr =3D=3D last) last =3D newElmt; else newElmt->next->prev =3D newElmt; } count++; return (curr =3D newElmt)->elmt; } // AttributeSetOf::InsertAfter AttributeSetOf &AttributeSetOf::AppendCopy (AttributeValue &elmt) { AsnListElmt *newElmt; newElmt =3D new AsnListElmt; newElmt->elmt =3D new AttributeValue; *newElmt->elmt =3D elmt; newElmt->next =3D NULL; if (last =3D=3D NULL) { newElmt->prev =3D NULL; first =3D last =3D newElmt; } else { newElmt->prev =3D last; last->next =3D newElmt; last =3D newElmt; } count++; return *this; } // AppendCopy AttributeSetOf &AttributeSetOf::PrependCopy (AttributeValue &elmt) { AsnListElmt *newElmt; newElmt =3D new AsnListElmt; newElmt->elmt =3D new AttributeValue; *newElmt->elmt =3D elmt; newElmt->prev =3D NULL; if (first =3D=3D NULL) { newElmt->next =3D NULL; first =3D last =3D newElmt; } else { newElmt->next =3D first; first->prev =3D newElmt; first =3D newElmt; } count++; return *this; } // AttributeSetOf::PrependCopy // alloc new list elmt, insert it before the // current element, copy the given elmt into the new elmt // and return the component type. // if the current element is null, the new element // is placed at the beginning of the list. AttributeSetOf &AttributeSetOf::InsertBeforeAndCopy (AttributeValue = &elmt) { AsnListElmt *newElmt; newElmt =3D new AsnListElmt; newElmt->elmt =3D new AttributeValue; *newElmt->elmt =3D elmt; if (curr =3D=3D NULL) { newElmt->next =3D first; newElmt->prev =3D NULL; first =3D newElmt; if (last =3D=3D NULL) last =3D newElmt; } else { newElmt->next =3D curr; newElmt->prev =3D curr->prev; curr->prev =3D newElmt; if (curr =3D=3D first) first =3D newElmt; else newElmt->prev->next =3D newElmt; } count++; return *this; } // AttributeSetOf::InsertBeforeAndCopy // alloc new list elmt, insert it after the // current element, copy given elmt in to new elmt // and return the component type // if the current element is null, the new element // is placed at the end of the list. AttributeSetOf &AttributeSetOf::InsertAfterAndCopy (AttributeValue = &elmt) { AsnListElmt *newElmt; newElmt =3D new AsnListElmt; newElmt->elmt =3D new AttributeValue; *newElmt->elmt =3D elmt; if (curr =3D=3D NULL) { newElmt->prev =3D last; newElmt->next =3D NULL; last =3D newElmt; if (first =3D=3D NULL) first =3D newElmt; } else { newElmt->prev =3D curr; newElmt->next =3D curr->next; curr->next =3D newElmt; if (curr =3D=3D last) last =3D newElmt; else newElmt->next->prev =3D newElmt; } count++; return *this; } // AttributeSetOf::InsertAfterAndCopy // remove current element from list if current element is not NULL=20 // The new current element will be the next element. // If the current element is the last element in the list // the second but last element will become the new current element. void AttributeSetOf::RemoveCurrFromList() { AsnListElmt *del_elmt; if (curr !=3D NULL) { del_elmt =3D curr; count--; if (count =3D=3D 0) first =3D last =3D curr =3D NULL; else if (curr =3D=3D first) { curr =3D first=3D first->next; first->prev =3D NULL; } else if (curr =3D=3D last) { curr =3D last =3D last->prev; last->next =3D NULL; } else { curr->prev->next =3D curr->next; curr->next->prev =3D curr->prev; curr =3D curr->next; } delete del_elmt->elmt; delete del_elmt; } } AsnLen AttributeSetOf::BEncContent (BUF_TYPE b) { AsnListElmt *currElmt; AsnLen elmtLen; AsnLen totalLen =3D 0; return totalLen; } // AttributeSetOf::BEncContent void AttributeSetOf::BDecContent (BUF_TYPE b, AsnTag /*tag0*/, AsnLen = elmtLen0, AsnLen &bytesDecoded, ENV_TYPE env) { AttributeValue *listElmt; AsnTag tag1; AsnLen listBytesDecoded =3D 0; while ((listBytesDecoded < elmtLen0) || (elmtLen0 =3D=3D = INDEFINITE_LEN)) { tag1 =3D BDecTag (b, listBytesDecoded, env); if ((tag1 =3D=3D EOC_TAG_ID) && (elmtLen0 =3D=3D = INDEFINITE_LEN)) { BDEC_2ND_EOC_OCTET (b, listBytesDecoded, env); break; } listElmt =3D Append(); listElmt->BDecContent (b, tag1, elmtLen0, listBytesDecoded, = env); } bytesDecoded +=3D listBytesDecoded; } // AttributeSetOf::BDecContent Attribute::Attribute() { } Attribute::Attribute (const Attribute &) { Asn1Error << "use of incompletely defined Attribute::Attribute (const = Attribute &)" << endl; #ifdef VDADER_RULES throw (new = CSM_Exception(23,__LINE__,"SNACC_FUNCTION",__FILE__,"SNACC_ERROR",NULL));= #else abort(); #endif } Attribute::~Attribute() { } AsnType *Attribute::Clone() const { return new Attribute; } #if SNACC_DEEP_COPY Attribute &Attribute::operator =3D (const Attribute &that) #else // SNACC_DEEP_COPY Attribute &Attribute::operator =3D (const Attribute &) #endif // SNACC_DEEP_COPY { #if SNACC_DEEP_COPY if (this !=3D &that) { type =3D that.type; values =3D that.values; } return *this; #else // SNACC_DEEP_COPY Asn1Error << "use of incompletely defined Attribute = &Attribute::operator =3D (const Attribute &)" << endl; #ifdef VDADER_RULES throw (new = CSM_Exception(23,__LINE__,"SNACC_FUNCTION",__FILE__,"SNACC_ERROR",NULL));= #else abort(); #endif // if your compiler complains here, check the -novolat option #endif // SNACC_DEEP_COPY } AsnLen Attribute::BEncContent (BUF_TYPE b) { AsnLen totalLen =3D 0; AsnLen l=3D0; BEncEocIfNec (b); l =3D values.BEncContent (b); l +=3D BEncConsLen (b, l); l +=3D BEncTag1 (b, UNIV, CONS, SET_TAG_CODE); totalLen +=3D l; l =3D type.BEncContent (b); l +=3D BEncDefLen (b, l); l +=3D BEncTag1 (b, UNIV, PRIM, OID_TAG_CODE); totalLen +=3D l; return totalLen; } // Attribute::BEncContent void Attribute::BDecContent (BUF_TYPE b, AsnTag /*tag0*/, AsnLen = elmtLen0, AsnLen &bytesDecoded, ENV_TYPE env) { AsnTag tag1; AsnLen seqBytesDecoded =3D 0; AsnLen elmtLen1; tag1 =3D BDecTag (b, seqBytesDecoded, env); if ((tag1 =3D=3D MAKE_TAG_ID (UNIV, PRIM, OID_TAG_CODE))) { elmtLen1 =3D BDecLen (b, seqBytesDecoded, env); type.BDecContent (b, tag1, elmtLen1, seqBytesDecoded, env); tag1 =3D BDecTag (b, seqBytesDecoded, env); } else { Asn1Error << "ERROR - SEQUENCE is missing non-optional elmt." << = endl; longjmp (env, -101); } if ((tag1 =3D=3D MAKE_TAG_ID (UNIV, CONS, SET_TAG_CODE))) { elmtLen1 =3D BDecLen (b, seqBytesDecoded, env); values.BDecContent (b, tag1, elmtLen1, seqBytesDecoded, env); } else { Asn1Error << "ERROR - SEQUENCE is missing non-optional elmt." << = endl; longjmp (env, -102); } bytesDecoded +=3D seqBytesDecoded; if (elmtLen0 =3D=3D INDEFINITE_LEN) { BDecEoc (b, bytesDecoded, env); return; } else if (seqBytesDecoded !=3D elmtLen0) { Asn1Error << "ERROR - Length discrepancy on sequence." << endl; longjmp (env, -103); } else return; } // Attribute::BDecContent AsnLen Attribute::BEnc (BUF_TYPE b) { AsnLen l=3D0; l =3D BEncContent (b); l +=3D BEncConsLen (b, l); l +=3D BEncTag1 (b, UNIV, CONS, SEQ_TAG_CODE); return l; } void Attribute::BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env) { AsnTag tag; AsnLen elmtLen1; if ((tag =3D BDecTag (b, bytesDecoded, env)) !=3D MAKE_TAG_ID (UNIV, = CONS, SEQ_TAG_CODE)) { Asn1Error << "Attribute::BDec: ERROR - wrong tag" << endl; longjmp (env, -104); } elmtLen1 =3D BDecLen (b, bytesDecoded, env); BDecContent (b, tag, elmtLen1, bytesDecoded, env); } int Attribute::BEncPdu (BUF_TYPE b, AsnLen &bytesEncoded) { bytesEncoded =3D BEnc (b); return !b.WriteError(); } int Attribute::BDecPdu (BUF_TYPE b, AsnLen &bytesDecoded) { ENV_TYPE env; int val; bytesDecoded =3D 0; if ((val =3D setjmp (env)) =3D=3D 0) { BDec (b, bytesDecoded, env); return !b.ReadError(); } else return false; } void Attribute::Print (ostream &os) const { os << "{ -- SEQUENCE --" << endl; indentG =3D (short)(indentG + stdIndentG); { Indent (os, indentG); os << "type "; os << type; os << "," << endl; } { Indent (os, indentG); os << "values "; os << values; } os << endl; indentG =3D (short)(indentG - stdIndentG); Indent (os, indentG); os << "}"; } // Attribute::Print void Attribute::PrintXML (ostream &os, const char *lpszTitle) const { os << ""; if (lpszTitle) os << lpszTitle; os << "-" << endl; { type.PrintXML(os, "type"); } { values.PrintXML(os, "values"); } os << "" << endl; } // Attribute::PrintXML ------=_NextPart_000_0015_01C10958.7D062010 Content-Type: application/octet-stream; name="simple.asn1" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="simple.asn1" Simple DEFINITIONS ::= BEGIN -- EXPORTS ALL -- -- IMPORTS NONE -- Attribute ::= SEQUENCE { type AttributeType, values SET OF AttributeValue -- at least one value is required -- } AttributeType ::= OBJECT IDENTIFIER AttributeValue ::= ANY END ------=_NextPart_000_0015_01C10958.7D062010-- From owner-imc-snacc Tue Jul 10 09:09:03 2001 Received: by above.proper.com (8.11.3/8.11.3) id f6AG93D23248 for imc-snacc-bks; Tue, 10 Jul 2001 09:09:03 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f6AG92m23244 for ; Tue, 10 Jul 2001 09:09:02 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Tue, 10 Jul 2001 12:09:16 -0400 Message-ID: From: "Leonberger, Pierce" To: "'Paul Gogarty'" , Imc-Snacc Subject: RE: Set of ANY Date: Tue, 10 Jul 2001 12:09:10 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: We changed the ANY processing to store the ANY as a CSM_Buffer within the AsnAny class. I've never tried using BDecContent to decode the any so I wouldn't be surprised if it's broken. I'll add it to our growing list of enchancements & fixes for the next release. Here is an example of how to decode the "values" within an "Attribute" using the current distribution. bool decodeAny(AsnType &snaccType, AsnAny &snaccAny) <... snip ...> Clearance tmpClearance; for(pSnaccClearanceAttribute->values.SetCurrToFirst(), pSnaccClearanceValue = pSnaccClearanceAttribute->values.Curr(); (pSnaccClearanceValue != NULL) && (done == false); pSnaccClearanceValue = pSnaccClearanceAttribute->values.GoNext()) { if (decodeAny(tmpClearance, *pSnaccClearanceValue ) != true) { ACL_THROW(ACL_DECODE_ERROR, "Error decoding Clearance", NULL); } // Add code here // } <... snip ...> -Pierce -----Original Message----- From: Paul Gogarty [mailto:p.gogarty@mail.com] Sent: Tuesday, July 10, 2001 10:54 AM To: Imc-Snacc Subject: Set of ANY I have a problem with the code generated by SNACC when trying to create a SET OF ANY using the following ASN.1 <...snip...> Attribute ::= SEQUENCE { type AttributeType, values SET OF AttributeValue -- at least one value is required -- } AttributeType ::= OBJECT IDENTIFIER AttributeValue ::= ANY <...snip...> The produced C++ includes a BDecContent member function for the class associated with "values SET OF AttributeValue" this member function attempts to call the BDecContent member functions for all the elements in the set, Unfortunately the set is a list of ANY objects which don't posses BDecContent member functions. <...snip...> void AttributeSetOf::BDecContent (BUF_TYPE b, AsnTag /*tag0*/, AsnLen elmtLen0, AsnLen &bytesDecoded, ENV_TYPE env) { AttributeValue *listElmt; AsnTag tag1; AsnLen listBytesDecoded = 0; while ((listBytesDecoded < elmtLen0) || (elmtLen0 == INDEFINITE_LEN)) { tag1 = BDecTag (b, listBytesDecoded, env); if ((tag1 == EOC_TAG_ID) && (elmtLen0 == INDEFINITE_LEN)) { BDEC_2ND_EOC_OCTET (b, listBytesDecoded, env); break; } listElmt = Append(); listElmt->BDecContent (b, tag1, elmtLen0, listBytesDecoded, env); //BDecContent is not a member //of AsnAny class } bytesDecoded += listBytesDecoded; } // AttributeSetOf::BDecContent <...snip...> I have looked for documentation on the action of the BDecContent function but am unsure of its use. Is there a way to re-write the produced code using the BDec function which is a member of AsnAny I include the ASN definition and the associated C++ code to aid anyone looking at this problem Thanks in advance Paul Gogarty ASN.1 Developer De La Rue InterClear Ltd. De La Rue House Jays Close Viables Basingstoke England RG22 4BS Fax: +44 (0)1256 487755 Tel: +44 (0)7879 458416 mailto:paul.gogarty@interclear.co.uk http://www.interclear.co.uk/ From owner-imc-snacc Tue Jul 10 14:33:09 2001 Received: by above.proper.com (8.11.3/8.11.3) id f6ALX9m06307 for imc-snacc-bks; Tue, 10 Jul 2001 14:33:09 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f6ALX8m06303 for ; Tue, 10 Jul 2001 14:33:08 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Tue, 10 Jul 2001 17:33:24 -0400 Message-ID: From: "Colestock, Robert" To: "'satishsvs@wipro.co.in'" Cc: "'imc-snacc@imc.org'" Subject: RE: clarification needed for hex values Date: Tue, 10 Jul 2001 17:33:21 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Satish: You will have to be a bit more specific. We have no library interfaces that take hex strings as input. I can only surmise you are referring to our test utilities. In that case, these are unsupported for customer use and have many restrictions if you are attempting to use them for application data input (not recommended). It should be easy for you to identify where this issue arises, it is probably due to our test routines assuming the result is a string with the "00" byte termination. All of our test utilities are intended only for Unit Development Testing. If you could be more specific I can identify why this is happening. If this is your own code, we use the "scanf(...)" "C" statement, with "%2.2x" for HEX input string, with the output byte array updated. char buf[100]; char *pString="610063"; sscanf(&pString[0], "%2.2x", &buf[0]); sscanf(&pString[2], "%2.2x", &buf[1]); sscanf(&pString[4], "%2.2x", &buf[2]); ... Of course you would do this in a for loop with the 1st index incremented by 2. Bob Colestock VDA -----Original Message----- From: Satish Venkata Siva Sunkara (SSD-BLRSJP-ECOM) [mailto:satishsvs@wipro.co.in] Sent: Friday, July 06, 2001 8:02 AM To: 'imc-snacc@imc.org' Subject: clarification needed for hex values hi we are facing some problem in converting the hexvalues to strings we are able to convert all the hex values from 01 to 7f except 00 for example if we have "616263" we are able to convert it into "abc" but whenever the string starts with "00" or the string contains 00 as the part like "610063" we are getting only "a" . actually while converting into string format we are taking two bytes at a time and after doing bit manipulating we are making it as a single byte and those characters we storing in one array. so whenver we store 00 after converting, the array is taking as the end of string though it does contain other values. i want clarification regarding this problem thanks and regards satish. From owner-imc-snacc Wed Jul 11 06:18:59 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f6BDIxH17724 for imc-snacc-bks; Wed, 11 Jul 2001 06:18:59 -0700 (PDT) Received: from door.cgey.com (rpapar1.cgey.com [194.3.224.25]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f6BDIum17717 for ; Wed, 11 Jul 2001 06:18:57 -0700 (PDT) Received: from prenoms.capgemini.fr (prenoms.capgemini.fr [194.2.91.200]) by door.cgey.com (8.11.3/8.11.3) with ESMTP id f6BDIhs29175 for ; Wed, 11 Jul 2001 15:18:48 +0200 (MEST) Received: from prenoms.capgemini.fr (localhost [127.0.0.1]) by prenoms.capgemini.fr (8.9.3/8.9.3) with ESMTP id PAA06704 for ; Wed, 11 Jul 2001 15:18:39 +0200 (MET DST) Received: from mnguyen ([10.67.208.166]) by prenoms.capgemini.fr (8.9.3/8.9.3) with SMTP id PAA06558 for ; Wed, 11 Jul 2001 15:18:37 +0200 (MET DST) Message-ID: <002101c10a0c$25f541c0$a6d0430a@sudouest.capgemini.fr> From: "Marc NGUYEN" To: Subject: Pb with ANY and with Integer Date: Wed, 11 Jul 2001 15:19:36 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001C_01C10A1C.E51364A0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: This is a multi-part message in MIME format. ------=_NextPart_000_001C_01C10A1C.E51364A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I'm new to ASN.1 and BER and I had some questions : I'm using Snacc for C compiling. =20 - When I don't have a PDU type how do I get the elmtLen0 to decode my = BER encoding? - If I have the comment /* ANY - Fix me ! */ what do I have to modify on = the code so that it may compile? DO you have any simple example so that = I can understand? - When I have such ASN.1 declaration (written after) Snacc can't compile = my .asn1 file here is an example and the errors that I get : Id-Canal1 ::=3D INTEGER { X1A (1), X2A (81H), ---> parse error at symbol "H" X3A (2) }; Id-Canal2 ::=3D INTEGER { TC1A (03H), ---> parse error at symbol "3" TC2A (0BH), TC3A (11H) }; thank you again nguyen Marc ------=_NextPart_000_001C_01C10A1C.E51364A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I'm new to ASN.1 and BER and I had some = questions=20 :
 
I'm using Snacc for = C compiling.
 
 
- When I don't have a PDU type how do I = get the=20 elmtLen0 to decode my BER encoding?
 
- If I have the comment /* ANY - Fix me = ! */ what=20 do I have to modify on the code so that it may compile? DO you have = any=20 simple example so that I can understand?
 
- When I have such ASN.1 declaration = (written=20 after) Snacc can't compile my .asn1 file here is an = example  and the=20 errors that I get :
 
Id-Canal1 ::=3D INTEGER {
X1A    (1),
X2A   =20 (81H),           &= nbsp;     =20 ---> parse error at symbol "H"
X3A    (2)
};
 
Id-Canal2 ::=3D INTEGER {
TC1A    = (03H),   =20             ---> = parse=20 error at symbol "3"
TC2A    = (0BH),
TC3A    = (11H)
};
 
thank you again
 
 
           = nguyen=20 Marc
 
 
------=_NextPart_000_001C_01C10A1C.E51364A0-- From owner-imc-snacc Wed Jul 11 14:15:29 2001 Received: by above.proper.com (8.11.3/8.11.3) id f6BLFTo07962 for imc-snacc-bks; Wed, 11 Jul 2001 14:15:29 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f6BLFRm07958 for ; Wed, 11 Jul 2001 14:15:27 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Wed, 11 Jul 2001 17:15:43 -0400 Message-ID: From: "Leonberger, Pierce" To: "'imc-snacc@imc.org'" Subject: Annoying SNACC issues? Date: Wed, 11 Jul 2001 17:15:41 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: If anyone has annoying SNACC features they'd like to see axe'd let me know. I'm chopping/changing stuff that's been annoying me over the years. Mostly dead code and #ifdef's that just don't make sense. -- Pierce Leonberger Getronics Government Solutions From owner-imc-snacc Tue Jul 17 00:23:20 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f6H7NKF21728 for imc-snacc-bks; Tue, 17 Jul 2001 00:23:20 -0700 (PDT) Received: from imcaks.wipro.co.in (imcwipro.wipro.co.in [202.177.129.166]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f6H7NFq21724 for ; Tue, 17 Jul 2001 00:23:17 -0700 (PDT) Received: from uranus.wipro.co.in (uranus [10.100.8.5]) by imcaks.wipro.co.in with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id PA8X3G76; Tue, 17 Jul 2001 12:49:39 +0530 Received: by uranus with Internet Mail Service (5.5.2653.19) id ; Tue, 17 Jul 2001 12:48:41 +0530 Message-ID: <100238FFFC78D511902F009027F7056B10AE97@uranus> From: "Satish Venkata Siva Sunkara (SSD-BLRSJP-ECOM)" To: "'imc-snacc@imc.org'" Subject: Type tables Date: Tue, 17 Jul 2001 12:48:40 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, We are currently using the snacc generated .c and .h files for decoding/encoding. Suppose we are to go for using type tables (.tt), what is the primary advantage in using them. In what way is type table going to be advantageous..?? Kindly getback. Regards, Satish ------------------------------------------------- Information contained and transmitted by this E-MAIL is proprietary to Wipro Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at mailadmin@wipro.co.in -------------------------------------------------- From owner-imc-snacc Tue Jul 17 10:51:42 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f6HHpgq09804 for imc-snacc-bks; Tue, 17 Jul 2001 10:51:42 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f6HHpeq09799 for ; Tue, 17 Jul 2001 10:51:40 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Tue, 17 Jul 2001 13:51:53 -0400 Message-ID: From: "Leonberger, Pierce" To: "'Satish Venkata Siva Sunkara (SSD-BLRSJP-ECOM)'" , "'imc-snacc@imc.org'" Subject: RE: Type tables Date: Tue, 17 Jul 2001 13:51:52 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Satish, I've never used SNACC's type tables. I looked at it briefly and simply never found a use for them. In fact I'd rather chop support for it to simplify the build process. If you find it useful let us know; otherwise this feature *may* be chopped. -Pierce -----Original Message----- From: Satish Venkata Siva Sunkara (SSD-BLRSJP-ECOM) [mailto:satishsvs@wipro.co.in] Sent: Tuesday, July 17, 2001 3:19 AM To: 'imc-snacc@imc.org' Subject: Type tables Hi, We are currently using the snacc generated .c and .h files for decoding/encoding. Suppose we are to go for using type tables (.tt), what is the primary advantage in using them. In what way is type table going to be advantageous..?? Kindly getback. Regards, Satish ------------------------------------------------- Information contained and transmitted by this E-MAIL is proprietary to Wipro Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at mailadmin@wipro.co.in -------------------------------------------------- From owner-imc-snacc Fri Jul 20 03:02:30 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f6KA2U521606 for imc-snacc-bks; Fri, 20 Jul 2001 03:02:30 -0700 (PDT) Received: from ew.mimos.my (ew.mimos.my [192.228.129.34]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f6KA2Sq21598 for ; Fri, 20 Jul 2001 03:02:28 -0700 (PDT) Received: from et.mimos.my (s133161.mimos.my [192.228.133.161]) by ew.mimos.my (8.9.3/8.9.3) with ESMTP id SAA04356 for ; Fri, 20 Jul 2001 18:02:27 +0800 (MYT) Message-Id: <5.0.2.1.0.20010720175755.00a2e1d0@ew.mimos.my> X-Sender: ettan@ew.mimos.my X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Fri, 20 Jul 2001 17:59:15 +0800 To: imc-snacc@imc.org From: ET Tan Subject: DER encoding Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: First of all, I am new to ASN.1 and just read the "Layman Guide". Now, I need SNACC to produce some DER encoding, how do I do this? The examples given are all on BER. Thanks. From owner-imc-snacc Fri Jul 20 04:23:20 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f6KBNKG24887 for imc-snacc-bks; Fri, 20 Jul 2001 04:23:20 -0700 (PDT) Received: from ew.mimos.my (ew.mimos.my [192.228.129.34]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f6KBNIq24883 for ; Fri, 20 Jul 2001 04:23:19 -0700 (PDT) Received: from et.mimos.my (s133161.mimos.my [192.228.133.161]) by ew.mimos.my (8.9.3/8.9.3) with ESMTP id TAA20000 for ; Fri, 20 Jul 2001 19:23:18 +0800 (MYT) Message-Id: <5.0.2.1.0.20010720191937.00a18080@ew.mimos.my> X-Sender: ettan@ew.mimos.my X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Fri, 20 Jul 2001 19:20:05 +0800 To: imc-snacc@imc.org From: ET Tan Subject: Problem with Sample programs Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: This is another problem that I am having... I am trying out the sample program, Simple, in c++-examples\simple. When I run the program, the output on the screen is correct: ----- Wrote the following BER PersonnelRecord value to pr.ber. Test it with "def" and "indef". { -- SET -- { -- SEQUENCE -- givenName '4a6f686e'H -- "John" --, initial '45'H -- "E" --, familyName '536d697468'H -- "Smith" -- }, title '5468652042696720436865657365'H -- "The Big Cheese" --, 99999, dateOfHire '3139383230313034'H -- "19820104" --, nameOfSpouse { -- SEQUENCE -- givenName '4d617279'H -- "Mary" --, initial '4c'H -- "L" --, familyName '536d697468'H -- "Smith" -- }, children { -- SEQUENCE/SET OF -- { -- SET -- { -- SEQUENCE -- givenName '4a616d6573'H -- "James" --, initial '52'H -- "R" --, familyName '536d697468'H -- "Smith" -- }, dateOfBirth '3139353730333130'H -- "19570310" -- }, { -- SET -- { -- SEQUENCE -- givenName '4c697361'H -- "Lisa" --, initial '4d'H -- "M" --, familyName '536d697468'H -- "Smith" -- }, dateOfBirth '3139363130363231'H -- "19610621" -- } } } ----- However, when I check the file pr.der which is supposed to have the BER encoding of the above information written, I only have: 60 4d 61 10 16 04 4a 6f 68 6e 16 01 45 16 05 53 `Ma...John..E..S 6d 69 74 68 a0 10 16 0e 54 68 65 20 42 69 67 20 mith....The.Big. 43 68 65 65 73 65 5f 81 00 03 01 86 9f a1 0d 0a Cheese_......... 43 08 31 39 38 32 30 31 30 34 a2 12 61 10 16 04 C.19820104..a... 4d 61 72 79 16 01 4c 16 05 53 6d 69 74 68 a3 00 Mary..L..Smith.. The sequence of children is missing, what could be wrong? My project (using MSVC++ on Win2K) has the following settings: 1. I have included the line: #undef HAVE_VARIABLE_SIZED_AUTOMATIC_ARRAYS in C:\SNACC\c++-examples\simple\example.cpp Without it, the compiler would complain. 2. Defines: SNACCDLL_API="",SNACC_DEEP_COPY,USE_NIBBLE_MEMORY=0,VDADER_RULES 3. Uses snaccCppSTATIC.lib Please help, thanks. From owner-imc-snacc Fri Jul 20 04:41:33 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f6KBfXS25438 for imc-snacc-bks; Fri, 20 Jul 2001 04:41:33 -0700 (PDT) Received: from ew.mimos.my (ew.mimos.my [192.228.129.34]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f6KBfWq25432 for ; Fri, 20 Jul 2001 04:41:32 -0700 (PDT) Received: from et.mimos.my (s133161.mimos.my [192.228.133.161]) by ew.mimos.my (8.9.3/8.9.3) with ESMTP id TAA22290 for ; Fri, 20 Jul 2001 19:41:31 +0800 (MYT) Message-Id: <5.0.2.1.0.20010720193733.00a1a5d0@ew.mimos.my> X-Sender: ettan@ew.mimos.my X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Fri, 20 Jul 2001 19:38:19 +0800 To: imc-snacc@imc.org From: ET Tan Subject: Correction: Problem with Sample programs Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: In my previous mail, the file that program Simple writes to is pr.ber and not pr.der :) From owner-imc-snacc Wed Jul 25 03:18:50 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f6PAIo408866 for imc-snacc-bks; Wed, 25 Jul 2001 03:18:50 -0700 (PDT) Received: from imcaks.wipro.co.in (imcwipro.wipro.co.in [202.177.129.166]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f6PAIgs08841 for ; Wed, 25 Jul 2001 03:18:43 -0700 (PDT) Received: from uranus.wipro.co.in (uranus [10.100.8.5]) by imcaks.wipro.co.in with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id PTKHX4ML; Wed, 25 Jul 2001 15:17:01 +0530 Received: by uranus with Internet Mail Service (5.5.2653.19) id ; Wed, 25 Jul 2001 15:16:03 +0530 Message-ID: <100238FFFC78D511902F009027F7056B10AEA9@uranus> From: "Satish Venkata Siva Sunkara (SSD-BLRSJP-ECOM)" To: "'imc-snacc@imc.org'" Subject: installation of snacc-1.3 Date: Wed, 25 Jul 2001 15:16:02 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi.. we are facing problems with the installation of snacc-1.3 in sunOS. Firstly we executed ./configure and it went through correctly. Then we gave "make" and it is giving an error as follows. I guess we are missing out something on lex/yacc...not sure. if any body has any idea, kindly get back. Regards Satish ************************************************************************** # make make all-recursive Making all in compiler Making all in core cd ../.. \ && CONFIG_FILES=compiler/core/Makefile CONFIG_HEADERS= /bin/sh ./config.status creating compiler/core/Makefile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DCOMPILER -DUSE_NIBBLE_MEMORY=0 -DUSE_EXP_BUF -I../../c-lib/inc -I.. /../c-lib/boot -I../../compiler/back-ends -g -O2 -c parse-asn1.c gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DCOMPILER -DUSE_NIBBLE_MEMORY=0 -DUSE_EXP_BUF -I../../c-lib/inc -I.. /../c-lib/boot -I../../compiler/back-ends -g -O2 -c lex-asn1.c In file included from lex-asn1.l:48: lex-stuff.h:33: conflicting types for `yytext' lex-asn1.c:1384: previous declaration of `yytext' lex.yy.c: In function `yylex': lex.yy.c:1645: `yytext' has an incomplete type lex.yy.c: In function `yy_get_next_buffer': lex.yy.c:2828: `yytext' has an incomplete type lex.yy.c: In function `yyunput': lex.yy.c:2937: `yytext' has an incomplete type lex.yy.c: In function `yy_load_buffer_state': lex.yy.c:3069: `yytext' has an incomplete type lex-asn1.l: At top level: lex-stuff.h:33: warning: array `yytext' assumed to have one element *** Error code 1 make: Fatal error: Command failed for target `lex-asn1.o' Current working directory /home2/satish/snacc-1.3/compiler/core *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /home2/satish/snacc-1.3/compiler *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /home2/satish/snacc-1.3 *** Error code 1 make: Fatal error: Command failed for target `all-recursive-am' ****************************************************************** ------------------------------------------------- Information contained and transmitted by this E-MAIL is proprietary to Wipro Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at mailadmin@wipro.co.in -------------------------------------------------- From owner-imc-snacc Wed Jul 25 03:18:43 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f6PAIhO08842 for imc-snacc-bks; Wed, 25 Jul 2001 03:18:43 -0700 (PDT) Received: from imcaks.wipro.co.in (imcwipro.wipro.co.in [202.177.129.166]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f6PAIbs08817 for ; Wed, 25 Jul 2001 03:18:39 -0700 (PDT) Received: from uranus.wipro.co.in (uranus [10.100.8.5]) by imcaks.wipro.co.in with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id PTKHX4F1; Wed, 25 Jul 2001 15:14:28 +0530 Received: by uranus with Internet Mail Service (5.5.2653.19) id ; Wed, 25 Jul 2001 15:13:30 +0530 Message-ID: <100238FFFC78D511902F009027F7056B10AEA8@uranus> From: "Satish Venkata Siva Sunkara (SSD-BLRSJP-ECOM)" To: "'imc-snacc@imc.org'" Subject: installation of snacc-1.3 Date: Wed, 25 Jul 2001 15:13:30 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi.. we are facing problems with the installation of snacc-1.3 in sunOS. Firstly we executed ./configure and it went through correctly. Then we gave "make" and it is giving an error as follows. I guess we are missing out something on lex/yacc...not sure. if any body has any idea, kindly get back. Regards Satish ************************************************************************** # make make all-recursive Making all in compiler Making all in core cd ../.. \ && CONFIG_FILES=compiler/core/Makefile CONFIG_HEADERS= /bin/sh ./config.status creating compiler/core/Makefile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DCOMPILER -DUSE_NIBBLE_MEMORY=0 -DUSE_EXP_BUF -I../../c-lib/inc -I.. /../c-lib/boot -I../../compiler/back-ends -g -O2 -c parse-asn1.c gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DCOMPILER -DUSE_NIBBLE_MEMORY=0 -DUSE_EXP_BUF -I../../c-lib/inc -I.. /../c-lib/boot -I../../compiler/back-ends -g -O2 -c lex-asn1.c In file included from lex-asn1.l:48: lex-stuff.h:33: conflicting types for `yytext' lex-asn1.c:1384: previous declaration of `yytext' lex.yy.c: In function `yylex': lex.yy.c:1645: `yytext' has an incomplete type lex.yy.c: In function `yy_get_next_buffer': lex.yy.c:2828: `yytext' has an incomplete type lex.yy.c: In function `yyunput': lex.yy.c:2937: `yytext' has an incomplete type lex.yy.c: In function `yy_load_buffer_state': lex.yy.c:3069: `yytext' has an incomplete type lex-asn1.l: At top level: lex-stuff.h:33: warning: array `yytext' assumed to have one element *** Error code 1 make: Fatal error: Command failed for target `lex-asn1.o' Current working directory /home2/satish/snacc-1.3/compiler/core *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /home2/satish/snacc-1.3/compiler *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /home2/satish/snacc-1.3 *** Error code 1 make: Fatal error: Command failed for target `all-recursive-am' ****************************************************************** ------------------------------------------------- Information contained and transmitted by this E-MAIL is proprietary to Wipro Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at mailadmin@wipro.co.in -------------------------------------------------- From owner-imc-snacc Wed Jul 25 03:45:26 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f6PAjQg10676 for imc-snacc-bks; Wed, 25 Jul 2001 03:45:26 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f6PAjPs10668 for ; Wed, 25 Jul 2001 03:45:25 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Wed, 25 Jul 2001 06:45:36 -0400 Message-ID: From: "Leonberger, Pierce" To: "'Satish Venkata Siva Sunkara (SSD-BLRSJP-ECOM)'" , "'imc-snacc@imc.org'" Subject: RE: installation of snacc-1.3 Date: Wed, 25 Jul 2001 06:45:26 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: I'd recommend installing Flex and Bison. Then do the following: * make distclean * execute configure script * make BTW: What operating system are you building on? -Pierce -----Original Message----- From: Satish Venkata Siva Sunkara (SSD-BLRSJP-ECOM) [mailto:satishsvs@wipro.co.in] Sent: Wednesday, July 25, 2001 5:44 AM To: 'imc-snacc@imc.org' Subject: installation of snacc-1.3 Hi.. we are facing problems with the installation of snacc-1.3 in sunOS. Firstly we executed ./configure and it went through correctly. Then we gave "make" and it is giving an error as follows. I guess we are missing out something on lex/yacc...not sure. if any body has any idea, kindly get back. Regards Satish ************************************************************************** # make make all-recursive Making all in compiler Making all in core cd ../.. \ && CONFIG_FILES=compiler/core/Makefile CONFIG_HEADERS= /bin/sh ./config.status creating compiler/core/Makefile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DCOMPILER -DUSE_NIBBLE_MEMORY=0 -DUSE_EXP_BUF -I../../c-lib/inc -I.. /../c-lib/boot -I../../compiler/back-ends -g -O2 -c parse-asn1.c gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DCOMPILER -DUSE_NIBBLE_MEMORY=0 -DUSE_EXP_BUF -I../../c-lib/inc -I.. /../c-lib/boot -I../../compiler/back-ends -g -O2 -c lex-asn1.c In file included from lex-asn1.l:48: lex-stuff.h:33: conflicting types for `yytext' lex-asn1.c:1384: previous declaration of `yytext' lex.yy.c: In function `yylex': lex.yy.c:1645: `yytext' has an incomplete type lex.yy.c: In function `yy_get_next_buffer': lex.yy.c:2828: `yytext' has an incomplete type lex.yy.c: In function `yyunput': lex.yy.c:2937: `yytext' has an incomplete type lex.yy.c: In function `yy_load_buffer_state': lex.yy.c:3069: `yytext' has an incomplete type lex-asn1.l: At top level: lex-stuff.h:33: warning: array `yytext' assumed to have one element *** Error code 1 make: Fatal error: Command failed for target `lex-asn1.o' Current working directory /home2/satish/snacc-1.3/compiler/core *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /home2/satish/snacc-1.3/compiler *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /home2/satish/snacc-1.3 *** Error code 1 make: Fatal error: Command failed for target `all-recursive-am' ****************************************************************** ------------------------------------------------- Information contained and transmitted by this E-MAIL is proprietary to Wipro Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at mailadmin@wipro.co.in -------------------------------------------------- From owner-imc-snacc Wed Jul 25 06:51:50 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f6PDpon14582 for imc-snacc-bks; Wed, 25 Jul 2001 06:51:50 -0700 (PDT) Received: from mail11.svr.pol.co.uk (mail11.svr.pol.co.uk [195.92.193.23]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f6PDpms14578 for ; Wed, 25 Jul 2001 06:51:48 -0700 (PDT) Received: from modem-800.blackbird.dialup.pol.co.uk ([62.137.127.32] helo=lasvegas) by mail11.svr.pol.co.uk with smtp (Exim 3.13 #0) id 15PP4m-0004Yw-00 for imc-snacc@imc.org; Wed, 25 Jul 2001 14:51:48 +0100 From: "Paul Gogarty" To: "Imc-Snacc" Subject: UTCTime and GeneralisedTime Date: Wed, 25 Jul 2001 14:52:32 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Can anyone provide me with some guidelines to using the UTCTime and GeneralisedTime classes provided as part of the Snacc C++ libraries. There appears to be an omission of this from the Snacc documentation I am wishing to construct both a version objects but I am at a loss as to how to specify the time to the constructors (I assume time_t but I am unsure) Any help would be much appreciated Thanks Paul Gogarty ASN.1 Developer De La Rue InterClear Ltd. De La Rue House Jays Close Viables Basingstoke England RG22 4BS Fax: +44 (0)1256 487755 Tel: +44 (0)7879 458416 mailto:paul.gogarty@interclear.co.uk http://www.interclear.co.uk/ From owner-imc-snacc Thu Jul 26 05:36:13 2001 Received: by above.proper.com (8.11.3/8.11.3) id f6QCaD612925 for imc-snacc-bks; Thu, 26 Jul 2001 05:36:13 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f6QCaBs12921 for ; Thu, 26 Jul 2001 05:36:11 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Thu, 26 Jul 2001 08:36:23 -0400 Message-ID: <0B95FB5619B3D411817E006008A592592C2E9C@wfhqex06.gfgsi.com> From: "Nicholas, Richard" To: "'imc-snacc@imc.org'" Subject: RE: UTCTime and GeneralisedTime Date: Thu, 26 Jul 2001 08:36:20 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Paul, > Can anyone provide me with some guidelines to using the UTCTime and > GeneralisedTime classes provided as part of the Snacc C++ > libraries. There > appears to be an omission of this from the Snacc documentation > > I am wishing to construct both a version objects but I am at > a loss as to > how to specify the time to the constructors (I assume time_t but I am > unsure) > > Any help would be much appreciated > > Thanks > Paul Gogarty > ASN.1 Developer UTCTime and GeneralizedTime are categorized in X.680 as "useful types," essentially Universal types derived from another Universal type. They are simply defined in ASN.1 as VisibleStrings with their own unique Universal tags. The contents of the time strings need to be formatted according to X.680 (ex: "9807240800Z" for UTC, or "199807240800Z" for GenTime). The SNACC library doesn't treat useful types as base types, instead the SNACC compiler compiles a special ASN.1 module, now named "asn-usefulVDA.asn1", to build the C/C++ code for those useful types. The SNACC compiled code doesn't provide any time-specific functionality for those classes. Therefore, the building of the time string is left to the calling application or library. Once the desired time string is built, one of the UTCTime or GeneralizedTime constructors can be called: Ex: GeneralizedTime someTime("199807240800Z"); UTCTime* sameTime = new UTCTime("9807240800Z"); - Rich --------------------------- Richard E. Nicholas Principal Secure Systems Engineer Getronics Government Solutions, LLC Richard.Nicholas@GetronicsGov.com (301) 939-2722 From owner-imc-snacc Fri Jul 27 11:02:24 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f6RI2Oc27698 for imc-snacc-bks; Fri, 27 Jul 2001 11:02:24 -0700 (PDT) Received: from moutvdom01.kundenserver.de (moutvdom01.kundenserver.de [195.20.224.200]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f6RI2Ms27692 for ; Fri, 27 Jul 2001 11:02:22 -0700 (PDT) Received: from [195.20.224.204] (helo=mrvdom00.schlund.de) by moutvdom01.kundenserver.de with esmtp (Exim 2.12 #2) id 15QBwC-00006W-00; Fri, 27 Jul 2001 20:02:12 +0200 Received: from [213.30.58.223] (helo=mars) by mrvdom00.schlund.de with smtp (Exim 2.12 #2) id 15QBw8-0005IM-00; Fri, 27 Jul 2001 20:02:10 +0200 From: "Dirk Brzezinski" To: Cc: "Satish Venkata Siva Sunkara (SSD-BLRSJP-ECOM)" Subject: Re: installation of snacc-1.3 Date: Fri, 27 Jul 2001 18:41:12 +0100 Message-ID: <01c116c3$53982c00$0a011022@mars> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express Unix 5.00.2013.1312 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2013.1312 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, I had the same (and other) problems, try something like this: env CFLAGS=-DYYTEXT_POINTER ./configure && make && make install you need the -DYYTEXT_POINTER to get rid of your problem, then depending on which compiler and bison you are using you might get more problems, mail me if you do. dob -----Original Message----- From: Satish Venkata Siva Sunkara (SSD-BLRSJP-ECOM) To: 'imc-snacc@imc.org' Date: Wednesday, July 25, 2001 11:23 AM Subject: installation of snacc-1.3 > >Hi.. > >we are facing problems with the installation of snacc-1.3 in sunOS. >Firstly we executed ./configure and it went through correctly. > >Then we gave "make" and it is giving an error as follows. > >I guess we are missing out something on lex/yacc...not sure. > >if any body has any idea, kindly get back. > >Regards >Satish > >************************************************************************** ># make >make all-recursive >Making all in compiler >Making all in core >cd ../.. \ > && CONFIG_FILES=compiler/core/Makefile CONFIG_HEADERS= /bin/sh >./config.status >creating compiler/core/Makefile >gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DCOMPILER -DUSE_NIBBLE_MEMORY=0 >-DUSE_EXP_BUF -I../../c-lib/inc -I.. >/../c-lib/boot -I../../compiler/back-ends -g -O2 -c parse-asn1.c >gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DCOMPILER -DUSE_NIBBLE_MEMORY=0 >-DUSE_EXP_BUF -I../../c-lib/inc -I.. >/../c-lib/boot -I../../compiler/back-ends -g -O2 -c lex-asn1.c >In file included from lex-asn1.l:48: >lex-stuff.h:33: conflicting types for `yytext' >lex-asn1.c:1384: previous declaration of `yytext' >lex.yy.c: In function `yylex': >lex.yy.c:1645: `yytext' has an incomplete type >lex.yy.c: In function `yy_get_next_buffer': >lex.yy.c:2828: `yytext' has an incomplete type >lex.yy.c: In function `yyunput': >lex.yy.c:2937: `yytext' has an incomplete type >lex.yy.c: In function `yy_load_buffer_state': >lex.yy.c:3069: `yytext' has an incomplete type >lex-asn1.l: At top level: >lex-stuff.h:33: warning: array `yytext' assumed to have one element >*** Error code 1 >make: Fatal error: Command failed for target `lex-asn1.o' >Current working directory /home2/satish/snacc-1.3/compiler/core >*** Error code 1 >make: Fatal error: Command failed for target `all-recursive' >Current working directory /home2/satish/snacc-1.3/compiler >*** Error code 1 >make: Fatal error: Command failed for target `all-recursive' >Current working directory /home2/satish/snacc-1.3 >*** Error code 1 >make: Fatal error: Command failed for target `all-recursive-am' > >****************************************************************** > >------------------------------------------------- > >Information contained and transmitted by this E-MAIL is proprietary to Wipro >Limited and is intended for use only by the individual or entity to which it >is addressed, and may contain information that is privileged, confidential >or exempt from disclosure under applicable law. If this is a forwarded >message, the content of this E-MAIL may not have been sent with the >authority of the Company. If you are not the intended recipient, an agent of >the intended recipient or a person responsible for delivering the >information to the named recipient, you are notified that any use, >distribution, transmission, printing, copying or dissemination of this >information in any way or in any manner is strictly prohibited. If you have >received this communication in error, please delete this mail & notify us >immediately at mailadmin@wipro.co.in >-------------------------------------------------- From owner-imc-snacc Fri Aug 3 08:18:55 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f73FItH19701 for imc-snacc-bks; Fri, 3 Aug 2001 08:18:55 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f73FIrs19697 for ; Fri, 3 Aug 2001 08:18:53 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Fri, 3 Aug 2001 11:19:05 -0400 Message-ID: From: "Leonberger, Pierce" To: "'ET Tan'" , imc-snacc@imc.org Subject: RE: Problem with Sample programs Date: Fri, 3 Aug 2001 11:19:02 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: The sample programs in c++-examples have an ignored for a long time now. I can't remember when was the last time we even compiled them. To avoid confusion we have removed all but the vdatest from c++-examples. We'll probably rename vdatest and beef it up for the next release. -Pierce -----Original Message----- From: ET Tan [mailto:ettan@mimos.my] Sent: Friday, July 20, 2001 7:20 AM To: imc-snacc@imc.org Subject: Problem with Sample programs This is another problem that I am having... I am trying out the sample program, Simple, in c++-examples\simple. When I run the program, the output on the screen is correct: ----- Wrote the following BER PersonnelRecord value to pr.ber. Test it with "def" and "indef". { -- SET -- { -- SEQUENCE -- givenName '4a6f686e'H -- "John" --, initial '45'H -- "E" --, familyName '536d697468'H -- "Smith" -- }, title '5468652042696720436865657365'H -- "The Big Cheese" --, 99999, dateOfHire '3139383230313034'H -- "19820104" --, nameOfSpouse { -- SEQUENCE -- givenName '4d617279'H -- "Mary" --, initial '4c'H -- "L" --, familyName '536d697468'H -- "Smith" -- }, children { -- SEQUENCE/SET OF -- { -- SET -- { -- SEQUENCE -- givenName '4a616d6573'H -- "James" --, initial '52'H -- "R" --, familyName '536d697468'H -- "Smith" -- }, dateOfBirth '3139353730333130'H -- "19570310" -- }, { -- SET -- { -- SEQUENCE -- givenName '4c697361'H -- "Lisa" --, initial '4d'H -- "M" --, familyName '536d697468'H -- "Smith" -- }, dateOfBirth '3139363130363231'H -- "19610621" -- } } } ----- However, when I check the file pr.der which is supposed to have the BER encoding of the above information written, I only have: 60 4d 61 10 16 04 4a 6f 68 6e 16 01 45 16 05 53 `Ma...John..E..S 6d 69 74 68 a0 10 16 0e 54 68 65 20 42 69 67 20 mith....The.Big. 43 68 65 65 73 65 5f 81 00 03 01 86 9f a1 0d 0a Cheese_......... 43 08 31 39 38 32 30 31 30 34 a2 12 61 10 16 04 C.19820104..a... 4d 61 72 79 16 01 4c 16 05 53 6d 69 74 68 a3 00 Mary..L..Smith.. The sequence of children is missing, what could be wrong? My project (using MSVC++ on Win2K) has the following settings: 1. I have included the line: #undef HAVE_VARIABLE_SIZED_AUTOMATIC_ARRAYS in C:\SNACC\c++-examples\simple\example.cpp Without it, the compiler would complain. 2. Defines: SNACCDLL_API="",SNACC_DEEP_COPY,USE_NIBBLE_MEMORY=0,VDADER_RULES 3. Uses snaccCppSTATIC.lib Please help, thanks. From owner-imc-snacc Fri Aug 3 08:26:48 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.3/8.11.3) id f73FQmN19859 for imc-snacc-bks; Fri, 3 Aug 2001 08:26:48 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f73FQls19855 for ; Fri, 3 Aug 2001 08:26:47 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Fri, 3 Aug 2001 11:26:59 -0400 Message-ID: From: "Leonberger, Pierce" To: "'ET Tan'" , imc-snacc@imc.org Subject: RE: DER encoding Date: Fri, 3 Aug 2001 11:26:53 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: You must use the snacc compiler with the '-D' switch. If you do that the code generated will encode in DER. If you don't it will encode in BER. That should be all you need to. To encode in C++ use the BEnc() member of the generated class: SampleSeq.BEnc(...) To encode in C use the generated encode function for the type you want to encode: BEncSampeSeq(...) -Pierce -----Original Message----- From: ET Tan [mailto:ettan@mimos.my] Sent: Friday, July 20, 2001 5:59 AM To: imc-snacc@imc.org Subject: DER encoding First of all, I am new to ASN.1 and just read the "Layman Guide". Now, I need SNACC to produce some DER encoding, how do I do this? The examples given are all on BER. Thanks. From owner-imc-snacc Fri Aug 3 08:28:28 2001 Received: by above.proper.com (8.11.3/8.11.3) id f73FSSW19892 for imc-snacc-bks; Fri, 3 Aug 2001 08:28:28 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.3/8.11.3) with ESMTP id f73FSQs19888 for ; Fri, 3 Aug 2001 08:28:26 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Fri, 3 Aug 2001 11:28:38 -0400 Message-ID: From: "Leonberger, Pierce" To: "'Marc NGUYEN'" , imc-snacc@imc.org Subject: RE: Pb with ANY and with Integer Date: Fri, 3 Aug 2001 11:28:28 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: I'm pretty sure the syntax you are using is illegal. You can not use a hex string to specify the value of an integer. I believe that only works for BIT STRING. -Pierce -----Original Message----- From: Marc NGUYEN [mailto:marc.nguyen@cgey.com] Sent: Wednesday, July 11, 2001 9:20 AM To: imc-snacc@imc.org Subject: Pb with ANY and with Integer Hi, I'm new to ASN.1 and BER and I had some questions : I'm using Snacc for C compiling. - When I don't have a PDU type how do I get the elmtLen0 to decode my BER encoding? - If I have the comment /* ANY - Fix me ! */ what do I have to modify on the code so that it may compile? DO you have any simple example so that I can understand? - When I have such ASN.1 declaration (written after) Snacc can't compile my .asn1 file here is an example and the errors that I get : Id-Canal1 ::= INTEGER { X1A (1), X2A (81H), ---> parse error at symbol "H" X3A (2) }; Id-Canal2 ::= INTEGER { TC1A (03H), ---> parse error at symbol "3" TC2A (0BH), TC3A (11H) }; thank you again nguyen Marc From owner-imc-snacc Sun Aug 26 23:11:08 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id f7R6B8t25230 for imc-snacc-bks; Sun, 26 Aug 2001 23:11:08 -0700 (PDT) Received: from dis.it ([212.63.103.60]) by above.proper.com (8.11.6/8.11.3) with ESMTP id f7R6B5D25216 for ; Sun, 26 Aug 2001 23:11:06 -0700 (PDT) Received: from RD04DEV03 [212.63.96.7] by dis.it [212.63.103.60] with SMTP (MDaemon.v3.0.4.R) for ; Mon, 27 Aug 2001 08:12:24 +0200 Message-ID: <003601c12ebe$fb8e8590$0164000a@retedis.com> From: "Fabiano Sandrin" To: Subject: Problem with Miscrosoft Visual C++ projects Date: Mon, 27 Aug 2001 08:10:33 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-MDaemon-Deliver-To: imc-snacc@imc.org X-Return-Path: fabiano.sandrin@retedis.com X-MDRcpt-To: imc-snacc@imc.org X-MDRemoteIP: 212.63.96.7 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: I'm having trouble opening Microsoft Visual C++ projects, when I try to open a project, msvc generete the error: "This makefile was not generated by Developer Studio" I've opened the project with a text editor and I've seen that the carriege return charaters are wrong (the content of the buildall.dsp is in the attachment). This happens for all project files. I've tried to change the carriege return characters but this not solve the problem, msvc generete the error: "this file has been modified and cannot be loaded as a Developer Studio project" Is there a solution? Thanks. From owner-imc-snacc Mon Aug 27 10:33:48 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id f7RHXmj22844 for imc-snacc-bks; Mon, 27 Aug 2001 10:33:48 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.6/8.11.3) with ESMTP id f7RHXlD22840 for ; Mon, 27 Aug 2001 10:33:47 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Mon, 27 Aug 2001 13:33:56 -0400 Message-ID: <0B95FB5619B3D411817E006008A59259B51A40@wfhqex06.gfgsi.com> From: "Pawling, John" To: imc-snacc@imc.org Subject: FW: Problem with Miscrosoft Visual C++ projects Date: Mon, 27 Aug 2001 13:33:55 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C12F1E.725C4AE0" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C12F1E.725C4AE0 Content-Type: text/plain; charset="iso-8859-1" -----Original Message----- From: Colestock, Robert Sent: Monday, August 27, 2001 1:29 PM To: 'fabiano.sandrin@retedis.com' Cc: Pawling, John Subject: RE: Problem with Miscrosoft Visual C++ projects Fabiano: Considering that none of our other customers (including our internal users) have experienced this problem, I would suggest that the program you used to extract the sources has added a different line terminator. We use the WIN-ZIP program to extract the data. It was created using the Linux gzip and tar packages. Bob Colestock VDA -----Original Message----- From: Fabiano Sandrin [mailto:fabiano.sandrin@retedis.com] Sent: Monday, August 27, 2001 2:11 AM To: imc-snacc@imc.org Subject: Problem with Miscrosoft Visual C++ projects I'm having trouble opening Microsoft Visual C++ projects, when I try to open a project, msvc generete the error: "This makefile was not generated by Developer Studio" I've opened the project with a text editor and I've seen that the carriege return charaters are wrong (the content of the buildall.dsp is in the attachment). This happens for all project files. I've tried to change the carriege return characters but this not solve the problem, msvc generete the error: "this file has been modified and cannot be loaded as a Developer Studio project" Is there a solution? Thanks. ------_=_NextPart_001_01C12F1E.725C4AE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable FW: Problem with Miscrosoft Visual C++ projects

-----Original Message-----
From: Colestock, Robert
Sent: Monday, August 27, 2001 1:29 PM
To: 'fabiano.sandrin@retedis.com'
Cc: Pawling, John
Subject: RE: Problem with Miscrosoft Visual C++ = projects


Fabiano:

Considering that none of our other customers = (including our internal users) have experienced this problem, I would = suggest that the program you used to extract the sources has added a = different line terminator.  We use the WIN-ZIP program to extract = the data.  It was created using the Linux gzip and tar = packages.

Bob Colestock
VDA


-----Original Message-----
From: Fabiano Sandrin [mailto:fabiano.sandrin@reted= is.com]
Sent: Monday, August 27, 2001 2:11 AM
To: imc-snacc@imc.org
Subject: Problem with Miscrosoft Visual C++ = projects



     I'm having trouble opening = Microsoft Visual C++ projects, when I try to
open a project, msvc generete the error:
"This makefile was not generated by Developer = Studio"

I've opened the project with a text editor and I've = seen that the carriege
return charaters are wrong (the content of the = buildall.dsp is in the
attachment).
This happens for all project files. I've tried to = change the carriege return
characters but this not solve the problem, msvc = generete the error:
"this file has been modified and cannot be = loaded as a Developer Studio
project"

Is there a solution?

Thanks.

------_=_NextPart_001_01C12F1E.725C4AE0-- From owner-imc-snacc Wed Aug 29 04:11:50 2001 Received: by above.proper.com (8.11.6/8.11.3) id f7TBBom21710 for imc-snacc-bks; Wed, 29 Aug 2001 04:11:50 -0700 (PDT) Received: from softamed.SoftaNet (newbridges.nl [213.84.17.138]) by above.proper.com (8.11.6/8.11.3) with ESMTP id f7TBBkD21704 for ; Wed, 29 Aug 2001 04:11:46 -0700 (PDT) Received: by SOFTAMED with Internet Mail Service (5.5.2650.21) id ; Wed, 29 Aug 2001 13:18:14 +0200 Message-ID: <51734B4BA43FD311960A00105A2DF7CE0B789F@SOFTAMED> From: Jaap de Wolff To: imc-snacc@imc.org Subject: RE: Problem with Miscrosoft Visual C++ projects Date: Wed, 29 Aug 2001 13:18:13 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: The different line terminator is no problem for VC. It is true that VC itself create files with , but it accepts also a single or . But the described failure is complaining about the makefile, while the current versions of VC are not using a makefile at all. Which version of MSVC are you using? > -----Original Message----- > From: Pawling, John [SMTP:John.Pawling@GetronicsGov.com] > Sent: Monday, August 27, 2001 7:34 PM > To: imc-snacc@imc.org > Subject: FW: Problem with Miscrosoft Visual C++ projects > > > > -----Original Message----- > From: Colestock, Robert > Sent: Monday, August 27, 2001 1:29 PM > To: 'fabiano.sandrin@retedis.com' > Cc: Pawling, John > Subject: RE: Problem with Miscrosoft Visual C++ projects > > > Fabiano: > > Considering that none of our other customers (including our internal > users) have experienced this problem, I would suggest that the program you > used to extract the sources has added a different line terminator. We use > the WIN-ZIP program to extract the data. It was created using the Linux > gzip and tar packages. > > Bob Colestock > VDA > > > -----Original Message----- > From: Fabiano Sandrin [ ] > Sent: Monday, August 27, 2001 2:11 AM > To: imc-snacc@imc.org > Subject: Problem with Miscrosoft Visual C++ projects > > > > I'm having trouble opening Microsoft Visual C++ projects, when I try > to > open a project, msvc generete the error: > "This makefile was not generated by Developer Studio" > > I've opened the project with a text editor and I've seen that the carriege > > return charaters are wrong (the content of the buildall.dsp is in the > attachment). > This happens for all project files. I've tried to change the carriege > return > characters but this not solve the problem, msvc generete the error: > "this file has been modified and cannot be loaded as a Developer Studio > project" > > Is there a solution? > > Thanks. > From owner-imc-snacc Wed Aug 29 04:45:07 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id f7TBj7w23435 for imc-snacc-bks; Wed, 29 Aug 2001 04:45:07 -0700 (PDT) Received: from dis.it ([212.63.103.60]) by above.proper.com (8.11.6/8.11.3) with ESMTP id f7TBj5D23431 for ; Wed, 29 Aug 2001 04:45:06 -0700 (PDT) Received: from RD04DEV03 [212.63.96.7] by dis.it [212.63.103.60] with SMTP (MDaemon.v3.0.4.R) for ; Wed, 29 Aug 2001 13:46:53 +0200 Message-ID: <001301c1307f$fb756840$0164000a@retedis.com> From: "Fabiano Sandrin" To: Subject: Date: Wed, 29 Aug 2001 13:44:37 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-MDaemon-Deliver-To: imc-snacc@imc.org X-Return-Path: fabiano.sandrin@retedis.com X-MDRcpt-To: imc-snacc@imc.org X-MDRemoteIP: 212.63.96.7 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Thanks, I've solved the problem using WIN-ZIP (before I used Winrar). From owner-imc-snacc Fri Sep 14 08:22:06 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id f8EFM6P05191 for imc-snacc-bks; Fri, 14 Sep 2001 08:22:06 -0700 (PDT) Received: from sottmxs02.entrust.com (gatekeeper.entrust.com [204.101.128.170]) by above.proper.com (8.11.6/8.11.3) with ESMTP id f8EFM4D05186 for ; Fri, 14 Sep 2001 08:22:04 -0700 (PDT) Received: by sottmxs02.entrust.com with Internet Mail Service (5.5.2650.21) id ; Fri, 14 Sep 2001 11:21:57 -0400 Message-ID: From: Guenther Kramer To: "'imc-snacc@imc.org'" Subject: RE: Type tables Date: Fri, 14 Sep 2001 11:21:56 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C13D30.FDAD6B90" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C13D30.FDAD6B90 Content-Type: text/plain; charset="iso-8859-1" Hi, Chopping support for 'type table' Generation would render the TCL api useless, in that it depends on the type table file generated by SNACC. Other possible uses for the type table is a much more compact 'data driven' encode/decode scheme which may be more suitable for resource constrained environments. - Guenther Kramer Entrust - Securing the Internet ------_=_NextPart_001_01C13D30.FDAD6B90 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: Type tables

Hi,

Chopping support for 'type table' = Generation would render the TCL api useless, in that it depends on the = type table file generated by SNACC.

Other possible uses for the type table = is a much more compact 'data driven' encode/decode scheme which may be = more suitable for resource constrained environments.

-
Guenther Kramer
Entrust - Securing the = Internet

------_=_NextPart_001_01C13D30.FDAD6B90-- From owner-imc-snacc Fri Sep 14 11:23:17 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id f8EINHI13264 for imc-snacc-bks; Fri, 14 Sep 2001 11:23:17 -0700 (PDT) Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by above.proper.com (8.11.6/8.11.3) with ESMTP id f8EINGD13260 for ; Fri, 14 Sep 2001 11:23:16 -0700 (PDT) Received: from drh-consultancy.demon.co.uk ([193.237.150.98] helo=celocom.com) by anchor-post-30.mail.demon.net with esmtp (Exim 2.12 #1) id 15hxcQ-000DOz-0U for imc-snacc@imc.org; Fri, 14 Sep 2001 19:23:15 +0100 Message-ID: <3BA240A5.66208FBD@celocom.com> Date: Fri, 14 Sep 2001 18:38:45 +0100 From: Dr S N Henson Organization: S N Henson X-Mailer: Mozilla 4.73 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "'imc-snacc@imc.org'" Subject: Re: Type tables References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: > Guenther Kramer wrote: > > Hi, > > Chopping support for 'type table' Generation would render the TCL api > useless, in that it depends on the type table file generated by SNACC. > > Other possible uses for the type table is a much more compact 'data > driven' encode/decode scheme which may be more suitable for resource > constrained environments. > Also the type table format might be useful as a machine readable form of an ASN1 module. Although the project hasn't really started yet I hope to write a converter to convert ASN1 type tables to OpenSSL ASN1 code. Steve. -- Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/ Personal Email: shenson@drh-consultancy.demon.co.uk Senior crypto engineer, Celo Communications: http://www.celocom.com/ Core developer of the OpenSSL project: http://www.openssl.org/ Business Email: drh@celocom.com PGP key: via homepage. From owner-imc-snacc Wed Sep 19 09:51:41 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id f8JGpfl02064 for imc-snacc-bks; Wed, 19 Sep 2001 09:51:41 -0700 (PDT) Received: from gto-mailer1.bbn.com (cam-mailer1.bbn.com [128.33.0.36]) by above.proper.com (8.11.6/8.11.3) with ESMTP id f8JGpeD02059 for ; Wed, 19 Sep 2001 09:51:40 -0700 (PDT) Received: from rospo1.bbn.com (rospo1.bbn.com [192.233.49.145]) by gto-mailer1.bbn.com (8.9.3+Sun/8.9.3) with ESMTP id MAA11340 for ; Wed, 19 Sep 2001 12:54:10 -0400 (EDT) Received: from Astein.bbn.com (ros-dhcp050-174.bbn.com [192.233.50.174]) by rospo1.bbn.com (8.9.1a/8.9.1) with ESMTP id MAA10997; Wed, 19 Sep 2001 12:38:59 -0400 (EDT) Message-Id: <5.1.0.14.2.20010919120429.0341dce8@rospo1.bbn.com> X-Sender: astein@rospo1.bbn.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 19 Sep 2001 12:50:09 -0400 To: imc-snacc@imc.org From: Tony Stein Subject: Solaris build errors Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Snacc version: 1.3 R6 (the enhanced version from Getronics) I'm building this in order to get the shared libs required by CML. After untarring, I run the following from the SNACC directory: >make distclean >./configure >make The distclean completes without error. The ./configure is more or less successful, however the output ends with: . . . creating ./config.status creating makehead sed: Ending delimiter missing on substitution: s%@MKDEP_CCINC@%-ISetting up common environment creating config.h Then, when I run make, the complete output is: cd && autoconf autoconf: configure.in: No such file or directory make: *** [/configure] Error 1 A quick grep through the makefile produces the following entry: $(srcdir)/configure: configure.in $(REASON) cd $(srcdir) && autoconf Obviously, make is trying to run "cd $(srcdir) && autoconf" with a missing $(srcdir) variable. It is not obvious to me where to set this so it is found properly. Any suggestions? I'm guessing here that srcdir is not a constant, but represents the directory through which make is currently recursing. On a lark, I hard-coded the entry to read "cd . && autoconf". The build proceeded a little further, but failed, ending with: . . . cd compiler && make make[1]: Entering directory `/home/astein/SNACC/compiler' ../maketail:60: dependencies: No such file or directory touch dependencies make depend make[2]: Entering directory `/home/astein/SNACC/compiler' rm -f core/tbl.h core/tbl.c if [ -f snacc ]; then\ make stamp-tbl;\ else\ rm -f tbl.h tbl.c;\ ln boot/tbl.h boot/tbl.c .;\ fi make[3]: Entering directory `/home/astein/SNACC/compiler' mv tbl.h tbl.h.prev mv: cannot access tbl.h make[3]: [stamp-tbl] Error 2 (ignored) mv tbl.c tbl.c.prev mv: cannot access tbl.c make[3]: [stamp-tbl] Error 2 (ignored) ./snacc -c -t -e -u ../asn1specs/asn-useful.asn1 ../asn1specs/tbl.asn1 date > stamp-tbl make[3]: Leaving directory `/home/astein/SNACC/compiler' ln tbl.h core ln tbl.c core rm -f core/tbl.h core/tbl.c if [ -f snacc ]; then\ make stamp-tbl;\ else\ rm -f tbl.h tbl.c;\ ln boot/tbl.h boot/tbl.c .;\ fi make[3]: Entering directory `/home/astein/SNACC/compiler' make[3]: `stamp-tbl' is up to date. make[3]: Leaving directory `/home/astein/SNACC/compiler' ln tbl.h core ln tbl.c core rm -f core/lex-asn1.c lex -t core/lex-asn1.l > core/lex-asn1.c~ "core/lex-asn1.l":line 9: Error: missing translation value 0/2000 nodes(%e), 0/12000 positions(%p), 1/1000 (%n), 0 transitions, 0/10000 packed char classes(%k), 0/14000 packed transitions(%a), 0/20000 output slots(%o) make[2]: *** [core/lex-asn1.c] Error 1 make[2]: Leaving directory `/home/astein/SNACC/compiler' make[1]: *** [dependencies] Error 2 make[1]: Leaving directory `/home/astein/SNACC/compiler' make: *** [compiler] Error 2 I am out of ideas. Thanks for your help, Tony -------------------- Tony Stein Software Engineer Information Security BBN Technologies astein@bbn.com -------------------- From owner-imc-snacc Wed Sep 19 12:36:02 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id f8JJa2R07899 for imc-snacc-bks; Wed, 19 Sep 2001 12:36:02 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.6/8.11.3) with ESMTP id f8JJa1D07895 for ; Wed, 19 Sep 2001 12:36:01 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Wed, 19 Sep 2001 15:36:08 -0400 Message-ID: <0B95FB5619B3D411817E006008A59259B51BBC@wfhqex06.gfgsi.com> From: "Pawling, John" To: imc-snacc@imc.org Subject: FW: Solaris build errors Date: Wed, 19 Sep 2001 15:36:07 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: -----Original Message----- From: Colestock, Robert Sent: Wednesday, September 19, 2001 3:34 PM To: 'astein@bbn.com' Cc: Nicholas, Richard; Pawling, John; McPherson, Clyde Subject: RE: Solaris build errors Tony: I just re-ran the SNACC release, "snacc13rn6.tar.gz", on our Solaris platform (fresh, no existing directory), it builds fine. . ./configure make "make distclean" appears to work fine, with a subsequent "make". I am running "bash", our system version is "SunOS beach 5.6 Generic sun4m sparc SUNW,SPARCstation-10". I do not understand why your distribution would fail. Bob Colestock VDA. -----Original Message----- From: Tony Stein [mailto:astein@bbn.com] Sent: Wednesday, September 19, 2001 12:50 PM To: imc-snacc@imc.org Subject: Solaris build errors Snacc version: 1.3 R6 (the enhanced version from Getronics) I'm building this in order to get the shared libs required by CML. After untarring, I run the following from the SNACC directory: >make distclean >./configure >make The distclean completes without error. The ./configure is more or less successful, however the output ends with: . . . creating ./config.status creating makehead sed: Ending delimiter missing on substitution: s%@MKDEP_CCINC@%-ISetting up common environment creating config.h Then, when I run make, the complete output is: cd && autoconf autoconf: configure.in: No such file or directory make: *** [/configure] Error 1 A quick grep through the makefile produces the following entry: $(srcdir)/configure: configure.in $(REASON) cd $(srcdir) && autoconf Obviously, make is trying to run "cd $(srcdir) && autoconf" with a missing $(srcdir) variable. It is not obvious to me where to set this so it is found properly. Any suggestions? I'm guessing here that srcdir is not a constant, but represents the directory through which make is currently recursing. On a lark, I hard-coded the entry to read "cd . && autoconf". The build proceeded a little further, but failed, ending with: . . . cd compiler && make make[1]: Entering directory `/home/astein/SNACC/compiler' ../maketail:60: dependencies: No such file or directory touch dependencies make depend make[2]: Entering directory `/home/astein/SNACC/compiler' rm -f core/tbl.h core/tbl.c if [ -f snacc ]; then\ make stamp-tbl;\ else\ rm -f tbl.h tbl.c;\ ln boot/tbl.h boot/tbl.c .;\ fi make[3]: Entering directory `/home/astein/SNACC/compiler' mv tbl.h tbl.h.prev mv: cannot access tbl.h make[3]: [stamp-tbl] Error 2 (ignored) mv tbl.c tbl.c.prev mv: cannot access tbl.c make[3]: [stamp-tbl] Error 2 (ignored) ./snacc -c -t -e -u ../asn1specs/asn-useful.asn1 ../asn1specs/tbl.asn1 date > stamp-tbl make[3]: Leaving directory `/home/astein/SNACC/compiler' ln tbl.h core ln tbl.c core rm -f core/tbl.h core/tbl.c if [ -f snacc ]; then\ make stamp-tbl;\ else\ rm -f tbl.h tbl.c;\ ln boot/tbl.h boot/tbl.c .;\ fi make[3]: Entering directory `/home/astein/SNACC/compiler' make[3]: `stamp-tbl' is up to date. make[3]: Leaving directory `/home/astein/SNACC/compiler' ln tbl.h core ln tbl.c core rm -f core/lex-asn1.c lex -t core/lex-asn1.l > core/lex-asn1.c~ "core/lex-asn1.l":line 9: Error: missing translation value 0/2000 nodes(%e), 0/12000 positions(%p), 1/1000 (%n), 0 transitions, 0/10000 packed char classes(%k), 0/14000 packed transitions(%a), 0/20000 output slots(%o) make[2]: *** [core/lex-asn1.c] Error 1 make[2]: Leaving directory `/home/astein/SNACC/compiler' make[1]: *** [dependencies] Error 2 make[1]: Leaving directory `/home/astein/SNACC/compiler' make: *** [compiler] Error 2 I am out of ideas. Thanks for your help, Tony -------------------- Tony Stein Software Engineer Information Security BBN Technologies astein@bbn.com -------------------- From owner-imc-snacc Thu Sep 20 07:28:02 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id f8KES2B12278 for imc-snacc-bks; Thu, 20 Sep 2001 07:28:02 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.6/8.11.3) with ESMTP id f8KES1D12274 for ; Thu, 20 Sep 2001 07:28:02 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Thu, 20 Sep 2001 10:28:07 -0400 Message-ID: <0B95FB5619B3D411817E006008A59259B51BC6@wfhqex06.gfgsi.com> From: "Pawling, John" To: imc-snacc@imc.org Subject: RE: Solaris build errors Date: Thu, 20 Sep 2001 10:28:06 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Tony, Did you try using the existing v1.3 R6 Enhanced SNACC C library for Solaris included in SMPDistSNACCSolaris13rn6.tar.gz that is available from ? =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== -----Original Message----- From: Colestock, Robert Sent: Wednesday, September 19, 2001 3:34 PM To: 'astein@bbn.com' Cc: Nicholas, Richard; Pawling, John; McPherson, Clyde Subject: RE: Solaris build errors Tony: I just re-ran the SNACC release, "snacc13rn6.tar.gz", on our Solaris platform (fresh, no existing directory), it builds fine. . ./configure make "make distclean" appears to work fine, with a subsequent "make". I am running "bash", our system version is "SunOS beach 5.6 Generic sun4m sparc SUNW,SPARCstation-10". I do not understand why your distribution would fail. Bob Colestock VDA. -----Original Message----- From: Tony Stein [mailto:astein@bbn.com] Sent: Wednesday, September 19, 2001 12:50 PM To: imc-snacc@imc.org Subject: Solaris build errors Snacc version: 1.3 R6 (the enhanced version from Getronics) I'm building this in order to get the shared libs required by CML. After untarring, I run the following from the SNACC directory: >make distclean >./configure >make The distclean completes without error. The ./configure is more or less successful, however the output ends with: . . . creating ./config.status creating makehead sed: Ending delimiter missing on substitution: s%@MKDEP_CCINC@%-ISetting up common environment creating config.h Then, when I run make, the complete output is: cd && autoconf autoconf: configure.in: No such file or directory make: *** [/configure] Error 1 A quick grep through the makefile produces the following entry: $(srcdir)/configure: configure.in $(REASON) cd $(srcdir) && autoconf Obviously, make is trying to run "cd $(srcdir) && autoconf" with a missing $(srcdir) variable. It is not obvious to me where to set this so it is found properly. Any suggestions? I'm guessing here that srcdir is not a constant, but represents the directory through which make is currently recursing. On a lark, I hard-coded the entry to read "cd . && autoconf". The build proceeded a little further, but failed, ending with: . . . cd compiler && make make[1]: Entering directory `/home/astein/SNACC/compiler' ../maketail:60: dependencies: No such file or directory touch dependencies make depend make[2]: Entering directory `/home/astein/SNACC/compiler' rm -f core/tbl.h core/tbl.c if [ -f snacc ]; then\ make stamp-tbl;\ else\ rm -f tbl.h tbl.c;\ ln boot/tbl.h boot/tbl.c .;\ fi make[3]: Entering directory `/home/astein/SNACC/compiler' mv tbl.h tbl.h.prev mv: cannot access tbl.h make[3]: [stamp-tbl] Error 2 (ignored) mv tbl.c tbl.c.prev mv: cannot access tbl.c make[3]: [stamp-tbl] Error 2 (ignored) ./snacc -c -t -e -u ../asn1specs/asn-useful.asn1 ../asn1specs/tbl.asn1 date > stamp-tbl make[3]: Leaving directory `/home/astein/SNACC/compiler' ln tbl.h core ln tbl.c core rm -f core/tbl.h core/tbl.c if [ -f snacc ]; then\ make stamp-tbl;\ else\ rm -f tbl.h tbl.c;\ ln boot/tbl.h boot/tbl.c .;\ fi make[3]: Entering directory `/home/astein/SNACC/compiler' make[3]: `stamp-tbl' is up to date. make[3]: Leaving directory `/home/astein/SNACC/compiler' ln tbl.h core ln tbl.c core rm -f core/lex-asn1.c lex -t core/lex-asn1.l > core/lex-asn1.c~ "core/lex-asn1.l":line 9: Error: missing translation value 0/2000 nodes(%e), 0/12000 positions(%p), 1/1000 (%n), 0 transitions, 0/10000 packed char classes(%k), 0/14000 packed transitions(%a), 0/20000 output slots(%o) make[2]: *** [core/lex-asn1.c] Error 1 make[2]: Leaving directory `/home/astein/SNACC/compiler' make[1]: *** [dependencies] Error 2 make[1]: Leaving directory `/home/astein/SNACC/compiler' make: *** [compiler] Error 2 I am out of ideas. Thanks for your help, Tony -------------------- Tony Stein Software Engineer Information Security BBN Technologies astein@bbn.com -------------------- From owner-imc-snacc Thu Oct 4 04:13:42 2001 Received: by above.proper.com (8.11.6/8.11.3) id f94BDgY08548 for imc-snacc-bks; Thu, 4 Oct 2001 04:13:42 -0700 (PDT) Received: from albatross-ext.wise.edt.ericsson.se (albatross-ext.wise.edt.ericsson.se [194.237.142.116]) by above.proper.com (8.11.6/8.11.3) with ESMTP id f94BDeD08543 for ; Thu, 4 Oct 2001 04:13:40 -0700 (PDT) Received: from portal.eei.ericsson.se (portal.eei.ericsson.se [159.107.152.13]) by albatross.wise.edt.ericsson.se (8.11.0/8.11.0/WIREfire-1.3) with ESMTP id f94BDdL27611 for ; Thu, 4 Oct 2001 13:13:39 +0200 (MEST) Received: from eei.ericsson.se (eeibhuc446.eei.ericsson.se [159.107.153.74]) by portal.eei.ericsson.se (8.9.3+Sun/8.9.1) with ESMTP id MAA25274 for ; Thu, 4 Oct 2001 12:13:27 +0100 (BST) Message-ID: <3BBC445D.24F1488E@eei.ericsson.se> Date: Thu, 04 Oct 2001 12:13:33 +0100 From: "David O'Farrell" Organization: Ericsson Systems Expertise Ltd. X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en-GB, en MIME-Version: 1.0 To: imc-snacc@imc.org Subject: building v1.3 R4 SNACC release on SunOS 5.7 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: -- has anyone built this using gcc version 3.0.1 ? I get an error (as follows) cd compiler && make make[1]: Entering directory `/project/ranos-test/BSSAUTOTEST/ASN_1/SNACC/compiler' ../maketail:60: dependencies: No such file or directory touch dependencies make depend make[2]: Entering directory `/project/ranos-test/BSSAUTOTEST/ASN_1/SNACC/compiler' make[2]: *** File `dependencies' has modification time in the future make[2]: Failed to remake makefile `dependencies'. and when I modify maketail to see what is going on dependencies: touch -f $@ date ls -lt $@ $(MAKE) depend I get cd compiler && make make[1]: Entering directory `/project/ranos-test/BSSAUTOTEST/ASN_1/SNACC/compiler' ../maketail:60: dependencies: No such file or directory touch -f dependencies date Thu Oct 4 11:52:56 BST 2001 ls -lt dependencies -rw-r--r-- 1 ranos-test bh 0 Oct 4 11:53 dependencies make depend make[2]: Entering directory `/project/ranos-test/BSSAUTOTEST/ASN_1/SNACC/compiler' make[2]: *** File `dependencies' has modification time in the future make[2]: Failed to remake makefile `dependencies'. which is confusing since the touched file has date/time AFTER the output from date ? David O'Farrell,Ericsson Systems Expertise Ltd (EEI), 2.44 Radio House, Belfield Office Park,Beech Hill,Clonskeagh, Dublin 4, ------------------------------------------------------------------------ phone 00-353-1-2072746,mobile 00-353-87 2424408 email:David.OFarrell@eei.ericsson.se ------------------------------------------------------------------------ "The older I get, the more I admire and crave competence, just simple competence, in any field from adultery to zoology." - H.L. Mencken From owner-imc-snacc Thu Oct 4 07:33:48 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id f94EXmG20569 for imc-snacc-bks; Thu, 4 Oct 2001 07:33:48 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.6/8.11.3) with ESMTP id f94EXlD20562 for ; Thu, 4 Oct 2001 07:33:47 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Thu, 4 Oct 2001 08:45:57 -0400 Message-ID: From: "Leonberger, Pierce" To: imc-snacc@imc.org Subject: RE: building v1.3 R4 SNACC release on SunOS 5.7 Date: Thu, 4 Oct 2001 08:45:49 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: We haven't tried 3.0.1 yet. We did compile it with 3.0 though. Did you execute ./configure before trying to build? If so what is the MKDEP macro set to in "makehead" ? -Pierce -----Original Message----- From: David O'Farrell [mailto:david.ofarrell@eei.ericsson.se] Sent: Thursday, October 04, 2001 7:14 AM To: imc-snacc@imc.org Subject: building v1.3 R4 SNACC release on SunOS 5.7 -- has anyone built this using gcc version 3.0.1 ? I get an error (as follows) cd compiler && make make[1]: Entering directory `/project/ranos-test/BSSAUTOTEST/ASN_1/SNACC/compiler' ../maketail:60: dependencies: No such file or directory touch dependencies make depend make[2]: Entering directory `/project/ranos-test/BSSAUTOTEST/ASN_1/SNACC/compiler' make[2]: *** File `dependencies' has modification time in the future make[2]: Failed to remake makefile `dependencies'. and when I modify maketail to see what is going on dependencies: touch -f $@ date ls -lt $@ $(MAKE) depend I get cd compiler && make make[1]: Entering directory `/project/ranos-test/BSSAUTOTEST/ASN_1/SNACC/compiler' ../maketail:60: dependencies: No such file or directory touch -f dependencies date Thu Oct 4 11:52:56 BST 2001 ls -lt dependencies -rw-r--r-- 1 ranos-test bh 0 Oct 4 11:53 dependencies make depend make[2]: Entering directory `/project/ranos-test/BSSAUTOTEST/ASN_1/SNACC/compiler' make[2]: *** File `dependencies' has modification time in the future make[2]: Failed to remake makefile `dependencies'. which is confusing since the touched file has date/time AFTER the output from date ? David O'Farrell,Ericsson Systems Expertise Ltd (EEI), 2.44 Radio House, Belfield Office Park,Beech Hill,Clonskeagh, Dublin 4, ------------------------------------------------------------------------ phone 00-353-1-2072746,mobile 00-353-87 2424408 email:David.OFarrell@eei.ericsson.se ------------------------------------------------------------------------ "The older I get, the more I admire and crave competence, just simple competence, in any field from adultery to zoology." - H.L. Mencken From owner-imc-snacc Thu Oct 4 07:33:25 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id f94EXPG20506 for imc-snacc-bks; Thu, 4 Oct 2001 07:33:25 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.6/8.11.3) with ESMTP id f94EXOD20500 for ; Thu, 4 Oct 2001 07:33:24 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Thu, 4 Oct 2001 10:19:20 -0400 Message-ID: <0B95FB5619B3D411817E006008A59259B51C7E@wfhqex06.gfgsi.com> From: "Pawling, John" To: "'David O'Farrell'" , imc-snacc@imc.org Subject: RE: building v1.3 R4 SNACC release on SunOS 5.7 Date: Thu, 4 Oct 2001 10:19:17 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C14CDF.8D8ADAF0" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C14CDF.8D8ADAF0 Content-Type: text/plain; charset="iso-8859-1" David, Thank you for your feedback. Another Getronics person will answer your question in detail. First, I wanted to be sure that you are using the most recent version of the Enhanced SNACC ASN.1 toolkit. We delivered the v1.3 R6 Enhanced SNACC ASN.1 toolkit in April 2001 (see attached message). Is that the version that you are using? By the way, I noticed that there is a typo on our web page from which the v1.3 R6 Enhanced SNACC ASN.1 software can be downloaded: . We will change "v1.3 R4" to "v1.3 R6" in the following sentence on that web page: "Note: MS Windows NT/95/98/2000 project files and Unix makefiles for v1.3 R4 Enhanced SNACC ASN.1 Compiler and Library." Thanks again, =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== -----Original Message----- From: David O'Farrell [mailto:david.ofarrell@eei.ericsson.se] Sent: Thursday, October 04, 2001 7:14 AM To: imc-snacc@imc.org Subject: building v1.3 R4 SNACC release on SunOS 5.7 -- has anyone built this using gcc version 3.0.1 ? I get an error (as follows) cd compiler && make make[1]: Entering directory `/project/ranos-test/BSSAUTOTEST/ASN_1/SNACC/compiler' ../maketail:60: dependencies: No such file or directory touch dependencies make depend make[2]: Entering directory `/project/ranos-test/BSSAUTOTEST/ASN_1/SNACC/compiler' make[2]: *** File `dependencies' has modification time in the future make[2]: Failed to remake makefile `dependencies'. and when I modify maketail to see what is going on dependencies: touch -f $@ date ls -lt $@ $(MAKE) depend I get cd compiler && make make[1]: Entering directory `/project/ranos-test/BSSAUTOTEST/ASN_1/SNACC/compiler' ../maketail:60: dependencies: No such file or directory touch -f dependencies date Thu Oct 4 11:52:56 BST 2001 ls -lt dependencies -rw-r--r-- 1 ranos-test bh 0 Oct 4 11:53 dependencies make depend make[2]: Entering directory `/project/ranos-test/BSSAUTOTEST/ASN_1/SNACC/compiler' make[2]: *** File `dependencies' has modification time in the future make[2]: Failed to remake makefile `dependencies'. which is confusing since the touched file has date/time AFTER the output from date ? David O'Farrell,Ericsson Systems Expertise Ltd (EEI), 2.44 Radio House, Belfield Office Park,Beech Hill,Clonskeagh, Dublin 4, ------------------------------------------------------------------------ phone 00-353-1-2072746,mobile 00-353-87 2424408 email:David.OFarrell@eei.ericsson.se ------------------------------------------------------------------------ "The older I get, the more I admire and crave competence, just simple competence, in any field from adultery to zoology." - H.L. Mencken ------_=_NextPart_000_01C14CDF.8D8ADAF0 Content-Type: message/rfc822 Content-Description: v1.3 R6 Enhanced SNACC ASN.1 Freeware Message-ID: <0B95FB5619B3D411817E006008A59259692A92@wfhqex06.gfgsi.com> From: "Pawling, John" To: "Pawling, John" Subject: v1.3 R6 Enhanced SNACC ASN.1 Freeware Date: Tue, 24 Apr 2001 16:50:30 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" All, Getronics Government Solutions has delivered the v1.3 R6 Enhanced SNACC Abstract Syntax Notation.1 (ASN.1) Compiler, C++ library and C library source code compilable for Linux, Sun Solaris 2.7 and Microsoft Windows NT/98/2000. The source code and the Enhanced SNACC Software Public License are freely available to everyone from: In past releases, Getronics enhanced the SNACC library to implement the Distinguished Encoding Rules (DER). In the v1.3 R6 SNACC release, Getronics included the following enhancements: 1) Fixes bugs in SNACC C Library regarding the handling of multi-byte characters. 2) Tested with v1.10 S/MIME Freeware Library (SFL) that uses SNACC to implement the IETF S/MIME v3 set of specifications. 3) Tested with freeware v1.9.1 Certificate Management Library (CML) that uses SNACC to implement the 2000 X.509 Recommendation and RFC 2459. 4) Tested with freeware v1.5 Access Control Library (ACL) that uses SNACC to provide automated access control. SNACC implements the majority of ASN.1 encoding/decoding rules. SNACC does not support all of the latest ASN.1 features, but there are work-arounds that allow SNACC to be used to produce ASN.1 hex encodings that are identical to those produced by ASN.1 libraries that do support the latest ASN.1 features. Also note that many of the PKIX specs, such as RFC 2459, include 1988-compliant ASN.1 syntax modules which can be compiled using SNACC. The SNACC ASN.1 library is totally unencumbered as stated in the Enhanced SNACC Software Public License. All source code for the Enhanced SNACC software is being provided at no cost and with no financial limitations regarding its use and distribution. Organizations can use the Enhanced SNACC software without paying any royalties or licensing fees. The Internet Mail Consortium (IMC) has established a SNACC web page . The IMC has also established a SNACC mail list which is used to: distribute information regarding SNACC releases; discuss SNACC-related issues; and provide a means for SNACC users to provide feedback, comments, bug reports, etc. Subscription information for the imc-snacc mail list is at the IMC web site listed above. We welcome all feedback regarding the Enhanced SNACC software. If bugs are reported, then we will investigate each reported bug and, if required, will produce a patch or an updated release of the software to repair the bug. This SNACC release announcement was sent to several mail lists, but please send all messages regarding the Enhanced SNACC software to the imc-snacc mail list ONLY. Please do not send messages regarding the Enhanced SNACC software to any of the IETF mail lists. We will respond to all messages sent to the imc-snacc mail list. =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== ------_=_NextPart_000_01C14CDF.8D8ADAF0-- From owner-imc-snacc Thu Oct 4 08:15:32 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id f94FFW625558 for imc-snacc-bks; Thu, 4 Oct 2001 08:15:32 -0700 (PDT) Received: from penguin-ext.wise.edt.ericsson.se (penguin-ext.wise.edt.ericsson.se [194.237.142.110]) by above.proper.com (8.11.6/8.11.3) with ESMTP id f94FFUD25552 for ; Thu, 4 Oct 2001 08:15:31 -0700 (PDT) Received: from portal.eei.ericsson.se (portal.eei.ericsson.se [159.107.152.13]) by penguin.wise.edt.ericsson.se (8.11.0/8.11.0/WIREfire-1.3) with ESMTP id f94FFUC23563; Thu, 4 Oct 2001 17:15:31 +0200 (MEST) Received: from eei.ericsson.se (eeibhuc446.eei.ericsson.se [159.107.153.74]) by portal.eei.ericsson.se (8.9.3+Sun/8.9.1) with ESMTP id QAA24250; Thu, 4 Oct 2001 16:15:18 +0100 (BST) Message-ID: <3BBC7D0B.31D0E15@eei.ericsson.se> Date: Thu, 04 Oct 2001 16:15:23 +0100 From: "David O'Farrell" Organization: Ericsson Systems Expertise Ltd. X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en-GB, en MIME-Version: 1.0 To: "Leonberger, Pierce" CC: imc-snacc@imc.org Subject: Re: building v1.3 R4 SNACC release on SunOS 5.7 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: hi pierce, I think it's a problem with make/solaris ,i found this in the meantime http://gcc.gnu.org/ml/gcc/2001-05/msg00487.html I will change touch to cat and see how this works. After configure the MKDEP is as follows: MKDEP = makedepend MKDEP_CCINC = -I/apps/gcc-3.0.1//lib/g++-include -I/usr/local/include -I/apps/gcc-3.0.1/lib/gcc-lib/sparc-sun-solaris2.7/3.0.1/include -- David O'Farrell,Ericsson Systems Expertise Ltd (EEI), 2.44 Radio House, Belfield Office Park,Beech Hill,Clonskeagh, Dublin 4, ------------------------------------------------------------------------ phone 00-353-1-2072746,mobile 00-353-87 2424408 email:David.OFarrell@eei.ericsson.se ------------------------------------------------------------------------ "The older I get, the more I admire and crave competence, just simple competence, in any field from adultery to zoology." - H.L. Mencken From owner-imc-snacc Thu Oct 4 08:27:56 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id f94FRuN26091 for imc-snacc-bks; Thu, 4 Oct 2001 08:27:56 -0700 (PDT) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.6/8.11.3) with ESMTP id f94FRtD26086 for ; Thu, 4 Oct 2001 08:27:55 -0700 (PDT) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Thu, 4 Oct 2001 11:28:00 -0400 Message-ID: From: "Leonberger, Pierce" To: "'David O'Farrell'" Cc: imc-snacc@imc.org Subject: RE: building v1.3 R4 SNACC release on SunOS 5.7 Date: Thu, 4 Oct 2001 11:27:57 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: I definitely recommend using GNU Make. -Pierce -----Original Message----- From: David O'Farrell [mailto:david.ofarrell@eei.ericsson.se] Sent: Thursday, October 04, 2001 11:15 AM To: Leonberger, Pierce Cc: imc-snacc@imc.org Subject: Re: building v1.3 R4 SNACC release on SunOS 5.7 hi pierce, I think it's a problem with make/solaris ,i found this in the meantime http://gcc.gnu.org/ml/gcc/2001-05/msg00487.html I will change touch to cat and see how this works. After configure the MKDEP is as follows: MKDEP = makedepend MKDEP_CCINC = -I/apps/gcc-3.0.1//lib/g++-include -I/usr/local/include -I/apps/gcc-3.0.1/lib/gcc-lib/sparc-sun-solaris2.7/3.0.1/include -- David O'Farrell,Ericsson Systems Expertise Ltd (EEI), 2.44 Radio House, Belfield Office Park,Beech Hill,Clonskeagh, Dublin 4, ------------------------------------------------------------------------ phone 00-353-1-2072746,mobile 00-353-87 2424408 email:David.OFarrell@eei.ericsson.se ------------------------------------------------------------------------ "The older I get, the more I admire and crave competence, just simple competence, in any field from adultery to zoology." - H.L. Mencken From owner-imc-snacc Fri Nov 2 11:22:58 2001 Received: by above.proper.com (8.11.6/8.11.3) id fA2JMwP09873 for imc-snacc-bks; Fri, 2 Nov 2001 11:22:58 -0800 (PST) Received: from gto-mailer1.bbn.com (cam-mailer1.bbn.com [128.33.0.36]) by above.proper.com (8.11.6/8.11.3) with ESMTP id fA2JMv809869; Fri, 2 Nov 2001 11:22:57 -0800 (PST) Received: from rospo1.bbn.com (rospo1.bbn.com [192.233.49.145]) by gto-mailer1.bbn.com (8.9.3+Sun/8.9.3) with ESMTP id OAA14713; Fri, 2 Nov 2001 14:22:55 -0500 (EST) Received: from Astein.bbn.com (ros-dhcp050-174.bbn.com [192.233.50.174]) by rospo1.bbn.com (8.9.1a/8.9.1) with ESMTP id OAA09917; Fri, 2 Nov 2001 14:09:52 -0500 (EST) Message-Id: <5.1.0.14.2.20011102125428.02e79f18@rospo1.bbn.com> X-Sender: astein@rospo1.bbn.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 02 Nov 2001 14:20:59 -0500 To: imc-snacc@imc.org, imc-cml@imc.org From: Tony Stein Subject: phantom dependency on LD_LIBRARY_PATH? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: I've been able to successfully build and run my applications, on Solaris, using the static and dynamic libs for CML and SNACC. At this point, I am trying to eliminate dependency on the LD_LIBRARY_PATH environment variable, by linking the apps with -L and -R flags that point to the libs' locations. Linking works fine, runtime is a problem. My understanding of the situation is that, at runtime, ld.so.1 (or its equivalent) must resolve all symbols before the application will start. Otherwise, the application will quit, with unresolved symbol errors. I encounter the following behavior: The application starts with no complaints from ld.so.1 (i.e. all symbols are resolved just fine). When I attempt to initialize the CML and create a session, it fails, returning an error code of 48 (CM_ASN_DEC_DLL_FAILED) which, I believe, points to a problem loading the SNACC libs. If I add the proper paths to the LD_LIBRARY_PATH, then CML initialization completes without error and my application proceeds on its way. The CML evidently attempts to manually load some libraries at init-time. Does this process involve the LD_LIBRARY_PATH inherently? Is there a workaround? Thanks, Tony Stein -------------------- Tony Stein Software Engineer Information Security BBN Technologies astein@bbn.com -------------------- From owner-imc-snacc Mon Nov 5 03:56:09 2001 Received: by above.proper.com (8.11.6/8.11.3) id fA5Bu9514570 for imc-snacc-bks; Mon, 5 Nov 2001 03:56:09 -0800 (PST) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [206.137.100.2]) by above.proper.com (8.11.6/8.11.3) with ESMTP id fA5Bu8814566; Mon, 5 Nov 2001 03:56:09 -0800 (PST) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Mon, 5 Nov 2001 06:56:01 -0500 Message-ID: <0B95FB5619B3D411817E006008A59259CE35C6@wfhqex06.gfgsi.com> From: "McPherson, Clyde" To: Tony Stein , imc-snacc@imc.org, imc-cml@imc.org Subject: RE: phantom dependency on LD_LIBRARY_PATH? Date: Mon, 5 Nov 2001 06:55:58 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Tony: Yes, the LD_LIBRARY_PATH is needed for the dynamic linking of the shared libraries during runtime. There are several workarounds for a UNIX system. 1. Copying the SNACC CML and CPDL shared libraries into /usr/lib. (Personal opinion:This is not very good, I never like putting non-system related libraries in /usr/lib.) /usr/lib is the default library path. 2. Copying the needed SNACC CML and CPDL shared libraries into /usr/local/lib. Once you copy the needed libraries into /usr/local/lib, you will have to modify your LD_LIBRARY_PATH to point to /usr/local/lib, if it doesn't point there already. 3. Modifying the SNACC CML and CPDL libraries to use static linked libraries. The CML is designed to use shared libraries, and you may run into linkage problems if you modify the CML in this way. As far as SNACC, the making of SNACC I believe already produces a static library, along with a shared library. I hope this answers your questions Tex > -----Original Message----- > From: Tony Stein [mailto:astein@bbn.com] > Sent: Friday, November 02, 2001 2:21 PM > To: imc-snacc@imc.org; imc-cml@imc.org > Subject: phantom dependency on LD_LIBRARY_PATH? > > > > > I've been able to successfully build and run my > applications, on > Solaris, using the static and dynamic libs for CML and SNACC. At this > point, I am trying to eliminate dependency on the LD_LIBRARY_PATH > environment variable, by linking the apps with -L and -R > flags that point > to the libs' locations. Linking works fine, runtime is a problem. > My understanding of the situation is that, at > runtime, ld.so.1 (or > its equivalent) must resolve all symbols before the > application will start. > Otherwise, the application will quit, with unresolved symbol > errors. I > encounter the following behavior: The application starts with > no complaints > from ld.so.1 (i.e. all symbols are resolved just fine). When > I attempt to > initialize the CML and create a session, it fails, returning > an error code > of 48 (CM_ASN_DEC_DLL_FAILED) which, I believe, points to a > problem loading > the SNACC libs. If I add the proper paths to the > LD_LIBRARY_PATH, then > CML initialization completes without error and my > application proceeds on > its way. > The CML evidently attempts to manually load some > libraries at > init-time. Does this process involve the LD_LIBRARY_PATH > inherently? Is > there a workaround? > > Thanks, > > Tony Stein > > > > -------------------- > Tony Stein > Software Engineer > Information Security > BBN Technologies > astein@bbn.com > -------------------- > From owner-imc-snacc Sun Nov 18 23:54:51 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id fAJ7spx18778 for imc-snacc-bks; Sun, 18 Nov 2001 23:54:51 -0800 (PST) Received: from hotmail.com (law2-f122.hotmail.com [216.32.181.122]) by above.proper.com (8.11.6/8.11.3) with ESMTP id fAJ7so818774 for ; Sun, 18 Nov 2001 23:54:50 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 18 Nov 2001 23:54:45 -0800 Received: from 212.143.17.39 by lw2fd.hotmail.msn.com with HTTP; Mon, 19 Nov 2001 07:54:45 GMT X-Originating-IP: [212.143.17.39] From: "Liron Dor" To: imc-snacc@imc.org Subject: Problem linking the c files Date: Mon, 19 Nov 2001 07:54:45 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 19 Nov 2001 07:54:45.0386 (UTC) FILETIME=[743E36A0:01C170CF] Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi I'm new at ASN.1 and at snacc. I'm using a Sun Solaris 8 machine with an ANSI - C compiler. I downloaded the enhanced snacc that supports DER encoding / decoding ( SMPDistSNACCSolaris13rn6.tar.gz ). After I installed the snacc compiler I compiled a .asn1 file and got two files : one .h and one .c file. ( I used the -E DER switch to compile ). The problem is that I can't compile the c files since there are no implementation of the basic functions for example "DEncAsnInt()". It seems like the DER encoding / decoding basic functions not the prototype nor the implementation. Am I doing somthing wrong ? And if so what is the right way to do that ? Any help will be highly appreciated Liron Dor Lirond@hotmail.com _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From owner-imc-snacc Tue Nov 20 14:46:39 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id fAKMkdD27521 for imc-snacc-bks; Tue, 20 Nov 2001 14:46:39 -0800 (PST) Received: from ns.siliconwireless.com (ns.siliconwireless.com [208.18.137.2]) by above.proper.com (8.11.6/8.11.3) with SMTP id fAKMka827512 for ; Tue, 20 Nov 2001 14:46:37 -0800 (PST) Received: from mtv-ex1.siliconwireless.com by ns.siliconwireless.com via smtpd (for mail.imc.org [208.184.76.43]) with SMTP; 20 Nov 2001 22:44:23 UT Received: by mtv-ex1.siliconwireless.com with Internet Mail Service (5.0.1460.8) id ; Tue, 20 Nov 2001 14:22:38 -0800 Message-ID: <80159F639EE4D111889D00609759237D013738B8@mtv-ex1.siliconwireless.com> From: Sudhagar Chinnaswamy To: imc-snacc@imc.org Subject: Is e-snacc thread safe ? Date: Tue, 20 Nov 2001 14:22:35 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1460.8) Content-Type: multipart/alternative; boundary="---- =_NextPart_001_01C17211.DB4AE840" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------ =_NextPart_001_01C17211.DB4AE840 Content-Type: text/plain Hi: Does the encode and decode routines generated by snacc is thread-safe ? Can I use those APIs on multi-threaded application ??? Thanks, Regards, Sudhagar ------ =_NextPart_001_01C17211.DB4AE840 Content-Type: text/html Is e-snacc thread safe ?

Hi:

Does the encode and decode routines generated by snacc
is thread-safe ? Can I use those APIs on multi-threaded
application ???

Thanks,
Regards,
Sudhagar

------ =_NextPart_001_01C17211.DB4AE840-- From owner-imc-snacc Tue Nov 20 21:12:33 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id fAL5CXK08942 for imc-snacc-bks; Tue, 20 Nov 2001 21:12:33 -0800 (PST) Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by above.proper.com (8.11.6/8.11.3) with ESMTP id fAL5CS808935 for ; Tue, 20 Nov 2001 21:12:29 -0800 (PST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id fAL2iv126793 for ; Wed, 21 Nov 2001 08:14:57 +0530 (IST) Received: from wipro.com ([192.168.178.139]) by ecmail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GN4X2E00.KEY; Wed, 21 Nov 2001 10:41:02 +0530 Message-ID: <3BFB37BD.7492B9B9@wipro.com> Date: Wed, 21 Nov 2001 10:42:29 +0530 From: "Shashi Kumar" Organization: Wipro Technologies X-Mailer: Mozilla 4.73 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: Sudhagar Chinnaswamy CC: imc-snacc@imc.org Subject: Re: Is e-snacc thread safe ? References: <80159F639EE4D111889D00609759237D013738B8@mtv-ex1.siliconwireless.com> Content-Type: multipart/mixed; boundary="------------InterScan_NT_MIME_Boundary" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: This is a multi-part message in MIME format. --------------InterScan_NT_MIME_Boundary Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sudhagar, no they are not, never use them in MT environment, if at all u are using them, u need to tweak into the memory management routines of snacc( risky)... shashi > Sudhagar Chinnaswamy wrote: > > Hi: > > Does the encode and decode routines generated by snacc > is thread-safe ? Can I use those APIs on multi-threaded > application ??? > > Thanks, > Regards, > Sudhagar --------------InterScan_NT_MIME_Boundary Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" ----------------------------------------------------------------------------------------------------------------------- Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at mailto:mailadmin@wipro.com and delete this mail from your records. ------------------------------------------------------------------------------------------------------------------------ --------------InterScan_NT_MIME_Boundary-- From owner-imc-snacc Wed Nov 21 06:38:42 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id fALEcgs29884 for imc-snacc-bks; Wed, 21 Nov 2001 06:38:42 -0800 (PST) Received: from wfhqex03.gfgsi.com ([67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id fALEcb829877 for ; Wed, 21 Nov 2001 06:38:37 -0800 (PST) Received: by wfhqex03.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Wed, 21 Nov 2001 09:39:41 -0500 Message-ID: <0B95FB5619B3D411817E006008A59259B51F7F@wfhqex06.gfgsi.com> From: "Pawling, John" To: "'Shashi Kumar'" , Sudhagar Chinnaswamy Cc: imc-snacc@imc.org Subject: RE: Is e-snacc thread safe ? Date: Wed, 21 Nov 2001 09:39:39 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1729A.5995E3D0" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C1729A.5995E3D0 Content-Type: text/plain; charset="iso-8859-1" Shashi, We have recently completed a new version (v1.3 R7) of the Enhanced SNACC C++ Library that is enhanced to maximize thread safety. The new software has not yet been posted to our web site, but should be within a few days. Once it has been posted, then I will inform all known customers including this mail list. =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== -----Original Message----- From: Shashi Kumar [mailto:shashi.kumar@wipro.com] Sent: Wednesday, November 21, 2001 12:12 AM To: Sudhagar Chinnaswamy Cc: imc-snacc@imc.org Subject: Re: Is e-snacc thread safe ? Sudhagar, no they are not, never use them in MT environment, if at all u are using them, u need to tweak into the memory management routines of snacc( risky)... shashi > Sudhagar Chinnaswamy wrote: > > Hi: > > Does the encode and decode routines generated by snacc > is thread-safe ? Can I use those APIs on multi-threaded > application ??? > > Thanks, > Regards, > Sudhagar ------_=_NextPart_001_01C1729A.5995E3D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: Is e-snacc thread safe ?

Shashi,

We have recently completed a new version (v1.3 R7) of = the Enhanced SNACC C++ Library that is enhanced to maximize thread = safety.  The new software has not yet been posted to our web site, = but should be within a few days.  Once it has been posted, then I = will inform all known customers including this mail list.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
John Pawling, John.Pawling@GetronicsGov.com
Getronics Government Solutions, LLC
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

-----Original Message-----
From: Shashi Kumar [mailto:shashi.kumar@wipro.com= ]
Sent: Wednesday, November 21, 2001 12:12 AM
To: Sudhagar Chinnaswamy
Cc: imc-snacc@imc.org
Subject: Re: Is e-snacc thread safe ?


Sudhagar,

no they are not, never use them in MT environment, if = at all u are using
them, u need to tweak into the memory management = routines of snacc(
risky)...

shashi

> Sudhagar Chinnaswamy wrote:
>
> Hi:
>
> Does the encode and decode routines generated = by snacc
> is thread-safe ? Can I use those APIs on = multi-threaded
> application ???
>
> Thanks,
> Regards,
> Sudhagar

------_=_NextPart_001_01C1729A.5995E3D0-- From owner-imc-snacc Wed Nov 21 06:45:50 2001 Received: by above.proper.com (8.11.6/8.11.3) id fALEjoQ00335 for imc-snacc-bks; Wed, 21 Nov 2001 06:45:50 -0800 (PST) Received: from wfhqex05.gfgsi.com ([67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id fALEjm800331 for ; Wed, 21 Nov 2001 06:45:48 -0800 (PST) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Wed, 21 Nov 2001 09:46:58 -0500 Message-ID: From: "Leonberger, Pierce" To: "'Sudhagar Chinnaswamy'" , imc-snacc@imc.org Subject: RE: Is e-snacc thread safe ? Date: Wed, 21 Nov 2001 09:46:56 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1729B.5DBBA340" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C1729B.5DBBA340 Content-Type: text/plain; charset="iso-8859-1" Starting with release 1.3 R7 we started testing making enhancements to make all of our libraries thread safe. This is true of the SNACC C++ runtime library and generated code as well. If you experience problems with SNACC in a multithreaded environment please let us know. -Pierce -----Original Message----- From: Sudhagar Chinnaswamy [mailto:sudhagar.chinnaswamy@mobilitynetworks.com] Sent: Tuesday, November 20, 2001 5:23 PM To: imc-snacc@imc.org Subject: Is e-snacc thread safe ? Hi: Does the encode and decode routines generated by snacc is thread-safe ? Can I use those APIs on multi-threaded application ??? Thanks, Regards, Sudhagar ------_=_NextPart_001_01C1729B.5DBBA340 Content-Type: text/html; charset="iso-8859-1" Is e-snacc thread safe ?
Starting with release 1.3 R7 we started testing making enhancements to make all of our libraries thread safe.  This is true of the SNACC C++ runtime library and generated code as well.  If you experience problems with SNACC in a multithreaded environment please let us know.
 
-Pierce
-----Original Message-----
From: Sudhagar Chinnaswamy [mailto:sudhagar.chinnaswamy@mobilitynetworks.com]
Sent: Tuesday, November 20, 2001 5:23 PM
To: imc-snacc@imc.org
Subject: Is e-snacc thread safe ?

Hi:

Does the encode and decode routines generated by snacc
is thread-safe ? Can I use those APIs on multi-threaded
application ???

Thanks,
Regards,
Sudhagar

------_=_NextPart_001_01C1729B.5DBBA340-- From owner-imc-snacc Fri Nov 30 13:27:14 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id fAULREE23511 for imc-snacc-bks; Fri, 30 Nov 2001 13:27:14 -0800 (PST) Received: from wfhqex03.gfgsi.com ([67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id fAULDk823202; Fri, 30 Nov 2001 13:13:46 -0800 (PST) Received: by wfhqex03.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Fri, 30 Nov 2001 15:19:22 -0500 Message-ID: <0B95FB5619B3D411817E006008A59259B52087@wfhqex06.gfgsi.com> From: "Pawling, John" To: "Pawling, John" Subject: v1.3 R7 Enhanced SNACC Software Now Available Date: Fri, 30 Nov 2001 15:19:18 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C179DC.49FC1DB0" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C179DC.49FC1DB0 Content-Type: text/plain; charset="iso-8859-1" All, Getronics Government Solutions has delivered the v1.3 R7 Enhanced SNACC Abstract Syntax Notation.1 (ASN.1) Compiler, C++ library and C library source code compilable for Linux, Sun Solaris 2.7 and Microsoft (MS) Windows NT/98/2000. The Enhanced SNACC software is freely available to everyone from: The Enhanced SNACC ASN.1 software can be used to ASN.1 encode and decode objects. In past releases, Getronics enhanced the SNACC library to implement the Distinguished Encoding Rules (DER), support large ASN.1 INTEGERs, and improve memory usage. v1.3 R7 Enhanced SNACC C++ ASN.1 Library enhancements: 1) Enhanced AsnOcts class to leave large (>100 MB) OCTET STRING content as files. 2) Replaced longjmps with C++ exceptions. 3) Enhanced AsnOid class with features from CSM_OID class. 4) Incorporated recent modifications to C string classes in C++ string classes (i.e., BMPString, IA5String, etc.) 5) Enhanced AsnInt class to handle huge integers. 6) Incorporated all ASN.1 library types into a single header file. 7) Placed all ASN.1 types inside ASN namespace. 8) Added const qualifier to all C++ library member functions that don't change member variables. 9) Added mutable qualifier to the AsnList::curr member variable and add const and non-const versions of the AsnList member functions. 10) Enhanced SNACC C++ library to maximize thread-safety. 11) Implemented 1997 X.690 DER requirement for SET OF components such that the tag and length of each component is ignored for purposes of comparison. 12) Tested with v2.0 S/MIME Freeware Library (SFL) that use the Enhanced SNACC ASN.1 software to encode and decode the IETF S/MIME v3 Cryptographic Message Syntax (RFC 2630) and Enhanced Security Services for S/MIME (RFC 2634) security protocol. 13) Tested with freeware v2.0 Certificate Management Library (CML) that uses the Enhanced SNACC ASN.1 software to encode and decode X.509 certificates, attribute certificates and Certificate Revocation Lists as specified in the 2000 X.509 Recommendation. 14) Tested with freeware v2.0 Access Control Library (ACL) that uses the Enhanced SNACC ASN.1 software to encode and decode security labels and other objects (such as Security Policy Information Files) required to provide rule based automated access control as specified in SDN.801. v1.3 R7 Enhanced SNACC Compiler enhancements: 1) Added support for ASN.1 string classes as built-in types. 2) Replaced longjmps with C++ exceptions in generated code. 3) Incorporated C ANY handling mechanisms. This includes supporting the ANY handler parsing and registration mechanism used by the compiler. 4) Changed generated code to be inside ASN namespace. API Changes: The v1.3 R7 Enhanced SNACC C++ ASN.1 Library provides the identical API as provided by the v1.3 R6 Enhanced SNACC C++ ASN.1 Library except for the following changes: 1) Enhanced SNACC symbols are contained in a SNACC namespace (see below). 2) The CSM_OID class has been replaced with the SNACC::AsnOid class. The AsnOid class now has string handling capabilities (both input and output). The original CSM_OID::GetOidDescription() method was removed; the AsnOid::GetChar() method returns the numeric OID as a string (e.g. "1.2.3.1.1.1"). This will impact applications if they compare the descriptive OIDs provided by the Enhanced SNACC Library. This will not impact the comparison of numeric strings. For example, applications will no longer be able to use "id_dsa", they must now compare the numeric string representation of the id-dsa OID. 3) The CSMIME class was split into two classes: CSM_CtilMgr (with CSM_CtilInst, no certificate details) and CSMIME (with CSM_CSInst, containing certificate details). This only impacts the application code that walks through the linked list of logins in the CSMIME class. The member variable name was changed from "m_pCSInsts" to "m_pCSInsts2". This was done to force the developer to view the logic to see if the simpler, non-certificate based login instance variable can be used. In most cases, the integrator will be able to simply add the "2" to the name and re-build. Namespace: The v2.0 libraries use the "namespace" feature. The symbols for each library are contained in its own namespace: SFL, CERT, CTIL, SNACC, acl, CML. The namespace feature allows the compiler to isolate the symbols for each library. This enhancement causes a minor impact to the source code developed to use the libraries. The integrator will need to add a few lines of code to each source code file (or, possibly, in an include file) stating that the appropriate namespaces are being used such as: "using namespace SNACC;". The Enhanced SNACC ASN.1 software implements the majority of the ASN.1 encoding/decoding rules specified in the 1988 X.209 Recommendation. It implements the DER as specified in the 1994 X.690 Recommendation. It does not support all of the latest ASN.1 features, but there are work-arounds that allow it to be used to produce ASN.1 hex encodings that are identical to those produced by ASN.1 libraries that support the latest ASN.1 features. Also, many of the IETF specifications, such as PKIX and S/MIME, include 1988-compliant ASN.1 syntax modules that can be compiled using the Enhanced SNACC ASN.1 compiler. The Enhanced SNACC ASN.1 library is totally unencumbered as stated in the Enhanced SNACC Software Public License. All source code for the Enhanced SNACC software is being provided at no cost and with no financial limitations regarding its use and distribution. Organizations can use the Enhanced SNACC software without paying any royalties or licensing fees. The Internet Mail Consortium (IMC) has established an Enhanced SNACC web page . The IMC has established an Enhanced SNACC mail list which is used to: distribute information regarding releases; discuss technical issues; and provide a means for users to provide feedback, comments, bug reports, etc. Subscription information for the imc-snacc mail list is at the IMC web site listed above. We welcome all feedback regarding the Enhanced SNACC software. If bugs are reported, then we will investigate each reported bug and, if required, will produce a patch or an updated release of the software to repair the bug. This release announcement was sent to several mail lists, but please send all messages regarding the Enhanced SNACC software to the imc-snacc mail list ONLY. Please do not send messages regarding the Enhanced SNACC software to any of the IETF mail lists. We will respond to all messages sent to the imc-snacc mail list. =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== ------_=_NextPart_001_01C179DC.49FC1DB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable v1.3 R7 Enhanced SNACC Software Now Available

All,

Getronics Government Solutions has delivered the v1.3 = R7 Enhanced SNACC
Abstract Syntax Notation.1 (ASN.1) Compiler, C++ = library and C library
source code compilable for Linux, Sun Solaris 2.7 = and Microsoft (MS)
Windows NT/98/2000.  The Enhanced SNACC = software is freely available to
everyone from: <http://www.getronicsgov.com/hot/snacc_home.htm>=

The Enhanced SNACC ASN.1 software can be used to = ASN.1 encode and decode
objects.  In past releases, Getronics enhanced = the SNACC library to
implement the Distinguished Encoding Rules (DER), = support large ASN.1
INTEGERs, and improve memory = usage.   

v1.3 R7 Enhanced SNACC C++ ASN.1 Library = enhancements:

 1) Enhanced AsnOcts class to leave large = (>100 MB) OCTET STRING content
as files.

 2) Replaced longjmps with C++ exceptions. =

 3) Enhanced AsnOid class with features from = CSM_OID class.

 4) Incorporated recent modifications to C = string classes in C++ string
classes (i.e., BMPString, IA5String, etc.)

 5) Enhanced AsnInt class to handle huge = integers.

 6) Incorporated all ASN.1 library types into a = single header file.

 7) Placed all ASN.1 types inside ASN namespace. =

 8) Added const qualifier to all C++ library = member functions that
don't change member variables.

 9) Added mutable qualifier to the AsnList::curr = member variable and
add const and non-const versions of the AsnList = member functions.

10) Enhanced SNACC C++ library to maximize = thread-safety. 

11) Implemented 1997 X.690 DER requirement for SET OF = components such
that the tag and length of each component is ignored = for purposes
of comparison.

12) Tested with v2.0 S/MIME Freeware Library (SFL) =
<http://www.getronicsgov.com/hot/sfl_home.htm> = that use the Enhanced
SNACC ASN.1 software to encode and decode the IETF = S/MIME v3
Cryptographic Message Syntax (RFC 2630) and Enhanced = Security
Services for S/MIME (RFC 2634) security = protocol. 

13) Tested with freeware v2.0 Certificate Management = Library (CML) <http://www.getronicsgov.com/hot/cml_home.htm> = that uses the Enhanced

SNACC ASN.1 software to encode and decode X.509 = certificates,
attribute certificates and Certificate Revocation = Lists as specified
in the 2000 X.509 Recommendation.

14) Tested with freeware v2.0 Access Control Library = (ACL) <http://www.getronicsgov.com/hot/acl_home.htm> = that uses the Enhanced

SNACC ASN.1 software to encode and decode security = labels and other
objects (such as Security Policy Information Files) = required to
provide rule based automated access control as = specified in SDN.801.


v1.3 R7 Enhanced SNACC Compiler enhancements:

1) Added support for ASN.1 string classes as built-in = types.

2) Replaced longjmps with C++ exceptions in generated = code.

3) Incorporated C ANY handling mechanisms.  This = includes supporting
the ANY handler parsing and registration mechanism = used by the
compiler.

4) Changed generated code to be inside ASN namespace. =


API Changes: The v1.3 R7 Enhanced SNACC C++ ASN.1 = Library provides the
identical API as provided by the v1.3 R6 Enhanced = SNACC C++ ASN.1 Library
except for the following changes:

1) Enhanced SNACC symbols are contained in a SNACC = namespace (see below).
 
2) The CSM_OID class has been replaced with the = SNACC::AsnOid class.
The AsnOid class now has string handling = capabilities (both input and
output). The original CSM_OID::GetOidDescription() = method was removed;
the AsnOid::GetChar() method returns the numeric OID = as a string
(e.g. "1.2.3.1.1.1"). This will impact = applications if they
compare the descriptive OIDs provided by the = Enhanced SNACC Library.
This will not impact the comparison of numeric = strings. For example,
applications will no longer be able to use = "id_dsa", they must now
compare the numeric string representation of the = id-dsa OID.

3) The CSMIME class was split into two classes: = CSM_CtilMgr (with
CSM_CtilInst, no certificate details) and CSMIME = (with CSM_CSInst,
containing certificate details). This only impacts = the
application code that walks through the linked list = of logins in
the CSMIME class. The member variable name was = changed from
"m_pCSInsts" to "m_pCSInsts2". = This was done to force the
developer to view the logic to see if the simpler, = non-certificate
based login instance variable can be used. In most = cases, the
integrator will be able to simply add the = "2" to the name and
re-build.

Namespace: The v2.0 libraries use the = "namespace" feature.
The symbols for each library are contained in its = own namespace:
SFL, CERT, CTIL, SNACC, acl, CML.  The = namespace feature allows
the compiler to isolate the symbols for each = library. This
enhancement causes a minor impact to the source code = developed
to use the libraries.  The integrator will need = to add a few
lines of code to each source code file (or, = possibly, in an
include file) stating that the appropriate = namespaces are being
used such as: "using namespace = SNACC;".

The Enhanced SNACC ASN.1 software implements the = majority of the ASN.1
encoding/decoding rules specified in the 1988 X.209 = Recommendation.  It
implements the DER as specified in the 1994 X.690 = Recommendation.  It does
not support all of the latest ASN.1 features, but = there are work-arounds
that allow it to be used to produce ASN.1 hex = encodings that are identical
to those produced by ASN.1 libraries that support = the latest ASN.1
features.  Also, many of the IETF = specifications, such as PKIX and S/MIME,
include 1988-compliant ASN.1 syntax modules that can = be compiled using the
Enhanced SNACC ASN.1 compiler.

The Enhanced SNACC ASN.1 library is totally = unencumbered as stated in the
Enhanced SNACC Software Public License.  All = source code for the Enhanced
SNACC software is being provided at no cost and with = no financial
limitations regarding its use and = distribution.  Organizations can use the
Enhanced SNACC software without paying any royalties = or licensing fees. 

The Internet Mail Consortium (IMC) has established an = Enhanced SNACC web
page <http://www.imc.org/imc-snacc/>.  The IMC = has established an Enhanced
SNACC mail list which is used to: distribute = information regarding
releases; discuss technical issues; and provide a = means for users to
provide feedback, comments, bug reports, etc.  = Subscription information
for the imc-snacc mail list is at the IMC web site = listed above.

We welcome all feedback regarding the Enhanced SNACC = software.  If bugs
are reported, then we will investigate each reported = bug and, if required,
will produce a patch or an updated release of the = software to repair the
bug.

This release announcement was sent to several mail = lists, but please send
all messages regarding the Enhanced SNACC software = to the imc-snacc mail
list ONLY.  Please do not send messages = regarding the Enhanced SNACC
software to any of the IETF mail lists.  We = will respond to all messages
sent to the imc-snacc mail list.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
John Pawling, John.Pawling@GetronicsGov.com
Getronics Government Solutions, LLC
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

------_=_NextPart_001_01C179DC.49FC1DB0-- From owner-imc-snacc Mon Dec 3 13:13:27 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id fB3LDRW17153 for imc-snacc-bks; Mon, 3 Dec 2001 13:13:27 -0800 (PST) Received: from mail.motus.qc.ca (mail.motus.qc.ca [207.236.155.221]) by above.proper.com (8.11.6/8.11.3) with ESMTP id fB3LDQ217149 for ; Mon, 3 Dec 2001 13:13:26 -0800 (PST) Subject: Construct a new structure To: imc-snacc@imc.org X-Mailer: Lotus Notes Release 5.0.6a January 17, 2001 Message-ID: From: eboudreault@motus.com Date: Mon, 3 Dec 2001 16:14:21 -0500 X-MIMETrack: Serialize by Router on motus1/Motus Technologies Inc.(Release 5.0.6a |January 17, 2001) at 2001-12-03 16:14:27 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id fB3LDQ217150 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, I want to know how to construct a new structure ASN.1 with snacc compiler ??? I already have my *.asn1 files, but i don't know wich project i have to use to produce .cpp files. Can you help me with that ??? Thank's ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur/Analyste ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Tue Dec 4 06:18:32 2001 Received: by above.proper.com (8.11.6/8.11.3) id fB4EIWS02924 for imc-snacc-bks; Tue, 4 Dec 2001 06:18:32 -0800 (PST) Received: from mail.motus.qc.ca (mail.motus.qc.ca [207.236.155.221]) by above.proper.com (8.11.6/8.11.3) with ESMTP id fB4EIU202919 for ; Tue, 4 Dec 2001 06:18:30 -0800 (PST) Subject: Build problem To: imc-snacc@imc.org X-Mailer: Lotus Notes Release 5.0.6a January 17, 2001 Message-ID: From: eboudreault@motus.com Date: Tue, 4 Dec 2001 09:19:22 -0500 X-MIMETrack: Serialize by Router on motus1/Motus Technologies Inc.(Release 5.0.6a |January 17, 2001) at 2001-12-04 09:19:29 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id fB4EIV202921 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, I try to build a cpp file generated by snacc, but i have that error : e:\work\testsnacc\MyFile.h(50) : error C2146: syntax error : missing ';' before identifier 'Version' e:\work\testsnacc\MyFile.h(50) : fatal error C1004: unexpected end of file found This is my settings to build the asn1 file : echo $(ProjDir) echo on dir $(InputPath) copy $(InputPath) $(ProjDir) cd $(ProjDir) ..\Snacc\compiler\compiler\Debug\snaccd.exe -D -C -VDAexport=SnaccTest -u.. \Snacc\asn1specs\asn-usefulVDA.asn1 MyFile.asn1 That's the content of the cpp file : .... //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ // class definitions: /* INTEGER */ typedef AsnInt Version; .... What i have to do to build my cpp file correctly ??? Thanks. ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur/Analyste ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Tue Dec 4 07:26:24 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id fB4FQOx04541 for imc-snacc-bks; Tue, 4 Dec 2001 07:26:24 -0800 (PST) Received: from wfhqex05.gfgsi.com ([67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id fB4FQM204537 for ; Tue, 4 Dec 2001 07:26:23 -0800 (PST) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Tue, 4 Dec 2001 10:27:58 -0500 Message-ID: From: "Leonberger, Pierce" To: "'eboudreault@motus.com'" , imc-snacc@imc.org Subject: RE: Construct a new structure Date: Tue, 4 Dec 2001 10:27:57 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id fB4FQN204538 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Eric, If you have existing .asn1 files that want to generate code for you need to use the SNACC compiler. If you had the following modules: Module Name Description --------------------------------------------- testmod1.asn1 imports from testmod2.asn1 testmod2.asn1 imports from testmod3.asn1 testmod3.asn1 \bin -D -C -u\util\VDASnacc\asn1specs\asn1-usefulVDA.asn1 testmod1.asn1 testmod2.asn1 testmod3.asn1 Note: since importing is occurring the order of the ASN.1 modules are important. If you have ASN.1 modules that are completely independent (no symbols imported) you can compile them individually. -Pierce -----Original Message----- From: eboudreault@motus.com [mailto:eboudreault@motus.com] Sent: Monday, December 03, 2001 4:14 PM To: imc-snacc@imc.org Subject: Construct a new structure Hi, I want to know how to construct a new structure ASN.1 with snacc compiler ??? I already have my *.asn1 files, but i don't know wich project i have to use to produce .cpp files. Can you help me with that ??? Thank's ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur/Analyste ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Tue Dec 4 08:15:35 2001 Received: by above.proper.com (8.11.6/8.11.3) id fB4GFZM08527 for imc-snacc-bks; Tue, 4 Dec 2001 08:15:35 -0800 (PST) Received: from mail.motus.qc.ca (mail.motus.qc.ca [207.236.155.221]) by above.proper.com (8.11.6/8.11.3) with ESMTP id fB4GFY208523 for ; Tue, 4 Dec 2001 08:15:34 -0800 (PST) Subject: AsnBuf To: imc-snacc@imc.org X-Mailer: Lotus Notes Release 5.0.6a January 17, 2001 Message-ID: From: eboudreault@motus.com Date: Tue, 4 Dec 2001 11:16:27 -0500 X-MIMETrack: Serialize by Router on motus1/Motus Technologies Inc.(Release 5.0.6a |January 17, 2001) at 2001-12-04 11:16:34 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id fB4GFZ208524 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, I want to know why AsnBuf did not manage his buffer ? Why i have to initialize it's content before encode a structure with BEncPdu ? How i can know the length of the encoded data before encoding it ? Exemple : /********************************************************************** AsnBuf encodedData; AsnLen encodedDataLen; char data[100000]; encodedData.InstallData(data, 100000); <----------------------- Why i have to do that before ??? infoVigiAcces.BEncPdu(encodedData, encodedDataLen); **********************************************************************/ Thanks. ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur/Analyste ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Tue Dec 4 08:28:49 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id fB4GSnk08850 for imc-snacc-bks; Tue, 4 Dec 2001 08:28:49 -0800 (PST) Received: from wfhqex03.gfgsi.com ([67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id fB4GSl208845 for ; Tue, 4 Dec 2001 08:28:47 -0800 (PST) Subject: RE: AsnBuf Date: Tue, 4 Dec 2001 11:30:23 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-ID: content-class: urn:content-classes:message X-MS-Has-Attach: X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 X-MS-TNEF-Correlator: Thread-Topic: AsnBuf Thread-Index: AcF832mzWenm86FyRbK9g0v4JOe7zwAALFWA From: "Leonberger, Pierce" To: , Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id fB4GSm208847 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Eric, This is a limitation of the current AsnBuf design. In future revisions we will enchance AsnBuf so that the max. size does not have to be determined before hand. For now you'll have to make an educated guess for the max. size of the encoding. -Pierce -----Original Message----- From: eboudreault@motus.com [mailto:eboudreault@motus.com] Sent: Tuesday, December 04, 2001 11:16 AM To: imc-snacc@imc.org Subject: AsnBuf Hi, I want to know why AsnBuf did not manage his buffer ? Why i have to initialize it's content before encode a structure with BEncPdu ? How i can know the length of the encoded data before encoding it ? Exemple : /********************************************************************** AsnBuf encodedData; AsnLen encodedDataLen; char data[100000]; encodedData.InstallData(data, 100000); <----------------------- Why i have to do that before ??? infoVigiAcces.BEncPdu(encodedData, encodedDataLen); **********************************************************************/ Thanks. ************************************************************************ ** Eric Boudreault ------------------------------------------------ Programmeur/Analyste ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************ ** From owner-imc-snacc Tue Dec 4 08:57:31 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id fB4GvVa10149 for imc-snacc-bks; Tue, 4 Dec 2001 08:57:31 -0800 (PST) Received: from wfhqex05.gfgsi.com ([67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id fB4GvU210144 for ; Tue, 4 Dec 2001 08:57:30 -0800 (PST) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Tue, 4 Dec 2001 11:59:01 -0500 Message-ID: From: "Leonberger, Pierce" To: "'eboudreault@motus.com'" , imc-snacc@imc.org Subject: RE: Build problem Date: Tue, 4 Dec 2001 11:58:59 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id fB4GvU210145 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Send me the generated .h and .cpp. From here it looks like it can't resolve AsnInt which would occur if Version is not defined within the SNACC namespace. However, by default all SNACC generated is in the SNACC namespace. I'll let you know definitively after you send me the code. -Pierce -----Original Message----- From: eboudreault@motus.com [mailto:eboudreault@motus.com] Sent: Tuesday, December 04, 2001 9:19 AM To: imc-snacc@imc.org Subject: Build problem Hi, I try to build a cpp file generated by snacc, but i have that error : e:\work\testsnacc\MyFile.h(50) : error C2146: syntax error : missing ';' before identifier 'Version' e:\work\testsnacc\MyFile.h(50) : fatal error C1004: unexpected end of file found This is my settings to build the asn1 file : echo $(ProjDir) echo on dir $(InputPath) copy $(InputPath) $(ProjDir) cd $(ProjDir) ..\Snacc\compiler\compiler\Debug\snaccd.exe -D -C -VDAexport=SnaccTest -u.. \Snacc\asn1specs\asn-usefulVDA.asn1 MyFile.asn1 That's the content of the cpp file : .... //-------------------------------------------------------------------------- ---- //-------------------------------------------------------------------------- ---- // class definitions: /* INTEGER */ typedef AsnInt Version; .... What i have to do to build my cpp file correctly ??? Thanks. ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur/Analyste ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Wed Dec 5 10:40:24 2001 Received: by above.proper.com (8.11.6/8.11.3) id fB5IeOr19257 for imc-snacc-bks; Wed, 5 Dec 2001 10:40:24 -0800 (PST) Received: from mail.motus.qc.ca (mail.motus.qc.ca [207.236.155.221]) by above.proper.com (8.11.6/8.11.3) with ESMTP id fB5IeN219250 for ; Wed, 5 Dec 2001 10:40:23 -0800 (PST) Subject: What about MAX and MIN To: imc-snacc@imc.org X-Mailer: Lotus Notes Release 5.0.6a January 17, 2001 Message-ID: From: eboudreault@motus.com Date: Wed, 5 Dec 2001 13:41:16 -0500 X-MIMETrack: Serialize by Router on motus1/Motus Technologies Inc.(Release 5.0.6a |January 17, 2001) at 2001-12-05 13:41:24 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id fB5IeO219252 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, I have a question about maximum and minimum length of an OCTET STRING. Can i set an OCTET STRING with a max. and min. length ??? Exemple : .... myString OCTET STRING [MAX...32] [MIN...5], ... If i can, what is the syntax ???? Thanks ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur/Analyste ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Wed Dec 12 07:41:59 2001 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id fBCFfxN09224 for imc-snacc-bks; Wed, 12 Dec 2001 07:41:59 -0800 (PST) Received: from mail.motus.qc.ca (mail.motus.qc.ca [207.236.155.221]) by above.proper.com (8.11.6/8.11.3) with ESMTP id fBCFfv209220 for ; Wed, 12 Dec 2001 07:41:58 -0800 (PST) Subject: OPTIONAL key To: imc-snacc@imc.org X-Mailer: Lotus Notes Release 5.0.6a January 17, 2001 Message-ID: From: eboudreault@motus.com Date: Wed, 12 Dec 2001 10:42:51 -0500 X-MIMETrack: Serialize by Router on motus1/Motus Technologies Inc.(Release 5.0.6a |January 17, 2001) at 2001-12-12 10:42:58 MIME-Version: 1.0 Content-type: multipart/mixed; Boundary="0__=85256B2000550FAD8f9e8a93df938690918c85256B2000550FAD" Content-Disposition: inline Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: --0__=85256B2000550FAD8f9e8a93df938690918c85256B2000550FAD Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable Hi, When i build my ASN.1 file, that error append : E:\work\EncodageDecodageASN1>cd . E:\work\EncodageDecodageASN1>.. \SNACC\1.3Release7\Windows\SMPDist\bin\snaccd.exe -D -C -u.. \SNACC\1.3Release7\Windows\SMPDist\util\VDASnacc\cpplib\asn1\asn-useful= VDA.asn1 VigiAcces.asn1 file "VigiAcces.asn1", line 22: ERROR - one or more consecutive optiona= l SEQUENCE elmements and the the following non-optional elmt (if any) mus= t have distinct tags. Error executing c:\winnt\system32\cmd.exe. I don't understand why this append. Can you tel me what is my error ??= What can i do to resolve it ?? There is my ASN.1 file. (See attached file: VigiAcces.asn1) Thanks ***********************************************************************= *** Eric Boudreault ------------------------------------------------ Programmeur/Analyste ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Qu=E9bec, Qc G1K 3P6 T=E9l.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ***********************************************************************= ***= --0__=85256B2000550FAD8f9e8a93df938690918c85256B2000550FAD Content-type: application/octet-stream; name="=?iso-8859-1?Q?VigiAcces.asn1?=" Content-Disposition: attachment; filename="=?iso-8859-1?Q?VigiAcces.asn1?=" Content-transfer-encoding: base64 U25hY2NUZXN0DQpERUZJTklUSU9OUyA6Oj0gDQpCRUdJTg0KDQpWZXJzaW9uIDo6PSBJTlRFR0VS DQoNCkluZm9BcHAgOjo9IFNFUVVFTkNFIHsNCm5vbUFwcAkJCU9DVEVUIFNUUklORywgDQptb3RQ YXNzQXBwCQlPQ1RFVCBTVFJJTkcsIA0KcGFyYW1BcHAJCU9DVEVUIFNUUklORyBPUFRJT05BTCwg DQpvcGVyYXRpbmdTeXN0ZW0JQklUIFNUUklORw0KfQ0KDQpEb21haW5JbmZvIDo6PSBTRVFVRU5D RSB7DQpwYXNzd29yZAkJT0NURVQgU1RSSU5HLA0Kb3BlcmF0aW5nU3lzdGVtCUJJVCBTVFJJTkcN Cn0NCg0KVXNlckRvbWFpbkluZm8gOjo9IFNFUVVFTkNFIHsNCnVzZXJOYW1lCQlPQ1RFVCBTVFJJ TkcsDQpkb21haW5JbmZvCQlEb21haW5JbmZvIE9QVElPTkFMLA0KaW5mb0FwcAkJCVNFUVVFTkNF IE9GIEluZm9BcHAgT1BUSU9OQUwNCn0NCg0KRG9tYWluTmFtZSA6Oj0gU0VRVUVOQ0Ugew0KZG9t YWluTmFtZQkJT0NURVQgU1RSSU5HLA0KdXNlcgkJCVNFUVVFTkNFIE9GIFVzZXJEb21haW5JbmZv DQp9DQoNClVzZXJDYXJkSW5mbyA6Oj0gU0VRVUVOQ0Ugew0KdXNlcklECQkJT0NURVQgU1RSSU5H LA0KdW5sb2NrU3RhdGlvbglCT09MRUFODQp9DQoNCkluZm9WaWdpQWNjZXMgOjo9IFNFUVVFTkNF IHsNCnZlcnNpb24JCQlWZXJzaW9uLA0KdXNlcgkJCVVzZXJDYXJkSW5mbywNCmRvbWFpbgkJCVNF UVVFTkNFIE9GIERvbWFpbk5hbWUgT1BUSU9OQUwNCn0NCg0KRU5EDQo= --0__=85256B2000550FAD8f9e8a93df938690918c85256B2000550FAD-- From owner-imc-snacc Wed Dec 12 08:04:46 2001 Received: by above.proper.com (8.11.6/8.11.3) id fBCG4kS14336 for imc-snacc-bks; Wed, 12 Dec 2001 08:04:46 -0800 (PST) Received: from wfhqex05.gfgsi.com ([67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id fBCG4g214325 for ; Wed, 12 Dec 2001 08:04:42 -0800 (PST) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Wed, 12 Dec 2001 11:05:34 -0500 Message-ID: From: "Leonberger, Pierce" To: "'eboudreault@motus.com'" , imc-snacc@imc.org Subject: RE: OPTIONAL key Date: Wed, 12 Dec 2001 11:05:32 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id fBCG4h214328 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: You can't have two optional SEQuences within a SEQUENCE unless at least one of them it explicitly tagged. Change UserDomainInfo to: UserDomainInfo ::= SEQUENCE { userName OCTET STRING, domainInfo [0] DomainInfo OPTIONAL, infoApp [1] SEQUENCE OF InfoApp OPTIONAL } and it should be ok. -Pierce -----Original Message----- From: eboudreault@motus.com [mailto:eboudreault@motus.com] Sent: Wednesday, December 12, 2001 10:43 AM To: imc-snacc@imc.org Subject: OPTIONAL key Hi, When i build my ASN.1 file, that error append : E:\work\EncodageDecodageASN1>cd . E:\work\EncodageDecodageASN1>.. \SNACC\1.3Release7\Windows\SMPDist\bin\snaccd.exe -D -C -u.. \SNACC\1.3Release7\Windows\SMPDist\util\VDASnacc\cpplib\asn1\asn-usefulVDA.a sn1 VigiAcces.asn1 file "VigiAcces.asn1", line 22: ERROR - one or more consecutive optional SEQUENCE elmements and the the following non-optional elmt (if any) must have distinct tags. Error executing c:\winnt\system32\cmd.exe. I don't understand why this append. Can you tel me what is my error ?? What can i do to resolve it ?? There is my ASN.1 file. (See attached file: VigiAcces.asn1) Thanks ************************************************************************** Eric Boudreault ------------------------------------------------ Programmeur/Analyste ------------------------------------------------ Motus Technologies 390, St-Vallier Est Bureau 100 Québec, Qc G1K 3P6 Tél.: 521-2100 ext.#242 Fax.: 521-2101 courriel: eboudreault@motus.com ************************************************************************** From owner-imc-snacc Tue Jan 8 06:59:49 2002 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g08Exn105048 for imc-snacc-bks; Tue, 8 Jan 2002 06:59:49 -0800 (PST) Received: from alpha.it-sec.ch (alpha.it-sec.com.101.71.212.in-addr.arpa [212.71.101.10] (may be forged)) by above.proper.com (8.11.6/8.11.3) with ESMTP id g08Exl305042 for ; Tue, 8 Jan 2002 06:59:47 -0800 (PST) Received: from svzh0008.it-sec.ch (localhost [127.0.0.1]) by alpha.it-sec.ch (8.9.3/8.9.3) with ESMTP id PAA13422 for ; Tue, 8 Jan 2002 15:54:52 +0100 (MET) Received: by svzh0008.it-sec.com with Internet Mail Service (5.5.2653.19) id ; Tue, 8 Jan 2002 15:58:30 +0100 Message-ID: From: "Zeller, Francois (iT_SEC)" To: "'imc-snacc@imc.org'" Subject: Compilation with Visual Studio.NET Beta 2 Date: Tue, 8 Jan 2002 15:58:29 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id g08Exm305044 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi ! Does anybody ever succeed in compiling e-snacc on VS.NET b2 ? I've some pb with SNACCDLL_API macro : any tips ? François From owner-imc-snacc Tue Jan 8 10:18:51 2002 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g08IIp012556 for imc-snacc-bks; Tue, 8 Jan 2002 10:18:51 -0800 (PST) Received: from wfhqex03.gfgsi.com (netva01.getronicsgov.com [67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g08IIn312540 for ; Tue, 8 Jan 2002 10:18:49 -0800 (PST) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: Compilation with Visual Studio.NET Beta 2 X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 Date: Tue, 8 Jan 2002 13:20:22 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Compilation with Visual Studio.NET Beta 2 Thread-Index: AcGYVb+9LHbVUYgLQLOWigo1ArUI/gAGrlkA From: "Leonberger, Pierce" To: "Zeller, Francois (iT_SEC)" , Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id g08IIn312553 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: I haven't tried building it with VS.NET b2, but if you send me the build log I may be able to help you. -Pierce -----Original Message----- From: Zeller, Francois (iT_SEC) [mailto:francois.zeller@it-sec.com] Sent: Tuesday, January 08, 2002 9:58 AM To: 'imc-snacc@imc.org' Subject: Compilation with Visual Studio.NET Beta 2 Hi ! Does anybody ever succeed in compiling e-snacc on VS.NET b2 ? I've some pb with SNACCDLL_API macro : any tips ? François From owner-imc-snacc Wed Jan 9 04:46:07 2002 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g09Ck7C13180 for imc-snacc-bks; Wed, 9 Jan 2002 04:46:07 -0800 (PST) Received: from wfhqex03.gfgsi.com (netva01.getronicsgov.com [67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g09Ck5313176 for ; Wed, 9 Jan 2002 04:46:06 -0800 (PST) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: Compilation with Visual Studio.NET Beta 2 X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 Date: Wed, 9 Jan 2002 07:47:34 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Compilation with Visual Studio.NET Beta 2 Thread-Index: AcGY4ncRJVr0O3yITL6/wXuVoqQ9vwAJlVTQ From: "Leonberger, Pierce" To: "Zeller, Francois (iT_SEC)" , "Leonberger, Pierce" Cc: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id g09Ck6313177 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: It's good it see the old iostreams deprecated! I'll add that to the TODO list. Correct you can not import a template. At least not until MS and GNU implement that export statement. Honestly I can't remember why we added the SNACCDLL_API to the AsnSetOf and AsnSeqOf templates. I'll have to look at that. It probably has something to do with C++ generated classes being exported while publicly inheriting AsnSetOf or AsnSeqOf. I'm sure VC++ would have complained about AsnSetOf and AsnSeqOf not being exported as well. Until I start using VisualStudio.net I doubt these problems will get resolved. Here are some suggestions for getting it to build: 1) Build the static version of the runtime library only. 2) Do not use the "-VDAExport" switch on the compiler. 3) #define SNACCDLL_API as " " (a space) or remove it all together. Have Fun :-) -Pierce -----Original Message----- From: Zeller, Francois (iT_SEC) [mailto:francois.zeller@it-sec.com] Sent: Wednesday, January 09, 2002 2:48 AM To: 'Leonberger, Pierce' Subject: RE: Compilation with Visual Studio.NET Beta 2 Thanks for your answer, Pierce. While loading snacc_build.dsw, VS.NET convert it (and all relating dsp) in its own format. After the conversion, i can start the build, with results (see attached build log) a) Warnings because of old iostreams includes: warning C4995: '_OLD_IOSTREAMS_ARE_DEPRECATED' (I can live with that, for the moment) b) Error while compiling c++ lib, static: c:\workfile\tools\SNACC13rn7\c++-lib\inc\sm_buffer.h(60) : error C2001: newline in constant (and all following stuff) this is due to SNACCDLL_API which is in this case defined as "" => I can solve this by setting SNACCDLL_NONE as preprocessor flag, it seems OK c) When I'm trying to build my client application (see build log2) I get following error: c:\workfile\dev\impl\snacc\asn-list.h(262) : error C2953: 'AsnSeqOf' : template class has already been defined c:\workfile\dev\impl\snacc\asn-list.h(262) : see declaration of 'AsnSeqOf' This is because SNACCDLL_API is in this case defined as __declspec(dllimport) => I tried to modify EXPORT_GENSNACC_EXPORTS flags, without any success => It seems that template definitions are not allowed to be declared as dllimport ? any idea ? => it may be a Beta 2 problem or may not : I did not look further, hoping that someone already find a solution François François >-----Original Message----- >From: Leonberger, Pierce [mailto:Pierce.Leonberger@GetronicsGov.com] >Sent: mardi, 8. janvier 2002 19:20 >To: Zeller, Francois (iT_SEC); imc-snacc@imc.org >Subject: RE: Compilation with Visual Studio.NET Beta 2 > > >I haven't tried building it with VS.NET b2, but if you send me >the build >log I may be able to help you. > >-Pierce > >-----Original Message----- >From: Zeller, Francois (iT_SEC) [mailto:francois.zeller@it-sec.com] >Sent: Tuesday, January 08, 2002 9:58 AM >To: 'imc-snacc@imc.org' >Subject: Compilation with Visual Studio.NET Beta 2 > > > >Hi ! >Does anybody ever succeed in compiling e-snacc on VS.NET b2 ? >I've some pb with SNACCDLL_API macro : any tips ? >François > From owner-imc-snacc Tue Jan 15 02:35:37 2002 Received: by above.proper.com (8.11.6/8.11.3) id g0FAZb012546 for imc-snacc-bks; Tue, 15 Jan 2002 02:35:37 -0800 (PST) Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g0FAZW312542 for ; Tue, 15 Jan 2002 02:35:33 -0800 (PST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g0FAYjn26003 for ; Tue, 15 Jan 2002 16:04:45 +0530 (IST) Received: from wipro.com ([192.168.178.139]) by ecmail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GPZ6QR01.C5K for ; Tue, 15 Jan 2002 16:05:15 +0530 Message-ID: <3C4405BF.451D1019@wipro.com> Date: Tue, 15 Jan 2002 16:04:39 +0530 From: "Shashi Kumar" Organization: Wipro Technologies X-Mailer: Mozilla 4.73 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: snacc Subject: snacc ellipses Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-57853b83-099f-11d6-a941-00b0d0d06be8" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: This is a multi-part message in MIME format. ------=_NextPartTM-000-57853b83-099f-11d6-a941-00b0d0d06be8 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, we are having problem in handling ellipses for ASN.1, quick reply appreciated. example ABCstruct ::= SEQUENCE { command Command, optional NULL OPTIONAL, wildcardReturn NULL OPTIONAL, ... --- we are having problem to handle the ellipses... } Thx, Shashi ------=_NextPartTM-000-57853b83-099f-11d6-a941-00b0d0d06be8 Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" ----------------------------------------------------------------------------------------------------------------------- Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at mailto:mailadmin@wipro.com and delete this mail from your records. ------------------------------------------------------------------------------------------------------------------------ ------=_NextPartTM-000-57853b83-099f-11d6-a941-00b0d0d06be8-- From owner-imc-snacc Tue Jan 15 05:35:05 2002 Received: by above.proper.com (8.11.6/8.11.3) id g0FDZ5Z24688 for imc-snacc-bks; Tue, 15 Jan 2002 05:35:05 -0800 (PST) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g0FDZ3324683 for ; Tue, 15 Jan 2002 05:35:04 -0800 (PST) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Tue, 15 Jan 2002 08:36:35 -0500 Message-ID: <0B95FB5619B3D411817E006008A59259C0504E@wfhqex06.gfgsi.com> From: "Nicholas, Richard" To: "'imc-snacc@imc.org'" Subject: RE: snacc ellipses Date: Tue, 15 Jan 2002 08:36:34 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Shashi, SNACC only supports ASN.1 modules written in the 1988 ASN.1 syntax (with the addition of the UniversalString, BMPString, and UTF8String universal types). In the 1988 version of the ASN.1 syntax, an ellipse can only be present as part of a partial specification of a constraint, as in the following example: CertificatePair ::= SEQUENCE { forward [0] Certificate OPTIONAL, reverse [1] Certificate OPTIONAL } ( WITH COMPONENTS {..., forward PRESENT} | WITH COMPONENTS {..., reverse PRESENT}) Any other ellipses in the ASN.1 modules will result in the SNACC compiler returning an error. - Rich --------------------------- Richard E. Nicholas Principal Secure Systems Engineer Getronics Government Solutions, LLC Richard.Nicholas@GetronicsGov.com (301) 939-2722 > -----Original Message----- > From: Shashi Kumar [mailto:shashi.kumar@wipro.com] > Sent: Tuesday, January 15, 2002 5:35 AM > To: snacc > Subject: snacc ellipses > > > Hi, > > we are having problem in handling ellipses for ASN.1, quick reply > appreciated. > example > > ABCstruct ::= SEQUENCE > { > command Command, > optional NULL OPTIONAL, > wildcardReturn NULL OPTIONAL, > ... --- we are having problem > to handle the ellipses... > } > > Thx, > Shashi > From owner-imc-snacc Mon Jan 28 19:20:01 2002 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g0T3K1U28433 for imc-snacc-bks; Mon, 28 Jan 2002 19:20:01 -0800 (PST) Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g0T3Jx328425 for ; Mon, 28 Jan 2002 19:19:59 -0800 (PST) Received: from m2vwall2.wipro.com (m2vwall2.wipro.com [164.164.29.236]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with SMTP id g0T3Jup25080 for ; Tue, 29 Jan 2002 08:49:56 +0530 (IST) Received: from Ananthu ([10.115.4.108]) by ace.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GQOJX301.LG2 for ; Tue, 29 Jan 2002 08:49:51 +0530 Message-ID: <003301c1a874$2e8e8790$6c04730a@Ananthu> Reply-To: "Ananthalakshmi" From: "Ananthalakshmi" To: Subject: SNACC on VMS Date: Tue, 29 Jan 2002 08:52:20 +0530 Organization: Wipro Technologies MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-7efb4935-1442-11d6-af7e-0080c8048dde" X-Priority: 1 X-MSMail-Priority: High X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: This is a multi-part message in MIME format. ------=_NextPartTM-000-7efb4935-1442-11d6-af7e-0080c8048dde Content-Type: multipart/alternative; boundary="----=_NextPart_000_002E_01C1A8A2.42B808D0" ------=_NextPart_000_002E_01C1A8A2.42B808D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=20 We need the below clarification from you. We need to covert from ASN1structures on VMS server. We like to know if Snacc works on VMS.(Product of compaq). Please reply as ASAP Thanks and Regards Ananthalakshmi ------=_NextPart_000_002E_01C1A8A2.42B808D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi
        = We need the=20 below clarification from you.
 
We need to covert from ASN1structures = on VMS=20 server.
 
We like to know if Snacc works on = VMS.(Product of=20 compaq).
 
Please reply as ASAP
Thanks and Regards
Ananthalakshmi
 
 
------=_NextPart_000_002E_01C1A8A2.42B808D0-- ------=_NextPartTM-000-7efb4935-1442-11d6-af7e-0080c8048dde Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" ---------------------------------------------------------------------------------------------------------------------- Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at mailto:mailadmin@wipro.com and delete this mail from your records. ---------------------------------------------------------------------------------------------------------------------- ------=_NextPartTM-000-7efb4935-1442-11d6-af7e-0080c8048dde-- From owner-imc-snacc Thu Feb 7 06:25:58 2002 Received: by above.proper.com (8.11.6/8.11.3) id g17EPwv15547 for imc-snacc-bks; Thu, 7 Feb 2002 06:25:58 -0800 (PST) Received: from Pixie.offcampus.es ([213.4.109.20]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g17EPu315542 for ; Thu, 7 Feb 2002 06:25:56 -0800 (PST) Received: from PROXY (213-98-52-111.uc.nombres.ttd.es [213.98.52.111]) by Pixie.offcampus.es (8.9.3/8.9.3) with SMTP id PAA04261 for ; Thu, 7 Feb 2002 15:29:42 +0100 Received: from (unverified 192.168.0.80) by PROXY (S-MailServer 1.2) with SMTP id ; Thu, 07 Feb 2002 15:28:18, Hora estándar romance From: "Juan Francisco Navarro Peso" To: Subject: SNACC and CSTA Date: Thu, 7 Feb 2002 15:23:44 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, I'm trying to use SNACC with CSTA Phase II to communicate with a PABX, but I can´t decode the messages received from the PABX (I always get an error -798). Has anybody used SNACC with CSTA? Thank you ___________________________________ Juan Francisco Navarro Peso JUSAN, S.A. Tlf: +34 91 456 0110 Ext.: 52 Fax: +34 91 553 1411 E-Mail: mailto:jnavarro@jusan.es ___________________________________ From owner-imc-snacc Mon Feb 11 08:04:40 2002 Received: by above.proper.com (8.11.6/8.11.3) id g1BG4ew00446 for imc-snacc-bks; Mon, 11 Feb 2002 08:04:40 -0800 (PST) Received: from wfhqex03.gfgsi.com (netva01.getronicsgov.com [67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g1BG4a300440 for ; Mon, 11 Feb 2002 08:04:36 -0800 (PST) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 Subject: RE: SNACC on VMS Date: Mon, 11 Feb 2002 11:09:01 -0500 Message-ID: <0B95FB5619B3D411817E006008A59259B523F5@wfhqex06.gfgsi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: SNACC on VMS Thread-Index: AcGodTcuHeELMpT0QT2PQheTVHMGdAKoD9Lg From: "Pawling, John" To: "Ananthalakshmi" Cc: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id g1BG4a300441 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Ananthalakshmi, Getronics has not ported the Enhanced SNACC ASN.1 software to VMS and we do not know of anybody else who has ported it to VMS. However, the Enhanced SNACC ASN.1 source code is designed to be platform independent. We have successfully tested it using the Microsoft Windows, Sun Solaris, and Linux operating systems. Assuming that a C/C++ compiler is available for VMS, then customers should be able to successfully compile the Enhanced SNACC ASN.1 source code on VMS. Getronics does not have a large enough base ourselves to justify our own testing on VMS. =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== -----Original Message----- From: Ananthalakshmi [mailto:ananthalakshmi.mysore@wipro.com] Sent: Monday, January 28, 2002 10:22 PM To: imc-snacc@imc.org Subject: SNACC on VMS Importance: High Hi We need the below clarification from you. We need to covert from ASN1structures on VMS server. We like to know if Snacc works on VMS.(Product of compaq). Please reply as ASAP Thanks and Regards Ananthalakshmi From owner-imc-snacc Mon Feb 11 19:17:03 2002 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g1C3H3q13795 for imc-snacc-bks; Mon, 11 Feb 2002 19:17:03 -0800 (PST) Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g1C3Gx313790 for ; Mon, 11 Feb 2002 19:17:00 -0800 (PST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g1C3FnX15643 for ; Tue, 12 Feb 2002 08:45:49 +0530 (IST) Received: from wipro.com ([192.168.178.139]) by ecmail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GREH4101.G65 for ; Tue, 12 Feb 2002 08:46:49 +0530 Message-ID: <3C688881.7BAA52EA@wipro.com> Date: Tue, 12 Feb 2002 08:44:09 +0530 From: "Shashi Kumar" Organization: Wipro Technologies X-Mailer: Mozilla 4.73 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: imc-snacc@imc.org Subject: MT safe snacc Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-f0f4649c-1f4f-11d6-a942-00b0d0d06be8" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: This is a multi-part message in MIME format. ------=_NextPartTM-000-f0f4649c-1f4f-11d6-a942-00b0d0d06be8 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi list, sometime back there was a discussion on the list regarding the SNACC being MT safe or not, does any one have more info SNACC being MT safe? thanks, Shashi ------=_NextPartTM-000-f0f4649c-1f4f-11d6-a942-00b0d0d06be8 Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" **************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ******************************************************************** ------=_NextPartTM-000-f0f4649c-1f4f-11d6-a942-00b0d0d06be8-- From owner-imc-snacc Mon Feb 11 19:59:27 2002 Received: by above.proper.com (8.11.6/8.11.3) id g1C3xRi14412 for imc-snacc-bks; Mon, 11 Feb 2002 19:59:27 -0800 (PST) Received: from usnj01ex01.mindtree.com ([12.144.42.104]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g1C3xP314408 for ; Mon, 11 Feb 2002 19:59:25 -0800 (PST) Received: from mtv01ex01.mindtree.com ([172.20.32.4]) by usnj01ex01.mindtree.com with Microsoft SMTPSVC(5.0.2195.2966); Mon, 11 Feb 2002 23:00:17 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: 3GPP Date: Tue, 12 Feb 2002 09:30:14 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 3GPP Thread-Index: AcGzecZus1JfGFjXQne9r3e8DL1lsg== From: "Rajeev Sharma" To: X-OriginalArrivalTime: 12 Feb 2002 04:00:18.0093 (UTC) FILETIME=[C89865D0:01C1B379] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id g1C3xQ314409 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi List, Has anyone tried to run SNACC on 3GPP Asn file(s)..particularly for the 25.331(RRC layer). If you are successfull in doing so, Please tell us about whatever changes that needed to be done..either to the Asn file or to the SNACC compiler. Thanks, Rajeev From owner-imc-snacc Tue Feb 12 13:26:19 2002 Received: by above.proper.com (8.11.6/8.11.3) id g1CLQJ416034 for imc-snacc-bks; Tue, 12 Feb 2002 13:26:19 -0800 (PST) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g1CLQI316030 for ; Tue, 12 Feb 2002 13:26:18 -0800 (PST) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Tue, 12 Feb 2002 16:30:46 -0500 Message-ID: <0B95FB5619B3D411817E006008A59259B5240E@wfhqex06.gfgsi.com> From: "Pawling, John" To: "'Shashi Kumar'" , imc-snacc@imc.org Subject: RE: MT safe snacc Date: Tue, 12 Feb 2002 16:30:42 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Shashi, The v1.3 R7 Enhanced SNACC ASN.1 C++ Library (currently available at ) included significant enhancements to improve thread safety. Since the v1.3 R7 release, we have made further minor improvements to the multi-thread performance of the Enhanced SNACC ASN.1 C++ Library. We are planning to deliver a new release (v1.3 R8) of the Enhanced SNACC ASN.1 C++ Library later this month that will include these improvements. We will send a message to the imc-snacc mail list as soon as the v1.3 R8 release is available. =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== -----Original Message----- From: Shashi Kumar [mailto:shashi.kumar@wipro.com] Sent: Monday, February 11, 2002 10:14 PM To: imc-snacc@imc.org Subject: MT safe snacc Hi list, sometime back there was a discussion on the list regarding the SNACC being MT safe or not, does any one have more info SNACC being MT safe? thanks, Shashi From owner-imc-snacc Mon Feb 18 04:44:59 2002 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g1ICixn13693 for imc-snacc-bks; Mon, 18 Feb 2002 04:44:59 -0800 (PST) Received: from mail.ginster.net (ns.ginster.net [195.158.162.1]) by above.proper.com (8.11.6/8.11.3) with SMTP id g1ICiv313688 for ; Mon, 18 Feb 2002 04:44:57 -0800 (PST) Received: (qmail 624 invoked from network); 18 Feb 2002 12:44:56 -0000 Received: from mail.datus.com (212.202.23.10) by ns.ginster.net with SMTP; 18 Feb 2002 12:44:56 -0000 Received: from ntmail1.datus.com (ntmail1.datus.com [10.52.5.20]) by mail.datus.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id NAA30651 for ; Mon, 18 Feb 2002 13:44:56 +0100 Received: by ntmail1.datus.com with Internet Mail Service (5.5.2653.19) id ; Mon, 18 Feb 2002 13:44:56 +0100 Message-ID: <9282B275D3CBD511BD61009027F71230677F01@ntmail1.datus.com> From: =?iso-8859-1?Q?=22Pr=F6pper=2C_Wolfgang=22?= To: "'imc-snacc@imc.org'" Subject: known bug of snacc 1.1 Date: Mon, 18 Feb 2002 13:44:52 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hello, I try to use the Enhanced Snacc Compiler 1.3b4 for windows. But the bug with "ANY DEFINED BY" mentioned in Mike Samples Manual in ch. 1.2.1 is not fixed in this version. I couldn`t find any info in the mailing list that this bug is fixed. Is there a binary version for windows or is there another solution for the problem instead of compiling the sources for windows ? regards Wolfgang From owner-imc-snacc Tue Feb 19 05:39:30 2002 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g1JDdUu23518 for imc-snacc-bks; Tue, 19 Feb 2002 05:39:30 -0800 (PST) Received: from mail.ginster.net (ns.ginster.net [195.158.162.1]) by above.proper.com (8.11.6/8.11.3) with SMTP id g1JDdR323508 for ; Tue, 19 Feb 2002 05:39:28 -0800 (PST) Received: (qmail 22274 invoked from network); 19 Feb 2002 13:39:17 -0000 Received: from mail.datus.com (212.202.23.10) by ns.ginster.net with SMTP; 19 Feb 2002 13:39:17 -0000 Received: from ntmail1.datus.com (ntmail1.datus.com [10.52.5.20]) by mail.datus.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id OAA06734 for ; Tue, 19 Feb 2002 14:39:17 +0100 Received: by ntmail1.datus.com with Internet Mail Service (5.5.2653.19) id ; Tue, 19 Feb 2002 14:39:16 +0100 Message-ID: <9282B275D3CBD511BD61009027F71230677F04@ntmail1.datus.com> From: =?iso-8859-1?Q?=22Pr=F6pper=2C_Wolfgang=22?= To: "'imc-snacc@imc.org'" Subject: size of file list Date: Tue, 19 Feb 2002 14:39:15 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hello, is there a limit for the file list ? Allways when I try to compile more or equal than seven files excluding the useful type file, I get the message "segmentation fault". Regards Wolfgang From owner-imc-snacc Tue Feb 19 08:34:59 2002 Received: by above.proper.com (8.11.6/8.11.3) id g1JGYxY03764 for imc-snacc-bks; Tue, 19 Feb 2002 08:34:59 -0800 (PST) Received: from wfhqex03.gfgsi.com (netva01.getronicsgov.com [67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g1JGYv303759 for ; Tue, 19 Feb 2002 08:34:57 -0800 (PST) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 Subject: RE: size of file list Date: Tue, 19 Feb 2002 11:34:51 -0500 Message-ID: <33BD629222C0D211B6DB0060085ACF3102188F88@wfhqex03.gfgsi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: size of file list Thread-Index: AcG5S77vokCB6XGxRxumIwerfaBeOwAF6+9g From: "Leonberger, Pierce" To: =?iso-8859-1?Q?=22Pr=F6pper=2C_Wolfgang=22?= , Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id g1JGYv303760 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Wolfgang, There is not a limit. In fact checkout the compile line I use for one of our projects: ..\..\..\smpdist\bin\snaccd.exe -D -C -VDAexport=ACLSNACC_API -u..\..\..\smpdist\util\vdasnacc\cpplib\asn1\asn-usefulVDA.asn1 UsefulDefinitions.asn1 UpperBounds.asn1 InformationFramework.asn1 SelectedAttributeTypes.asn1 ORAddress.asn1 X509Common.asn1 sm_usefulTypes.asn AuthenticationFramework.asn1 CertificateExtensions.asn1 AttributeCertificateDefinitions.asn1 sdn702.asn1 PKIX.asn1 aclasn.asn1 That is 14 modules! We can debug the problem if you do the following: send me modules you are trying to compile, the order in which you are compiling them, and any command line switches you are using. Thanks, -Pierce -----Original Message----- From: "Pröpper, Wolfgang" [mailto:wproepper@datus.com] Sent: Tuesday, February 19, 2002 8:39 AM To: 'imc-snacc@imc.org' Subject: size of file list Hello, is there a limit for the file list ? Allways when I try to compile more or equal than seven files excluding the useful type file, I get the message "segmentation fault". Regards Wolfgang From owner-imc-snacc Wed Feb 20 04:12:08 2002 Received: by above.proper.com (8.11.6/8.11.3) id g1KCC8J25471 for imc-snacc-bks; Wed, 20 Feb 2002 04:12:08 -0800 (PST) Received: from mx3.ust.hk (mx3.ust.hk [143.89.13.11]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g1KCC4325465 for ; Wed, 20 Feb 2002 04:12:04 -0800 (PST) Received: from ccz339 (ccz339.ust.hk [143.89.100.9]) by mx3.ust.hk (8.11.5/8.11.5) with SMTP id g1KCC4N17996 for ; Wed, 20 Feb 2002 20:12:04 +0800 Message-ID: <002c01c1ba07$cefd78e0$0964598f@itsc.ust.hk> From: "Martin Leung" To: Subject: How to use DER functions Date: Wed, 20 Feb 2002 20:12:03 +0800 Organization: HKUST MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi, I installed Enhanced SNACC v1.3 R7 and wrote a small asn1 file and test program. If I run SNACC with the -E DER flag, compile fails with lots of undefined symbols: gcc -o genupn def-obj/altName.o genupn.o ../SMPDist/util/VDASnacc/clib/lib/libasn1cebuf.a -lm def-obj/altName.o: In function `DEncOtherNameContent': /home/martin/upn/src/genupn/altName.c:35: undefined reference to `DEncAsnAnyDefinedBy' .... (many Dxxxx symbols not defined) If I changed to use BER encoding, it compiles successfully. Any idea? Rgds. Martin From owner-imc-snacc Fri Feb 22 08:49:41 2002 Received: by above.proper.com (8.11.6/8.11.3) id g1MGnfJ07686 for imc-snacc-bks; Fri, 22 Feb 2002 08:49:41 -0800 (PST) Received: from eins.siemens.at (eins.siemens.at [193.81.246.11]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g1MGnd307682 for ; Fri, 22 Feb 2002 08:49:40 -0800 (PST) Received: from scesie13.sie.siemens.at (forix [10.1.140.2]) by eins.siemens.at with ESMTP id g1MGnZU13161 for ; Fri, 22 Feb 2002 17:49:35 +0100 Received: from budk105a.siemens.hu (atws15tc.sie.siemens.at [158.226.135.41]) by scesie13.sie.siemens.at (8.12.1/8.12.1) with ESMTP id g1MGnTkv025641 for ; Fri, 22 Feb 2002 17:49:35 +0100 (MET) Received: by BUDK105A with Internet Mail Service (5.5.2653.19) id ; Fri, 22 Feb 2002 17:45:45 +0100 Received: from pc0436sd (pc0436sd.sysdata.siemens.hu [149.202.235.30]) by budg112a.sysdata.siemens.hu with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1Z8A9F02; Fri, 22 Feb 2002 17:51:36 +0100 From: Udvaros Endre To: imc-snacc@imc.org Message-ID: <001c01c1bbc1$9ed165d0$1eebca95@pc0436sd.sysdata.siemens.hu> Subject: X.608 Date: Fri, 22 Feb 2002 17:54:40 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: -----Original Message----- From: Martin Leung To: imc-snacc@imc.org Date: Wednesday, February 20, 2002 1:19 PM Subject: How to use DER functions Hi, I just installed the Solaris version of SNACC v.1.3 and I recognized that the BER encoding does not support the X.680 (1994 E) standard. e.g. **************************************** X.208 ChoiceValue ::= NamedValue ... NamedValue::= identifier Value X.680 ChoiceValue::=identifier ":" Value **************************************** Is there any other version of SNACC that supports this norm? Would it be difficult to change SNACC to this standard? Andreas Udvaros From owner-imc-snacc Mon Feb 25 07:41:51 2002 Received: by above.proper.com (8.11.6/8.11.3) id g1PFfpE24570 for imc-snacc-bks; Mon, 25 Feb 2002 07:41:51 -0800 (PST) Received: from wfhqex03.gfgsi.com (netva01.getronicsgov.com [67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g1PFfm324559 for ; Mon, 25 Feb 2002 07:41:49 -0800 (PST) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 Subject: RE: known bug of snacc 1.1 Date: Mon, 25 Feb 2002 10:41:33 -0500 Message-ID: <0B95FB5619B3D411817E006008A59259B524C6@wfhqex06.gfgsi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: known bug of snacc 1.1 Thread-Index: AcG4erzPCSfotvVzQkazXwT3Eb5rSwCd2RRQABJga4AAtfzFYA== From: "Pawling, John" To: Cc: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id g1PFfn324561 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Wolfgang, In addition to the enclosed message, Getronics Government Solutions has delivered the v1.3 R8 Enhanced SNACC ASN.1 Compiler, C++ library and C library source code compilable for Linux, Sun Solaris 2.8 and Microsoft Windows NT/98/2000. The Enhanced SNACC software is freely available to everyone from: . =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== -----Original Message----- From: Colestock, Robert Sent: Thursday, February 21, 2002 8:04 PM To: 'wproepper@datus.com' Cc: Pawling, John Subject: RE: known bug of snacc 1.1 Wolfgang: Sorry, I do not happen to have the SNACC manual in a readable form. What exactly is this bug you refer to? I made modifications to the C++ version of our upgraded SNACC compiler to default unknown "ANY DEFINED BY" oids to "AsnAnyBuffer" (new definition) along with a class method indicating that it could not be decoded. At this point it is left to the application to check the OID and decode the blob explicitely. This beats the original behaviour of aborting. You can even ignore the ASN.1 directives that align OIDs with ASN.1 definitions for automatic decoding if you want. All of this functionality is available in our upgraded SNACC compiler: www.getronicsgov.com under the SFL libraries. We provide binaries for Sun/Solaris, Linux (i386), and MS Windows as well as source. If you opt to use our library, there are some modifications, and some improvements. Depending on the features you expect, some features have been ignored as well. Bob Colestock VDA. -----Original Message----- From: "Pröpper, Wolfgang" [mailto:wproepper@datus.com] Sent: Monday, February 18, 2002 7:45 AM To: 'imc-snacc@imc.org' Subject: known bug of snacc 1.1 Hello, I try to use the Enhanced Snacc Compiler 1.3b4 for windows. But the bug with "ANY DEFINED BY" mentioned in Mike Samples Manual in ch. 1.2.1 is not fixed in this version. I couldn`t find any info in the mailing list that this bug is fixed. Is there a binary version for windows or is there another solution for the problem instead of compiling the sources for windows ? regards Wolfgang From owner-imc-snacc Mon Feb 25 12:32:32 2002 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g1PKWWd08363 for imc-snacc-bks; Mon, 25 Feb 2002 12:32:32 -0800 (PST) Received: from wfhqex03.gfgsi.com (netva01.getronicsgov.com [67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g1PKTh308292; Mon, 25 Feb 2002 12:29:43 -0800 (PST) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 Subject: v1.3 R8 Enhanced SNACC Freeware Now Available Date: Mon, 25 Feb 2002 15:29:35 -0500 Message-ID: <0B95FB5619B3D411817E006008A59259B524DF@wfhqex06.gfgsi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: v1.3 R8 Enhanced SNACC Freeware Now Available Thread-Index: AcG+PAdHt68nl6ieT1mtbbNlAvBOvA== From: "Pawling, John" To: , , Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id g1PKTh308293 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: All, Getronics Government Solutions has delivered the v1.3 R8 Enhanced SNACC Abstract Syntax Notation One (ASN.1) Compiler, C++ library and C library source code compilable for Linux, Sun Solaris 2.8 and Microsoft (MS) Windows NT/98/2000/XP. The Enhanced SNACC software is freely available to everyone from: . The v1.3 R8 Enhanced SNACC release fixes bugs present in the v1.3 R7 release. The Enhanced SNACC ASN.1 software can be used to ASN.1 encode and decode objects. In past releases, Getronics enhanced the original SNACC ASN.1 C++ library to implement the Distinguished Encoding Rules (DER), support large ASN.1 INTEGERs, and improve memory usage. v1.3 R8 Enhanced SNACC ASN.1 Library enhancements (compared to v1.3 R7): 1) Fixed bug in processing of BMP strings on UNIX platforms. 2) Removed dependencies on SNACC config.h in distributed includes/libs. 3) Developed a test driver and successfully tested the Enhanced SNACC C ASN.1 Library. We corrected bugs in the C Library DER code. 4) Corrected bug in sm_vdasnacc.cpp (line 303) regarding setting the length value for indefinite length decodings. 5) Corrected AsnOcts to use inherited CSM_Buffer Length() member function instead of AsnOcts maintaining it's own length data member. 6) Corrected memory management bug in AsnOid::PutChar in asn-oid.cpp. 7) Tested with v2.0.1 S/MIME Freeware Library (SFL) that uses the Enhanced SNACC ASN.1 software to encode and decode the IETF S/MIME v3 Cryptographic Message Syntax (RFC 2630) and Enhanced Security Services for S/MIME (RFC 2634) security protocol. 8) Tested with freeware v2.0.1 Certificate Management Library (CML) that uses the Enhanced SNACC ASN.1 software to encode and decode X.509 certificates, attribute certificates and Certificate Revocation Lists as specified in the 2000 X.509 Recommendation. 9) Tested with freeware v2.0.1 Access Control Library (ACL) that uses the Enhanced SNACC ASN.1 software to encode and decode security labels and other objects (such as Security Policy Information Files) required to provide rule based automated access control as specified in SDN.801. The aforementioned bug fixes improved the multi-threaded performance of the Enhanced SNACC ASN.1 C++ Library. The Enhanced SNACC ASN.1 software implements the majority of the ASN.1 encoding/decoding rules as specified in the 1988 X.209 Recommendation. It implements the DER as specified in the 1994 X.690 Recommendation. It does not support all of the latest ASN.1 features, but there are strategies that allow it to be used to produce ASN.1 hex encodings that are identical to those produced by ASN.1 libraries that do support the latest ASN.1 features. Also note that many of the PKIX specs, such as RFC 2459 and RFC 2630, include 1988-compliant ASN.1 syntax modules which can be compiled using the Enhanced SNACC compiler. The Enhanced SNACC ASN.1 library is totally unencumbered as stated in the Enhanced SNACC Software Public License. All source code for the Enhanced SNACC software is being provided at no cost and with no financial limitations regarding its use and distribution. Organizations can use the Enhanced SNACC software without paying any royalties or licensing fees. The Internet Mail Consortium (IMC) has established an Enhanced SNACC web page . The IMC has established an Enhanced SNACC mail list which is used to: distribute information regarding Enhanced SNACC releases; discuss related issues; and provide a means for integrators to provide feedback, comments, bug reports, etc. Subscription information for the imc-snacc mail list is at the IMC web site listed above. We welcome all feedback regarding the Enhanced SNACC software. If bugs are reported, then we will investigate each reported bug and, if required, will produce a patch or an updated release of the software to repair the bug. This release announcement was sent to several mail lists, but please send all messages regarding the Enhanced SNACC software to the imc-snacc mail list ONLY. Please do not send messages regarding the Enhanced SNACC software to any of the IETF mail lists. We will respond to all messages sent to the imc-snacc mail list. =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== From owner-imc-snacc Mon Feb 25 14:12:26 2002 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g1PMCQe11307 for imc-snacc-bks; Mon, 25 Feb 2002 14:12:26 -0800 (PST) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g1PMCM311291 for ; Mon, 25 Feb 2002 14:12:22 -0800 (PST) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Mon, 25 Feb 2002 17:12:18 -0500 Message-ID: <0B95FB5619B3D411817E006008A59259B524EB@wfhqex06.gfgsi.com> From: "Pawling, John" To: "'imc-snacc@imc.org'" Subject: v1.3 R8 Enhanced SNACC Freeware Now Available Date: Mon, 25 Feb 2002 17:12:17 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: All, Getronics Government Solutions has delivered the v1.3 R8 Enhanced SNACC Abstract Syntax Notation One (ASN.1) Compiler, C++ library and C library source code compilable for Linux, Sun Solaris 2.8 and Microsoft (MS) Windows NT/98/2000/XP. The Enhanced SNACC software is freely available to everyone from: . The v1.3 R8 Enhanced SNACC release fixes bugs present in the v1.3 R7 release. The Enhanced SNACC ASN.1 software can be used to ASN.1 encode and decode objects. In past releases, Getronics enhanced the original SNACC ASN.1 C++ library to implement the Distinguished Encoding Rules (DER), support large ASN.1 INTEGERs, and improve memory usage. v1.3 R8 Enhanced SNACC ASN.1 Library enhancements (compared to v1.3 R7): 1) Fixed bug in processing of BMP strings on UNIX platforms. 2) Removed dependencies on SNACC config.h in distributed includes/libs. 3) Developed a test driver and successfully tested the Enhanced SNACC C ASN.1 Library. We corrected bugs in the C Library DER code. 4) Corrected bug in sm_vdasnacc.cpp (line 303) regarding setting the length value for indefinite length decodings. 5) Corrected AsnOcts to use inherited CSM_Buffer Length() member function instead of AsnOcts maintaining it's own length data member. 6) Corrected memory management bug in AsnOid::PutChar in asn-oid.cpp. 7) Tested with v2.0.1 S/MIME Freeware Library (SFL) that uses the Enhanced SNACC ASN.1 software to encode and decode the IETF S/MIME v3 Cryptographic Message Syntax (RFC 2630) and Enhanced Security Services for S/MIME (RFC 2634) security protocol. 8) Tested with freeware v2.0.1 Certificate Management Library (CML) that uses the Enhanced SNACC ASN.1 software to encode and decode X.509 certificates, attribute certificates and Certificate Revocation Lists as specified in the 2000 X.509 Recommendation. 9) Tested with freeware v2.0.1 Access Control Library (ACL) that uses the Enhanced SNACC ASN.1 software to encode and decode security labels and other objects (such as Security Policy Information Files) required to provide rule based automated access control as specified in SDN.801. The aforementioned bug fixes improved the multi-threaded performance of the Enhanced SNACC ASN.1 C++ Library. The Enhanced SNACC ASN.1 software implements the majority of the ASN.1 encoding/decoding rules as specified in the 1988 X.209 Recommendation. It implements the DER as specified in the 1994 X.690 Recommendation. It does not support all of the latest ASN.1 features, but there are strategies that allow it to be used to produce ASN.1 hex encodings that are identical to those produced by ASN.1 libraries that do support the latest ASN.1 features. Also note that many of the PKIX specs, such as RFC 2459 and RFC 2630, include 1988-compliant ASN.1 syntax modules which can be compiled using the Enhanced SNACC compiler. The Enhanced SNACC ASN.1 library is totally unencumbered as stated in the Enhanced SNACC Software Public License. All source code for the Enhanced SNACC software is being provided at no cost and with no financial limitations regarding its use and distribution. Organizations can use the Enhanced SNACC software without paying any royalties or licensing fees. The Internet Mail Consortium (IMC) has established an Enhanced SNACC web page . The IMC has established an Enhanced SNACC mail list which is used to: distribute information regarding Enhanced SNACC releases; discuss related issues; and provide a means for integrators to provide feedback, comments, bug reports, etc. Subscription information for the imc-snacc mail list is at the IMC web site listed above. We welcome all feedback regarding the Enhanced SNACC software. If bugs are reported, then we will investigate each reported bug and, if required, will produce a patch or an updated release of the software to repair the bug. This release announcement was sent to several mail lists, but please send all messages regarding the Enhanced SNACC software to the imc-snacc mail list ONLY. Please do not send messages regarding the Enhanced SNACC software to any of the IETF mail lists. We will respond to all messages sent to the imc-snacc mail list. =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== From owner-imc-snacc Tue Feb 26 08:26:46 2002 Received: by above.proper.com (8.11.6/8.11.3) id g1QGQkk13788 for imc-snacc-bks; Tue, 26 Feb 2002 08:26:46 -0800 (PST) Received: from wfhqex03.gfgsi.com (netva01.getronicsgov.com [67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g1QGQj313784 for ; Tue, 26 Feb 2002 08:26:45 -0800 (PST) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 Subject: RE: How to use DER functions Date: Tue, 26 Feb 2002 11:26:31 -0500 Message-ID: <0B95FB5619B3D411817E006008A59259B524F6@wfhqex06.gfgsi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to use DER functions Thread-Index: AcG6CCeykbW+0nzdSH6W6EErc7ie8AE2tbkg From: "Pawling, John" To: "Martin Leung" , Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id g1QGQj313785 Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi Martin, Please re-try your tests using the new v1.3 R8 Enhanced SNACC release available from . If you still have problems, then please send another message to this list regarding the problems encountered. =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== -----Original Message----- From: Martin Leung [mailto:ccmartin@ust.hk] Sent: Wednesday, February 20, 2002 7:12 AM To: imc-snacc@imc.org Subject: How to use DER functions Hi, I installed Enhanced SNACC v1.3 R7 and wrote a small asn1 file and test program. If I run SNACC with the -E DER flag, compile fails with lots of undefined symbols: gcc -o genupn def-obj/altName.o genupn.o ../SMPDist/util/VDASnacc/clib/lib/libasn1cebuf.a -lm def-obj/altName.o: In function `DEncOtherNameContent': /home/martin/upn/src/genupn/altName.c:35: undefined reference to `DEncAsnAnyDefinedBy' .... (many Dxxxx symbols not defined) If I changed to use BER encoding, it compiles successfully. Any idea? Rgds. Martin From owner-imc-snacc Wed Feb 27 15:07:52 2002 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g1RN7qY09286 for imc-snacc-bks; Wed, 27 Feb 2002 15:07:52 -0800 (PST) Received: from motgate.mot.com (motgate.mot.com [129.188.136.100]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g1RN7oi09282 for ; Wed, 27 Feb 2002 15:07:51 -0800 (PST) Received: [from pobox4.mot.com (pobox4.mot.com [10.64.251.243]) by motgate.mot.com (motgate 2.1) with ESMTP id QAA15760 for ; Wed, 27 Feb 2002 16:07:53 -0700 (MST)] Received: [from brc9exm01.ipsg.mot.com (brc9exm01.ipsg.mot.com [138.242.16.16]) by pobox4.mot.com (MOT-pobox4 2.0) with ESMTP id QAA25349 for ; Wed, 27 Feb 2002 16:07:52 -0700 (MST)] Received: by brc9exm01.ipsg.mot.com with Internet Mail Service (5.5.2654.52) id <1KCHH48R>; Wed, 27 Feb 2002 15:07:52 -0800 Message-ID: From: Shah Ketan-Y10833 To: "'imc-snacc@imc.org'" Subject: Is there a LynxOS port for the eSnacc Date: Wed, 27 Feb 2002 15:07:51 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2654.52) Content-Type: text/plain; charset="ISO-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: HI, I would like to know if there is a LynxOS port for eSnacc? Thanks Ketan From owner-imc-snacc Thu Feb 28 07:51:14 2002 Received: by above.proper.com (8.11.6/8.11.3) id g1SFpEJ07251 for imc-snacc-bks; Thu, 28 Feb 2002 07:51:14 -0800 (PST) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g1SFpDi07247 for ; Thu, 28 Feb 2002 07:51:13 -0800 (PST) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Thu, 28 Feb 2002 10:51:09 -0500 Message-ID: <0B95FB5619B3D411817E006008A59259B5252F@wfhqex06.gfgsi.com> From: "Pawling, John" To: "'Shah Ketan-Y10833'" , "'imc-snacc@imc.org'" Subject: RE: Is there a LynxOS port for the eSnacc Date: Thu, 28 Feb 2002 10:51:08 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Ketan, Getronics has not ported the Enhanced SNACC ASN.1 software to the LynxOS and we do not know of anybody else who has ported it to LynxOS. However, the Enhanced SNACC ASN.1 source code is designed to be platform independent and to maximize portability to 32-bit operating systems. We have successfully tested it using the Microsoft Windows, Sun Solaris, and Linux operating systems. Assuming that a C/C++ compiler is available for LynxOS, then customers should be able to successfully compile the Enhanced SNACC ASN.1 source code on LynxOS. Getronics does not have a large enough base ourselves to justify our own testing on LynxOS. =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== -----Original Message----- From: Shah Ketan-Y10833 [mailto:Ketan.G.Shah@motorola.com] Sent: Wednesday, February 27, 2002 6:08 PM To: 'imc-snacc@imc.org' Subject: Is there a LynxOS port for the eSnacc HI, I would like to know if there is a LynxOS port for eSnacc? Thanks Ketan From owner-imc-snacc Thu Feb 28 08:35:50 2002 Received: by above.proper.com (8.11.6/8.11.3) id g1SGZoK08460 for imc-snacc-bks; Thu, 28 Feb 2002 08:35:50 -0800 (PST) Received: from wfhqex05.gfgsi.com (netva01.getronicsgov.com [67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g1SGZni08456 for ; Thu, 28 Feb 2002 08:35:49 -0800 (PST) Received: by wfhqex05.gfgsi.com with Internet Mail Service (5.5.2653.19) id ; Thu, 28 Feb 2002 11:35:45 -0500 Message-ID: <0B95FB5619B3D411817E006008A59259B52534@wfhqex06.gfgsi.com> From: "Pawling, John" To: "'endre.udvaros@sysdata.siemens.hu'" Cc: imc-snacc@imc.org Subject: RE: X.608 Date: Thu, 28 Feb 2002 11:35:44 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi Andreas, The ChoiceValue feature is not supported by any Enhanced SNACC release. The v1.3 R8 Enhanced SNACC ASN.1 software implements the majority of the ASN.1 encoding/decoding features as specified in the 1988 X.209 Recommendation. It implements the Distinguished Encoding Rules (DER) as specified in the 1994 X.690 Recommendation. It does not support all of the ASN.1 features specified in those recommendations, but there are strategies that allow it to be used to produce ASN.1 hex encodings that are identical to those produced by ASN.1 libraries that do support the latest ASN.1 features. Our goal is to add additional features to future releases of the Enhanced SNACC software. We may add the ChoiceValue feature in a future releases of the Enhanced SNACC software. At this point, we cannot make any commitments regarding if and when the ChoiceValue feature will be added. Please let us know if we can provide further information. =========================================== John Pawling, John.Pawling@GetronicsGov.com Getronics Government Solutions, LLC =========================================== -----Original Message----- From: Udvaros Endre [mailto:endre.udvaros@sysdata.siemens.hu] Sent: Friday, February 22, 2002 11:55 AM To: imc-snacc@imc.org Subject: X.608 Hi, I just installed the Solaris version of SNACC v.1.3 and I recognized that the BER encoding does not support the X.680 (1994 E) standard. e.g. **************************************** X.208 ChoiceValue ::= NamedValue ... NamedValue::= identifier Value X.680 ChoiceValue::=identifier ":" Value **************************************** Is there any other version of SNACC that supports this norm? Would it be difficult to change SNACC to this standard? Andreas Udvaros From owner-imc-snacc Sun Mar 3 23:05:23 2002 Received: by above.proper.com (8.11.6/8.11.3) id g2475NT03240 for imc-snacc-bks; Sun, 3 Mar 2002 23:05:23 -0800 (PST) Received: from omta01.mta.everyone.net (sitemail3.everyone.net [216.200.145.37]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g2475H803214 for ; Sun, 3 Mar 2002 23:05:22 -0800 (PST) Received: from sitemail.everyone.net (dsnat [216.200.145.62]) by omta01.mta.everyone.net (Postfix) with ESMTP id CC1B51C396D for ; Sun, 3 Mar 2002 23:05:22 -0800 (PST) Received: by sitemail.everyone.net (Postfix, from userid 99) id AAEEE3ECC; Sun, 3 Mar 2002 23:05:22 -0800 (PST) Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Date: Sun, 3 Mar 2002 23:05:22 -0800 (PST) From: Mateo Anderson To: imc-snacc@imc.org Subject: Elipsis (Again) Reply-To: mateo@posta.star.si X-Originating-Ip: [212.18.49.80] Message-Id: <20020304070522.AAEEE3ECC@sitemail.everyone.net> Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hi I have a problem with a elipsis handler. I read the mail (and your reply) from Shashi Kumar. You provided one case, where elipsis can be used. My question is: Will you support a "general" elipsis in any of the next releases of the SNACC? If not, how can the SNACC be modified to accept elipsis, like an ASN.1 spec for MAP protocol of SS7 stack? Thank you and Regards, Mateo _____________________________________________________________ Brezplacen E-mail - http://email.star.si Brezplacen prostor 100 MB,lastna domena - http://www.slohosting.com _____________________________________________________________ You deserve a better email address! Get personalized email @yourname or @yourcompany from Everyone.net --> http://www.everyone.net?tag From owner-imc-snacc Thu Mar 7 02:40:10 2002 Received: by above.proper.com (8.11.6/8.11.3) id g27AeAX11894 for imc-snacc-bks; Thu, 7 Mar 2002 02:40:10 -0800 (PST) Received: from fw.datus.com (mail.datus.com [212.202.23.10]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g27Ae7811890 for ; Thu, 7 Mar 2002 02:40:07 -0800 (PST) Received: from ntmail1.datus.com (ntmail1.datus.com [10.52.5.20]) by fw.datus.com (Postfix on SuSE Linux 7.1 (i386)) with ESMTP id 6CEB036C19 for ; Thu, 7 Mar 2002 11:40:06 +0100 (CET) Received: by ntmail1.datus.com with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Mar 2002 11:40:06 +0100 Message-ID: <9282B275D3CBD511BD61009027F71230677F2E@ntmail1.datus.com> From: =?iso-8859-1?Q?=22Pr=F6pper=2C_Wolfgang=22?= To: "'imc-snacc@imc.org'" Subject: Prefix in function names Date: Thu, 7 Mar 2002 11:40:05 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-imc-snacc@mail.imc.org Precedence: bulk List-Archive: List-Unsubscribe: List-ID: Hello, is there a possibility to set a prefix to the function names ? I have duplicate function names, because I compile the same operations of several ISDN protocols. The function names have the same names. So I need to set a prefix which distinguish the protocols. Regards Wolfgang From owner-imc-snacc Thu Mar 7 07:40:53 2002 Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g27FerX01699 for imc-snacc-bks; Thu, 7 Mar 2002 07:40:53 -0800 (PST) Received: from wfhqex03.gfgsi.com (netva01.getronicsgov.com [67.105.229.98]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g27Fep801692 for ; Thu, 7 Mar 2002 07:40:51 -0800 (PST) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 Subject: RE: Prefix in function names Date: Thu, 7 Mar 2002 10:40:46 -0500 Message-I