heimdal_build: Use lib/asn1/rfc2459.opt rather than hard-coded
authorAndrew Bartlett <abartlet@samba.org>
Tue, 15 Jun 2021 03:24:17 +0000 (15:24 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 15 Jun 2021 23:25:27 +0000 (23:25 +0000)
Based on patch by Stefan Metzmacher in his Heimdal upgrade branch

lib/asn1/rfc2459.opt imported from
lorikeet-heimdal-abartlet/lorikeet-heimdal-201107241840-plus-recent-changes
which is the closest tree I could find, and matches the options being
removed from the wscript_build file.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Jun 15 23:25:27 UTC 2021 on sn-devel-184

source4/heimdal/lib/asn1/rfc2459.opt [new file with mode: 0644]
source4/heimdal_build/wscript_build

diff --git a/source4/heimdal/lib/asn1/rfc2459.opt b/source4/heimdal/lib/asn1/rfc2459.opt
new file mode 100644 (file)
index 0000000..d3afc67
--- /dev/null
@@ -0,0 +1,6 @@
+--preserve-binary=TBSCertificate
+--preserve-binary=TBSCRLCertList
+--preserve-binary=Name
+--sequence=GeneralNames
+--sequence=Extensions
+--sequence=CRLDistributionPoints
index 8e94fc154ab66be035d945f8c5d23e7c32cba8d3..28a1fb5240df35fb830044f3bc8a8b13b231d866 100644 (file)
@@ -704,7 +704,7 @@ if not bld.CONFIG_SET("USING_SYSTEM_ASN1"):
 
     HEIMDAL_ASN1('HEIMDAL_RFC2459_ASN1',
         'lib/asn1/rfc2459.asn1',
-        options='--preserve-binary=TBSCertificate --preserve-binary=TBSCRLCertList --preserve-binary=Name --sequence=GeneralNames --sequence=Extensions --sequence=CRLDistributionPoints',
+        option_file='lib/asn1/rfc2459.opt',
         directory='lib/asn1'
         )