<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Greetings,<div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class="">Has anybody decoded RFC2630 and would be inclined to give pointers on how to go about it? Yes, RFC2630 is obsoleted, but the input data use it.<br class=""><br class=""><div class="">erlang:system_info(system_version).<br class="">"Erlang/OTP 19 [erts-8.2] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]\n”</div><div class=""><br class=""></div>I create a Data.asn file with ASN contents from the end of<br class=""><a href="https://tools.ietf.org/html/rfc2630" class="">https://tools.ietf.org/html/rfc2630</a> <br class=""></div><div class=""><br class=""><br class=""></div>There are 2 IMPORT statements, like this:<br class=""><br class=""> -- Directory Information Framework (X.501)<br class="">        Name<br class="">           FROM InformationFramework { joint-iso-itu-t ds(5) modules(1)<br class="">                informationFramework(1) 3 }<br class=""><br class="">  -- Directory Authentication Framework (X.509)<br class="">        AlgorithmIdentifier, AttributeCertificate, Certificate,<br class="">        CertificateList, CertificateSerialNumber<br class="">           FROM AuthenticationFramework { joint-iso-itu-t ds(5)<br class="">                module(1) authenticationFramework(7) 3 } ;<br class=""><br class=""></div>I have located 2 links:<br class=""><a href="https://www.itu.int/ITU-T/formal-language/itu-t/x/x501/2012/InformationFramework.html" class="">https://www.itu.int/ITU-T/formal-language/itu-t/x/x501/2012/InformationFramework.html</a><br class=""><a href="https://www.itu.int/ITU-T/formal-language/itu-t/x/x509/2016/AuthenticationFramework.html" class="">https://www.itu.int/ITU-T/formal-language/itu-t/x/x509/2016/AuthenticationFramework.html</a><br class=""><br class=""></div>Each links content has been copied into an Erlang .asn file: AuthenticationFramework.asn InformationFramework.asn<br class=""><br class=""></div>When I compile (erlc Data.asn) I get:<br class="">Internal error: error:{badrecord,typedef}<br class="">[{asn1ct_check,check_type,3,[{file,"asn1ct_check.erl"},{line,2544}]},<br class=""> {asn1ct_check,check_type,3,[{file,"asn1ct_check.erl"},{line,2558}]},<br class=""> {asn1ct_check,check_setof,3,[{file,"asn1ct_check.erl"},{line,4637}]},<br class=""> {asn1ct_check,check_type,3,[{file,"asn1ct_check.erl"},{line,2772}]},<br class=""> {asn1ct_check,check_type,3,[{file,"asn1ct_check.erl"},{line,2558}]},<br class=""> {asn1ct_check,check_each_component2,4,<br class="">               [{file,"asn1ct_check.erl"},{line,4863}]},<br class=""> {asn1ct_check,check_sequence,3,[{file,"asn1ct_check.erl"},{line,4360}]},<br class=""> {asn1ct_check,check_type,3,[{file,"asn1ct_check.erl"},{line,2740}]}]<br class="">erlc: exit 1<br class=""><br class=""><br class=""></div>If I remove the IMPORT ... FROM AuthenticationFramework the crash goes away and I get undefined's for the no longer imported items, instead.<br class=""><br class=""><br class=""></div>Is the copy of contents from the two links, to Erlang asn files, too simplistic? The Erlang ASN example says to start with<br class="">Data DEFINITIONS AUTOMATIC TAGS ::=<br class="">BEGIN<br class=""><br class=""></div>whereas the links start with<br class="">AuthenticationFramework {joint-iso-itu-t ds(5) module(1) authenticationFramework(7) 8}<br class="">DEFINITIONS ::=<br class="">BEGIN<br class=""></div><br class=""></div></body></html>