Reorganize private crypto header files
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Fri, 27 Sep 2019 21:57:58 +0000 (23:57 +0200)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Fri, 27 Sep 2019 21:57:58 +0000 (23:57 +0200)
commit0c994d54afbb734ed744330d4b03a653a8477fe3
treef88964f69776b04bdbf8b9091459caa21f379d58
parent61df2198e20ca47a4e8418c5bc47a362fd491ea3
Reorganize private crypto header files

Currently, there are two different directories which contain internal
header files of libcrypto which are meant to be shared internally:

While header files in 'include/internal' are intended to be shared
between libcrypto and libssl, the files in 'crypto/include/internal'
are intended to be shared inside libcrypto only.

To make things complicated, the include search path is set up in such
a way that the directive #include "internal/file.h" could refer to
a file in either of these two directoroes. This makes it necessary
in some cases to add a '_int.h' suffix to some files to resolve this
ambiguity:

  #include "internal/file.h"      # located in 'include/internal'
  #include "internal/file_int.h"  # located in 'crypto/include/internal'

This commit moves the private crypto headers from

  'crypto/include/internal'  to  'include/crypto'

As a result, the include directives become unambiguous

  #include "internal/file.h"       # located in 'include/internal'
  #include "crypto/file.h"         # located in 'include/crypto'

hence the superfluous '_int.h' suffixes can be stripped.

