More linker bloat reorganisation:
authorDr. Stephen Henson <steve@openssl.org>
Fri, 27 Jul 2001 02:22:42 +0000 (02:22 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 27 Jul 2001 02:22:42 +0000 (02:22 +0000)
commit1241126adf6c451d6a7115ffdc68fa64c4d55593
tree07dde53487b16f716a07f12342af4f386e75be8a
parent19da1300536be2ffddd5edef039e34b09a0c8440
More linker bloat reorganisation:

Split private key PEM and normal PEM handling. Private key
handling needs to link in stuff like PKCS#8.

Relocate the ASN1 *_dup() functions, to the relevant ASN1
modules using new macro IMPLEMENT_ASN1_DUP_FUNCTION. Previously
these were all in crypto/x509/x_all.c along with every ASN1
BIO/fp function which linked in *every* ASN1 function if
a single dup was used.

Move the authority key id ASN1 structure to a separate file.
This is used in the X509 routines and its previous location
linked in all the v3 extension code.

Also move ASN1_tag2bit to avoid linking in a_bytes.c which
is now largely obsolete.

So far under Linux stripped binary with single PEM_read_X509
is now 238K compared to 380K before these changes.
24 files changed:
crypto/asn1/a_bytes.c
crypto/asn1/asn1t.h
crypto/asn1/tasn_dec.c
crypto/asn1/x_algor.c
crypto/asn1/x_attrib.c
crypto/asn1/x_crl.c
crypto/asn1/x_exten.c
crypto/asn1/x_name.c
crypto/asn1/x_req.c
crypto/asn1/x_x509.c
crypto/pem/Makefile.ssl
crypto/pem/pem.h
crypto/pem/pem_all.c
crypto/pem/pem_lib.c
crypto/pem/pem_oth.c [new file with mode: 0644]
crypto/pem/pem_pk8.c [new file with mode: 0644]
crypto/pem/pem_pkey.c [new file with mode: 0644]
crypto/pkcs12/p12_p8e.c
crypto/pkcs7/pk7_asn1.c
crypto/rsa/rsa_asn1.c
crypto/x509/x_all.c
crypto/x509v3/Makefile.ssl
crypto/x509v3/v3_akey.c
crypto/x509v3/v3_akeya.c [new file with mode: 0644]