1 # $Heimdal: Makefile.am 22445 2008-01-14 21:23:36Z lha $
4 include $(top_srcdir)/Makefile.am.common
8 lib_LTLIBRARIES = libasn1.la
9 libasn1_la_LDFLAGS = -version-info 8:0:0
16 $(gen_files_rfc2459:.x=.c) \
17 $(gen_files_cms:.x=.c) \
18 $(gen_files_k5:.x=.c) \
19 $(gen_files_pkinit:.x=.c) \
20 $(gen_files_pkcs8:.x=.c) \
21 $(gen_files_pkcs9:.x=.c) \
22 $(gen_files_pkcs12:.x=.c) \
23 $(gen_files_digest:.x=.c) \
24 $(gen_files_kx509:.x=.c) \
30 asn1_AD_IF_RELEVANT.x \
32 asn1_AD_MANDATORY_FOR_KDC.x \
33 asn1_AD_LoginAlias.x \
39 asn1_AUTHDATA_TYPE.x \
40 asn1_Authenticator.x \
41 asn1_AuthorizationData.x \
42 asn1_AuthorizationDataElement.x \
44 asn1_ChangePasswdDataMS.x \
49 asn1_ETYPE_INFO2_ENTRY.x \
50 asn1_ETYPE_INFO_ENTRY.x \
53 asn1_EncKDCRepPart.x \
54 asn1_EncKrbCredPart.x \
55 asn1_EncKrbPrivPart.x \
56 asn1_EncTGSRepPart.x \
57 asn1_EncTicketPart.x \
58 asn1_EncryptedData.x \
59 asn1_EncryptionKey.x \
62 asn1_HostAddresses.x \
71 asn1_KRB_SAFE_BODY.x \
72 asn1_KerberosString.x \
82 asn1_PA_ENC_SAM_RESPONSE_ENC.x \
83 asn1_PA_ENC_TS_ENC.x \
84 asn1_PA_PAC_REQUEST.x \
86 asn1_PA_SAM_CHALLENGE_2.x \
87 asn1_PA_SAM_CHALLENGE_2_BODY.x \
88 asn1_PA_SAM_REDIRECT.x \
89 asn1_PA_SAM_RESPONSE_2.x \
91 asn1_PA_ClientCanonicalized.x \
92 asn1_PA_ClientCanonicalizedNames.x \
93 asn1_PA_SvrReferralData.x \
94 asn1_PROV_SRV_LOCATION.x \
96 asn1_PrincipalName.x \
104 asn1_TransitedEncoding.x \
108 asn1_KRB5SignedPathData.x \
109 asn1_KRB5SignedPathPrincipals.x \
110 asn1_KRB5SignedPath.x
113 asn1_CMSAttributes.x \
114 asn1_CMSCBCParameter.x \
115 asn1_CMSEncryptedData.x \
116 asn1_CMSIdentifier.x \
117 asn1_CMSRC2CBCParameter.x \
119 asn1_CertificateList.x \
120 asn1_CertificateRevocationLists.x \
121 asn1_CertificateSet.x \
122 asn1_ContentEncryptionAlgorithmIdentifier.x \
125 asn1_DigestAlgorithmIdentifier.x \
126 asn1_DigestAlgorithmIdentifiers.x \
127 asn1_EncapsulatedContentInfo.x \
128 asn1_EncryptedContent.x \
129 asn1_EncryptedContentInfo.x \
130 asn1_EncryptedKey.x \
131 asn1_EnvelopedData.x \
132 asn1_IssuerAndSerialNumber.x \
133 asn1_KeyEncryptionAlgorithmIdentifier.x \
134 asn1_KeyTransRecipientInfo.x \
135 asn1_MessageDigest.x \
136 asn1_OriginatorInfo.x \
137 asn1_RecipientIdentifier.x \
138 asn1_RecipientInfo.x \
139 asn1_RecipientInfos.x \
140 asn1_SignatureAlgorithmIdentifier.x \
141 asn1_SignatureValue.x \
143 asn1_SignerIdentifier.x \
147 asn1_id_pkcs7_data.x \
148 asn1_id_pkcs7_digestedData.x \
149 asn1_id_pkcs7_encryptedData.x \
150 asn1_id_pkcs7_envelopedData.x \
151 asn1_id_pkcs7_signedAndEnvelopedData.x \
152 asn1_id_pkcs7_signedData.x \
153 asn1_UnprotectedAttributes.x
155 gen_files_rfc2459 = \
158 asn1_id_pkcs1_rsaEncryption.x \
159 asn1_id_pkcs1_md2WithRSAEncryption.x \
160 asn1_id_pkcs1_md5WithRSAEncryption.x \
161 asn1_id_pkcs1_sha1WithRSAEncryption.x \
162 asn1_id_pkcs1_sha256WithRSAEncryption.x \
163 asn1_id_pkcs1_sha384WithRSAEncryption.x \
164 asn1_id_pkcs1_sha512WithRSAEncryption.x \
165 asn1_id_heim_rsa_pkcs1_x509.x \
167 asn1_id_pkcs2_md2.x \
168 asn1_id_pkcs2_md4.x \
169 asn1_id_pkcs2_md5.x \
170 asn1_id_rsa_digestAlgorithm.x \
171 asn1_id_rsa_digest_md2.x \
172 asn1_id_rsa_digest_md4.x \
173 asn1_id_rsa_digest_md5.x \
175 asn1_id_pkcs3_rc2_cbc.x \
176 asn1_id_pkcs3_rc4.x \
177 asn1_id_pkcs3_des_ede3_cbc.x \
178 asn1_id_rsadsi_encalg.x \
179 asn1_id_rsadsi_rc2_cbc.x \
180 asn1_id_rsadsi_des_ede3_cbc.x \
181 asn1_id_secsig_sha_1.x \
182 asn1_id_nistAlgorithm.x \
183 asn1_id_nist_aes_algs.x \
184 asn1_id_aes_128_cbc.x \
185 asn1_id_aes_192_cbc.x \
186 asn1_id_aes_256_cbc.x \
187 asn1_id_nist_sha_algs.x \
192 asn1_id_dhpublicnumber.x \
195 asn1_id_dsa_with_sha1.x \
197 asn1_id_at_commonName.x \
198 asn1_id_at_surname.x \
199 asn1_id_at_serialNumber.x \
200 asn1_id_at_countryName.x \
201 asn1_id_at_localityName.x \
202 asn1_id_at_streetAddress.x \
203 asn1_id_at_stateOrProvinceName.x \
204 asn1_id_at_organizationName.x \
205 asn1_id_at_organizationalUnitName.x \
207 asn1_id_at_givenName.x \
208 asn1_id_at_initials.x \
209 asn1_id_at_generationQualifier.x \
210 asn1_id_at_pseudonym.x \
212 asn1_id_domainComponent.x \
214 asn1_id_uspkicommon_card_id.x \
215 asn1_id_uspkicommon_piv_interim.x \
217 asn1_id_netscape_cert_comment.x \
218 asn1_id_ms_cert_enroll_domaincontroller.x \
219 asn1_id_ms_client_authentication.x \
220 asn1_AlgorithmIdentifier.x \
221 asn1_AttributeType.x \
222 asn1_AttributeValue.x \
223 asn1_TeletexStringx.x \
224 asn1_DirectoryString.x \
226 asn1_AttributeTypeAndValue.x \
227 asn1_AuthorityInfoAccessSyntax.x \
228 asn1_AccessDescription.x \
229 asn1_RelativeDistinguishedName.x \
232 asn1_CertificateSerialNumber.x \
235 asn1_UniqueIdentifier.x \
236 asn1_SubjectPublicKeyInfo.x \
239 asn1_TBSCertificate.x \
241 asn1_Certificates.x \
242 asn1_ValidationParms.x \
243 asn1_DomainParameters.x \
247 asn1_GeneralNames.x \
248 asn1_id_x509_ce_keyUsage.x \
250 asn1_id_x509_ce_authorityKeyIdentifier.x \
251 asn1_KeyIdentifier.x \
252 asn1_AuthorityKeyIdentifier.x \
253 asn1_id_x509_ce_subjectKeyIdentifier.x \
254 asn1_SubjectKeyIdentifier.x \
255 asn1_id_x509_ce_basicConstraints.x \
256 asn1_BasicConstraints.x \
257 asn1_id_x509_ce_nameConstraints.x \
258 asn1_BaseDistance.x \
259 asn1_GeneralSubtree.x \
260 asn1_GeneralSubtrees.x \
261 asn1_NameConstraints.x \
262 asn1_id_x509_ce_privateKeyUsagePeriod.x \
263 asn1_id_x509_ce_certificatePolicies.x \
264 asn1_id_x509_ce_policyMappings.x \
265 asn1_id_x509_ce_subjectAltName.x \
266 asn1_id_x509_ce_issuerAltName.x \
267 asn1_id_x509_ce_subjectDirectoryAttributes.x \
268 asn1_id_x509_ce_policyConstraints.x \
269 asn1_id_x509_ce_extKeyUsage.x \
271 asn1_id_x509_ce_cRLDistributionPoints.x \
272 asn1_id_x509_ce_deltaCRLIndicator.x \
273 asn1_id_x509_ce_issuingDistributionPoint.x \
274 asn1_id_x509_ce_holdInstructionCode.x \
275 asn1_id_x509_ce_invalidityDate.x \
276 asn1_id_x509_ce_certificateIssuer.x \
277 asn1_id_x509_ce_inhibitAnyPolicy.x \
278 asn1_DistributionPointReasonFlags.x \
279 asn1_DistributionPointName.x \
280 asn1_DistributionPoint.x \
281 asn1_CRLDistributionPoints.x \
283 asn1_DSAPublicKey.x \
285 asn1_RSAPublicKey.x \
286 asn1_RSAPrivateKey.x \
288 asn1_TBSCRLCertList.x \
289 asn1_CRLCertificateList.x \
290 asn1_id_x509_ce_cRLNumber.x \
291 asn1_id_x509_ce_freshestCRL.x \
292 asn1_id_x509_ce_cRLReason.x \
294 asn1_PKIXXmppAddr.x \
297 asn1_id_pkix_on_dnsSRV.x \
298 asn1_id_pkix_on_xmppAddr.x \
300 asn1_id_pkix_kp_serverAuth.x \
301 asn1_id_pkix_kp_clientAuth.x \
302 asn1_id_pkix_kp_emailProtection.x \
303 asn1_id_pkix_kp_timeStamping.x \
304 asn1_id_pkix_kp_OCSPSigning.x \
306 asn1_id_pkix_pe_authorityInfoAccess.x \
307 asn1_id_pkix_pe_proxyCertInfo.x \
309 asn1_id_pkix_ppl_anyLanguage.x \
310 asn1_id_pkix_ppl_inheritAll.x \
311 asn1_id_pkix_ppl_independent.x \
317 asn1_id_pkauthdata.x \
318 asn1_id_pkdhkeydata.x \
319 asn1_id_pkrkeydata.x \
321 asn1_id_pkkdcekuoid.x \
322 asn1_id_pkinit_san.x \
323 asn1_id_pkinit_ms_eku.x \
324 asn1_id_pkinit_ms_san.x \
327 asn1_KDFAlgorithmId.x \
329 asn1_ExternalPrincipalIdentifier.x \
330 asn1_ExternalPrincipalIdentifiers.x \
331 asn1_PA_PK_AS_REQ.x \
332 asn1_PKAuthenticator.x \
334 asn1_TD_TRUSTED_CERTIFIERS.x \
335 asn1_TD_INVALID_CERTIFICATES.x \
336 asn1_KRB5PrincipalName.x \
337 asn1_AD_INITIAL_VERIFIED_CAS.x \
339 asn1_PA_PK_AS_REP.x \
340 asn1_KDCDHKeyInfo.x \
341 asn1_ReplyKeyPack.x \
342 asn1_TD_DH_PARAMETERS.x \
343 asn1_PKAuthenticator_Win2k.x \
344 asn1_AuthPack_Win2k.x \
345 asn1_TrustedCA_Win2k.x \
346 asn1_PA_PK_AS_REQ_Win2k.x \
347 asn1_PA_PK_AS_REP_Win2k.x \
348 asn1_KDCDHKeyInfo_Win2k.x \
349 asn1_ReplyKeyPack_Win2k.x \
350 asn1_PkinitSuppPubInfo.x
354 asn1_id_pkcs_12PbeIds.x \
355 asn1_id_pbeWithSHAAnd128BitRC4.x \
356 asn1_id_pbeWithSHAAnd40BitRC4.x \
357 asn1_id_pbeWithSHAAnd3_KeyTripleDES_CBC.x \
358 asn1_id_pbeWithSHAAnd2_KeyTripleDES_CBC.x \
359 asn1_id_pbeWithSHAAnd128BitRC2_CBC.x \
360 asn1_id_pbewithSHAAnd40BitRC2_CBC.x \
361 asn1_id_pkcs12_bagtypes.x \
362 asn1_id_pkcs12_keyBag.x \
363 asn1_id_pkcs12_pkcs8ShroudedKeyBag.x \
364 asn1_id_pkcs12_certBag.x \
365 asn1_id_pkcs12_crlBag.x \
366 asn1_id_pkcs12_secretBag.x \
367 asn1_id_pkcs12_safeContentsBag.x \
368 asn1_PKCS12_MacData.x \
370 asn1_PKCS12_AuthenticatedSafe.x \
371 asn1_PKCS12_CertBag.x \
372 asn1_PKCS12_Attribute.x \
373 asn1_PKCS12_Attributes.x \
374 asn1_PKCS12_SafeBag.x \
375 asn1_PKCS12_SafeContents.x \
376 asn1_PKCS12_OctetString.x \
377 asn1_PKCS12_PBEParams.x
380 asn1_PKCS8PrivateKeyAlgorithmIdentifier.x \
381 asn1_PKCS8PrivateKey.x \
382 asn1_PKCS8PrivateKeyInfo.x \
383 asn1_PKCS8Attributes.x \
384 asn1_PKCS8EncryptedPrivateKeyInfo.x \
385 asn1_PKCS8EncryptedData.x
389 asn1_id_pkcs9_contentType.x \
390 asn1_id_pkcs9_emailAddress.x \
391 asn1_id_pkcs9_messageDigest.x \
392 asn1_id_pkcs9_signingTime.x \
393 asn1_id_pkcs9_countersignature.x \
394 asn1_id_pkcs_9_at_friendlyName.x \
395 asn1_id_pkcs_9_at_localKeyId.x \
396 asn1_id_pkcs_9_at_certTypes.x \
397 asn1_id_pkcs_9_at_certTypes_x509.x \
398 asn1_PKCS9_BMPString.x \
399 asn1_PKCS9_friendlyName.x
403 asn1_TESTAllocInner.x \
404 asn1_TESTCONTAINING.x \
405 asn1_TESTCONTAININGENCODEDBY.x \
406 asn1_TESTCONTAININGENCODEDBY2.x \
410 asn1_TESTENCODEDBY.x \
411 asn1_TESTImplicit.x \
412 asn1_TESTImplicit2.x \
414 asn1_TESTInteger2.x \
415 asn1_TESTInteger3.x \
416 asn1_TESTLargeTag.x \
418 asn1_TESTUSERCONSTRAINED.x \
421 asn1_TESTSeqSizeOf1.x \
422 asn1_TESTSeqSizeOf2.x \
423 asn1_TESTSeqSizeOf3.x \
424 asn1_TESTSeqSizeOf4.x
429 asn1_DigestInitReply.x \
432 asn1_DigestRepInner.x \
433 asn1_DigestReqInner.x \
434 asn1_DigestRequest.x \
435 asn1_DigestResponse.x \
438 asn1_NTLMInitReply.x \
443 asn1_Kx509Response.x \
446 noinst_PROGRAMS = asn1_compile asn1_print asn1_gen
448 TESTS = check-der check-gen check-timegm
449 check_PROGRAMS = $(TESTS)
451 asn1_gen_SOURCES = asn1_gen.c
452 asn1_print_SOURCES = asn1_print.c
453 check_der_SOURCES = check-der.c check-common.c check-common.h
455 dist_check_gen_SOURCES = check-gen.c check-common.c check-common.h
456 nodist_check_gen_SOURCES = $(gen_files_test:.x=.c)
458 asn1_compile_SOURCES = \
480 dist_libasn1_la_SOURCES = \
496 nodist_libasn1_la_SOURCES = $(BUILT_SOURCES)
498 asn1_compile_LDADD = \
499 $(LIB_roken) $(LEXLIB)
505 check_gen_LDADD = $(check_der_LDADD)
506 asn1_print_LDADD = $(check_der_LDADD)
507 asn1_gen_LDADD = $(check_der_LDADD)
508 check_timegm_LDADD = $(check_der_LDADD)
512 $(gen_files_rfc2459) \
515 $(gen_files_pkinit) \
518 $(gen_files_pkcs12) \
519 $(gen_files_digest) \
521 $(gen_files_test) $(nodist_check_gen_SOURCES) \
522 rfc2459_asn1_files rfc2459_asn1.h \
523 cms_asn1_files cms_asn1.h \
524 krb5_asn1_files krb5_asn1.h \
525 pkinit_asn1_files pkinit_asn1.h \
526 pkcs8_asn1_files pkcs8_asn1.h \
527 pkcs9_asn1_files pkcs9_asn1.h \
528 pkcs12_asn1_files pkcs12_asn1.h \
529 digest_asn1_files digest_asn1.h \
530 kx509_asn1_files kx509_asn1.h \
531 test_asn1_files test_asn1.h
533 dist_include_HEADERS = der.h heim_asn1.h der-protos.h
535 nodist_include_HEADERS = asn1_err.h
536 nodist_include_HEADERS += krb5_asn1.h
537 nodist_include_HEADERS += pkinit_asn1.h
538 nodist_include_HEADERS += cms_asn1.h
539 nodist_include_HEADERS += rfc2459_asn1.h
540 nodist_include_HEADERS += pkcs8_asn1.h
541 nodist_include_HEADERS += pkcs9_asn1.h
542 nodist_include_HEADERS += pkcs12_asn1.h
543 nodist_include_HEADERS += digest_asn1.h
544 nodist_include_HEADERS += kx509_asn1.h
546 $(asn1_compile_OBJECTS): parse.h parse.c $(srcdir)/der-protos.h
547 $(libasn1_la_OBJECTS): krb5_asn1.h asn1_err.h $(srcdir)/der-protos.h
548 $(check_gen_OBJECTS): test_asn1.h
549 $(asn1_print_OBJECTS): krb5_asn1.h
553 $(gen_files_k5) krb5_asn1.h: krb5_asn1_files
554 $(gen_files_pkinit) pkinit_asn1.h: pkinit_asn1_files
555 $(gen_files_pkcs8) pkcs8_asn1.h: pkcs8_asn1_files
556 $(gen_files_pkcs9) pkcs9_asn1.h: pkcs9_asn1_files
557 $(gen_files_pkcs12) pkcs12_asn1.h: pkcs12_asn1_files
558 $(gen_files_digest) digest_asn1.h: digest_asn1_files
559 $(gen_files_kx509) kx509_asn1.h: kx509_asn1_files
560 $(gen_files_rfc2459) rfc2459_asn1.h: rfc2459_asn1_files
561 $(gen_files_cms) cms_asn1.h: cms_asn1_files
562 $(gen_files_test) test_asn1.h: test_asn1_files
564 rfc2459_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/rfc2459.asn1
565 ./asn1_compile$(EXEEXT) --preserve-binary=TBSCertificate --preserve-binary=TBSCRLCertList --preserve-binary=Name --sequence=GeneralNames --sequence=Extensions --sequence=CRLDistributionPoints $(srcdir)/rfc2459.asn1 rfc2459_asn1 || (rm -f rfc2459_asn1_files ; exit 1)
567 cms_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/CMS.asn1
568 ./asn1_compile$(EXEEXT) $(srcdir)/CMS.asn1 cms_asn1 || (rm -f cms_asn1_files ; exit 1)
570 krb5_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/k5.asn1
571 ./asn1_compile$(EXEEXT) --encode-rfc1510-bit-string --sequence=KRB5SignedPathPrincipals --sequence=AuthorizationData --sequence=METHOD-DATA --sequence=ETYPE-INFO --sequence=ETYPE-INFO2 $(srcdir)/k5.asn1 krb5_asn1 || (rm -f krb5_asn1_files ; exit 1)
573 pkinit_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/pkinit.asn1
574 ./asn1_compile$(EXEEXT) $(srcdir)/pkinit.asn1 pkinit_asn1 || (rm -f pkinit_asn1_files ; exit 1)
576 pkcs8_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/pkcs8.asn1
577 ./asn1_compile$(EXEEXT) $(srcdir)/pkcs8.asn1 pkcs8_asn1 || (rm -f pkcs8_asn1_files ; exit 1)
579 pkcs9_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/pkcs9.asn1
580 ./asn1_compile$(EXEEXT) $(srcdir)/pkcs9.asn1 pkcs9_asn1 || (rm -f pkcs9_asn1_files ; exit 1)
582 pkcs12_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/pkcs12.asn1
583 ./asn1_compile$(EXEEXT) $(srcdir)/pkcs12.asn1 pkcs12_asn1 || (rm -f pkcs12_asn1_files ; exit 1)
585 digest_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/digest.asn1
586 ./asn1_compile$(EXEEXT) $(srcdir)/digest.asn1 digest_asn1 || (rm -f digest_asn1_files ; exit 1)
588 kx509_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/kx509.asn1
589 ./asn1_compile$(EXEEXT) $(srcdir)/kx509.asn1 kx509_asn1 || (rm -f kx509_asn1_files ; exit 1)
591 test_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/test.asn1
592 ./asn1_compile$(EXEEXT) --sequence=TESTSeqOf $(srcdir)/test.asn1 test_asn1 || (rm -f test_asn1_files ; exit 1)
610 $(srcdir)/der-protos.h:
611 cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -o der-protos.h $(dist_libasn1_la_SOURCES) || rm -f der-protos.h