The files 'store_int.h' and 'store.h' need to be treated specially;
they are joined into a single file.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9681)
277 files changed:
.gitignore
build.info
crypto/aria/aria.c
crypto/asn1/a_d2i_fp.c
crypto/asn1/a_mbstr.c
crypto/asn1/a_object.c
crypto/asn1/a_print.c
crypto/asn1/a_sign.c
crypto/asn1/a_strex.c
crypto/asn1/a_time.c
crypto/asn1/a_verify.c
crypto/asn1/ameth_lib.c
crypto/asn1/asn_mime.c
crypto/asn1/asn_moid.c
crypto/asn1/d2i_pr.c
crypto/asn1/d2i_pu.c
crypto/asn1/f_int.c
crypto/asn1/f_string.c
crypto/asn1/i2d_pr.c
crypto/asn1/p8_pkey.c
crypto/asn1/t_pkey.c
crypto/asn1/tasn_enc.c
crypto/asn1/tasn_prn.c
crypto/asn1/x_algor.c
crypto/asn1/x_sig.c
crypto/async/async.c
crypto/async/async_locl.h
crypto/bio/b_print.c
crypto/blake2/m_blake2b.c
crypto/blake2/m_blake2s.c
crypto/bn/bn_dh.c
crypto/bn/bn_lcl.h
crypto/bn/bn_print.c
crypto/bn/bn_srp.c
crypto/chacha/chacha_enc.c
crypto/cmac/cm_ameth.c
crypto/cmac/cm_pmeth.c
crypto/cms/cms_env.c
crypto/cms/cms_kari.c
crypto/cms/cms_pwri.c
crypto/cms/cms_sd.c
crypto/cms/cms_smime.c
crypto/comp/c_zlib.c
crypto/conf/conf_lib.c
crypto/cryptlib.c
crypto/ctype.c
crypto/dh/dh_ameth.c
crypto/dh/dh_key.c
crypto/dh/dh_pmeth.c
crypto/dh/dh_rfc5114.c
crypto/dh/dh_rfc7919.c
crypto/dllmain.c
crypto/dsa/dsa_ameth.c
crypto/dsa/dsa_ossl.c
crypto/dsa/dsa_pmeth.c
crypto/dso/dso_locl.h
crypto/ec/ec2_smpl.c
crypto/ec/ec_ameth.c
crypto/ec/ec_lcl.h
crypto/ec/ec_mult.c
crypto/ec/ec_pmeth.c
crypto/ec/ecdsa_ossl.c
crypto/ec/ecp_nistz256.c
crypto/ec/ecx_meth.c
crypto/engine/eng_devcrypto.c
crypto/engine/eng_int.h
crypto/engine/eng_openssl.c
crypto/engine/eng_rdrand.c
crypto/engine/tb_asnmth.c
crypto/err/err.c
crypto/err/err_all.c
crypto/err/openssl.ec
crypto/evp/bio_md.c
crypto/evp/bio_ok.c
crypto/evp/c_allc.c
crypto/evp/c_alld.c
crypto/evp/cmeth_lib.c
crypto/evp/digest.c
crypto/evp/e_aes.c
crypto/evp/e_aes_cbc_hmac_sha1.c
crypto/evp/e_aes_cbc_hmac_sha256.c
crypto/evp/e_aria.c
crypto/evp/e_bf.c
crypto/evp/e_camellia.c
crypto/evp/e_cast.c
crypto/evp/e_chacha20_poly1305.c
crypto/evp/e_des.c
crypto/evp/e_des3.c
crypto/evp/e_idea.c
crypto/evp/e_null.c
crypto/evp/e_rc2.c
crypto/evp/e_rc4.c
crypto/evp/e_rc4_hmac_md5.c
crypto/evp/e_rc5.c
crypto/evp/e_seed.c
crypto/evp/e_sm4.c
crypto/evp/e_xcbc_d.c
crypto/evp/encode.c
crypto/evp/evp_enc.c
crypto/evp/evp_lib.c
crypto/evp/evp_pkey.c
crypto/evp/m_md2.c
crypto/evp/m_md4.c
crypto/evp/m_md5.c
crypto/evp/m_md5_sha1.c
crypto/evp/m_mdc2.c
crypto/evp/m_null.c
crypto/evp/m_ripemd.c
crypto/evp/m_sha1.c
crypto/evp/m_sha3.c
crypto/evp/m_sigver.c
crypto/evp/m_wp.c
crypto/evp/names.c
crypto/evp/p_lib.c
crypto/evp/p_sign.c
crypto/evp/p_verify.c
crypto/evp/pmeth_fn.c
crypto/evp/pmeth_gn.c
crypto/evp/pmeth_lib.c
crypto/ex_data.c
crypto/hmac/hm_ameth.c
crypto/hmac/hm_pmeth.c
crypto/include/internal/__DECC_INCLUDE_EPILOGUE.H [deleted file]
crypto/include/internal/__DECC_INCLUDE_PROLOGUE.H [deleted file]
crypto/include/internal/aria.h [deleted file]
crypto/include/internal/asn1_int.h [deleted file]
crypto/include/internal/async.h [deleted file]
crypto/include/internal/bn_conf.h.in [deleted file]
crypto/include/internal/bn_dh.h [deleted file]
crypto/include/internal/bn_int.h [deleted file]
crypto/include/internal/bn_srp.h [deleted file]
crypto/include/internal/chacha.h [deleted file]
crypto/include/internal/cryptlib_int.h [deleted file]
crypto/include/internal/ctype.h [deleted file]
crypto/include/internal/dso_conf.h.in [deleted file]
crypto/include/internal/ec_int.h [deleted file]
crypto/include/internal/engine.h [deleted file]
crypto/include/internal/err_int.h [deleted file]
crypto/include/internal/evp_int.h [deleted file]
crypto/include/internal/lhash.h [deleted file]
crypto/include/internal/md32_common.h [deleted file]
crypto/include/internal/objects.h [deleted file]
crypto/include/internal/poly1305.h [deleted file]
crypto/include/internal/rand_int.h [deleted file]
crypto/include/internal/sha.h [deleted file]
crypto/include/internal/siphash.h [deleted file]
crypto/include/internal/sm2.h [deleted file]
crypto/include/internal/sm2err.h [deleted file]
crypto/include/internal/sm3.h [deleted file]
crypto/include/internal/sm4.h [deleted file]
crypto/include/internal/store.h [deleted file]
crypto/include/internal/store_int.h [deleted file]
crypto/include/internal/x509_int.h [deleted file]
crypto/init.c
crypto/kdf/hkdf.c
crypto/kdf/scrypt.c
crypto/kdf/tls1_prf.c
crypto/lhash/lhash.c
crypto/md4/md4_locl.h
crypto/md5/md5_locl.h
crypto/mem.c
crypto/objects/o_names.c
crypto/objects/obj_dat.c
crypto/objects/obj_lib.c
crypto/ocsp/ocsp_ht.c
crypto/pem/pem_lib.c
crypto/pem/pem_pkey.c
crypto/pkcs12/p12_p8e.c
crypto/pkcs7/pk7_lib.c
crypto/poly1305/poly1305.c
crypto/poly1305/poly1305_ameth.c
crypto/poly1305/poly1305_pmeth.c
crypto/ppccap.c
crypto/rand/drbg_lib.c
crypto/rand/rand_lib.c
crypto/rand/rand_unix.c
crypto/rand/rand_vms.c
crypto/rand/rand_win.c
crypto/ripemd/rmd_locl.h
crypto/rsa/rsa_ameth.c
crypto/rsa/rsa_crpt.c
crypto/rsa/rsa_lib.c
crypto/rsa/rsa_ossl.c
crypto/rsa/rsa_pmeth.c
crypto/rsa/rsa_sign.c
crypto/sha/sha256.c
crypto/sha/sha512.c
crypto/sha/sha_locl.h
crypto/siphash/siphash.c
crypto/siphash/siphash_ameth.c
crypto/siphash/siphash_pmeth.c
crypto/sm2/sm2_crypt.c
crypto/sm2/sm2_err.c
crypto/sm2/sm2_pmeth.c
crypto/sm2/sm2_sign.c
crypto/sm3/m_sm3.c
crypto/sm3/sm3_locl.h
crypto/sm4/sm4.c
crypto/srp/srp_lib.c
crypto/srp/srp_vfy.c
crypto/store/loader_file.c
crypto/store/store_init.c
crypto/store/store_lib.c
crypto/store/store_register.c
crypto/x509/by_dir.c
crypto/x509/t_x509.c
crypto/x509/x509_cmp.c
crypto/x509/x509_ext.c
crypto/x509/x509_lu.c
crypto/x509/x509_obj.c
crypto/x509/x509_r2x.c
crypto/x509/x509_req.c
crypto/x509/x509_set.c
crypto/x509/x509_trs.c
crypto/x509/x509_vfy.c
crypto/x509/x509_vpm.c
crypto/x509/x509cset.c
crypto/x509/x509name.c
crypto/x509/x509rset.c
crypto/x509/x_all.c
crypto/x509/x_crl.c
crypto/x509/x_name.c
crypto/x509/x_pubkey.c
crypto/x509/x_req.c
crypto/x509/x_x509.c
crypto/x509/x_x509a.c
crypto/x509v3/pcy_cache.c
crypto/x509v3/pcy_map.c
crypto/x509v3/v3_addr.c
crypto/x509v3/v3_asid.c
crypto/x509v3/v3_conf.c
crypto/x509v3/v3_crld.c
crypto/x509v3/v3_ncons.c
crypto/x509v3/v3_purp.c
crypto/x509v3/v3_skey.c
crypto/x509v3/v3_utl.c
include/crypto/__DECC_INCLUDE_EPILOGUE.H [new file with mode: 0644]
include/crypto/__DECC_INCLUDE_PROLOGUE.H [new file with mode: 0644]
include/crypto/aria.h [new file with mode: 0644]
include/crypto/asn1.h [new file with mode: 0644]
include/crypto/async.h [new file with mode: 0644]
include/crypto/bn.h [new file with mode: 0644]
include/crypto/bn_conf.h.in [new file with mode: 0644]
include/crypto/bn_dh.h [new file with mode: 0644]
include/crypto/bn_srp.h [new file with mode: 0644]
include/crypto/chacha.h [new file with mode: 0644]
include/crypto/cryptlib.h [new file with mode: 0644]
include/crypto/ctype.h [new file with mode: 0644]
include/crypto/dso_conf.h.in [new file with mode: 0644]
include/crypto/ec.h [new file with mode: 0644]
include/crypto/engine.h [new file with mode: 0644]
include/crypto/err.h [new file with mode: 0644]
include/crypto/evp.h [new file with mode: 0644]
include/crypto/lhash.h [new file with mode: 0644]
include/crypto/md32_common.h [new file with mode: 0644]
include/crypto/objects.h [new file with mode: 0644]
include/crypto/poly1305.h [new file with mode: 0644]
include/crypto/rand.h [new file with mode: 0644]
include/crypto/sha.h [new file with mode: 0644]
include/crypto/siphash.h [new file with mode: 0644]
include/crypto/sm2.h [new file with mode: 0644]
include/crypto/sm2err.h [new file with mode: 0644]
include/crypto/sm3.h [new file with mode: 0644]
include/crypto/sm4.h [new file with mode: 0644]
include/crypto/store.h [new file with mode: 0644]
include/crypto/x509.h [new file with mode: 0644]
test/asn1_internal_test.c
test/build.info
test/chacha_internal_test.c
test/ctype_internal_test.c
test/drbgtest.c
test/evp_extra_test.c
test/poly1305_internal_test.c
test/shlibloadtest.c
test/siphash_internal_test.c
test/sm2_internal_test.c
test/sm4_internal_test.c