In OpenSSL builds, declare STACK for datatypes ...
authorRich Salz <rsalz@akamai.com>
Thu, 19 Dec 2019 22:30:24 +0000 (17:30 -0500)
committerTomas Mraz <tmraz@fedoraproject.org>
Fri, 24 Apr 2020 14:42:46 +0000 (16:42 +0200)
commit852c2ed260860b6b85c84f9fe96fb4d23d49c9f2
treed8104686e0a02217c13f51e5d10d7434fa13e3dc
parent4692e98bdbaebb6f078e89a75c54395839e68b24
In OpenSSL builds, declare STACK for datatypes ...

... and only *define* them in the source files that need them.
Use DEFINE_OR_DECLARE which is set appropriately for internal builds
and not non-deprecated builds.

Deprecate stack-of-block

Better documentation

Move some ASN1 struct typedefs to types.h

Update ParseC to handle this.  Most of all, ParseC needed to be more
consistent.  The handlers are "recursive", in so far that they are called
again and again until they terminate, which depends entirely on what the
"massager" returns.  There's a comment at the beginning of ParseC that
explains how that works. {Richard Levtte}

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10669)
227 files changed:
CHANGES.md
Configurations/00-base-templates.conf
apps/asn1pars.c
apps/ca.c
apps/ciphers.c
apps/cmp_mock_srv.c
apps/cms.c
apps/crl2p7.c
apps/dgst.c
apps/engine.c
apps/fipsinstall.c
apps/kdf.c
apps/lib/apps.c
apps/lib/names.c
apps/lib/s_cb.c
apps/list.c
apps/mac.c
apps/nseq.c
apps/ocsp.c
apps/pkcs12.c
apps/pkcs7.c
apps/pkeyutl.c
apps/provider.c
apps/rehash.c
apps/req.c
apps/s_client.c
apps/s_server.c
apps/smime.c
apps/verify.c
apps/x509.c
crypto/asn1/a_strnid.c
crypto/asn1/asn1_gen.c
crypto/asn1/asn1_lib.c
crypto/asn1/asn_mime.c
crypto/asn1/asn_moid.c
crypto/asn1/asn_mstbl.c
crypto/asn1/d2i_pr.c
crypto/asn1/tasn_dec.c
crypto/asn1/tasn_fre.c
crypto/asn1/tasn_new.c
crypto/cmp/cmp_asn.c
crypto/cmp/cmp_client.c
crypto/cmp/cmp_ctx.c
crypto/cmp/cmp_hdr.c
crypto/cmp/cmp_http.c
crypto/cmp/cmp_msg.c
crypto/cmp/cmp_protect.c
crypto/cmp/cmp_server.c
crypto/cmp/cmp_status.c
crypto/cmp/cmp_util.c
crypto/cmp/cmp_vfy.c
crypto/cms/cms_env.c
crypto/cms/cms_ess.c
crypto/cms/cms_kari.c
crypto/cms/cms_lib.c
crypto/cms/cms_pwri.c
crypto/cms/cms_sd.c
crypto/cms/cms_smime.c
crypto/conf/conf_api.c
crypto/conf/conf_def.c
crypto/conf/conf_mod.c
crypto/conf/conf_ssl.c
crypto/crmf/crmf_lib.c
crypto/ct/ct_log.c
crypto/ct/ct_oct.c
crypto/ct/ct_prn.c
crypto/ct/ct_sct.c
crypto/ct/ct_x509v3.c
crypto/dso/dso_dlfcn.c
crypto/dso/dso_lib.c
crypto/dso/dso_win32.c
crypto/engine/eng_cnf.c
crypto/engine/eng_dyn.c
crypto/ess/ess_lib.c
crypto/evp/evp_cnf.c
crypto/evp/p_lib.c
crypto/ex_data.c
crypto/http/http_client.c
crypto/ocsp/ocsp_cl.c
crypto/ocsp/ocsp_ext.c
crypto/ocsp/ocsp_prn.c
crypto/ocsp/ocsp_srv.c
crypto/ocsp/ocsp_vfy.c
crypto/ocsp/v3_ocsp.c
crypto/pem/pem_info.c
crypto/pkcs12/p12_crt.c
crypto/pkcs12/p12_kiss.c
crypto/pkcs12/p12_npas.c
crypto/pkcs7/pk7_attr.c
crypto/pkcs7/pk7_doit.c
crypto/pkcs7/pk7_lib.c
crypto/pkcs7/pk7_smime.c
crypto/provider_conf.c
crypto/srp/srp_vfy.c
crypto/store/loader_file.c
crypto/ts/ts_conf.c
crypto/ts/ts_req_utils.c
crypto/ts/ts_rsp_print.c
crypto/ts/ts_rsp_sign.c
crypto/ts/ts_rsp_utils.c
crypto/ts/ts_rsp_verify.c
crypto/ts/ts_verify_ctx.c
crypto/ui/ui_lib.c
crypto/x509/by_dir.c
crypto/x509/by_file.c
crypto/x509/by_store.c
crypto/x509/pcy_cache.c
crypto/x509/pcy_data.c
crypto/x509/pcy_lib.c
crypto/x509/pcy_map.c
crypto/x509/pcy_node.c
crypto/x509/pcy_tree.c
crypto/x509/t_crl.c
crypto/x509/t_req.c
crypto/x509/t_x509.c
crypto/x509/v3_addr.c
crypto/x509/v3_admis.c
crypto/x509/v3_akey.c
crypto/x509/v3_alt.c
crypto/x509/v3_asid.c
crypto/x509/v3_bcons.c
crypto/x509/v3_bitst.c
crypto/x509/v3_conf.c
crypto/x509/v3_cpols.c
crypto/x509/v3_crld.c
crypto/x509/v3_extku.c
crypto/x509/v3_info.c
crypto/x509/v3_ist.c
crypto/x509/v3_lib.c
crypto/x509/v3_ncons.c
crypto/x509/v3_pci.c
crypto/x509/v3_pcons.c
crypto/x509/v3_pmaps.c
crypto/x509/v3_prn.c
crypto/x509/v3_purp.c
crypto/x509/v3_sxnet.c
crypto/x509/v3_tlsf.c
crypto/x509/v3_utl.c
crypto/x509/x509_att.c
crypto/x509/x509_cmp.c
crypto/x509/x509_lu.c
crypto/x509/x509_obj.c
crypto/x509/x509_r2x.c
crypto/x509/x509_trs.c
crypto/x509/x509_v3.c
crypto/x509/x509_vfy.c
crypto/x509/x509_vpm.c
crypto/x509/x509cset.c
crypto/x509/x509name.c
crypto/x509/x_attrib.c
crypto/x509/x_crl.c
crypto/x509/x_name.c
crypto/x509/x_req.c
crypto/x509/x_x509.c
crypto/x509/x_x509a.c
doc/man3/DEFINE_STACK_OF.pod
engines/e_capi.c
fuzz/client.c
fuzz/cmp.c
fuzz/server.c
include/openssl/asn1.h
include/openssl/asn1t.h
include/openssl/bio.h
include/openssl/cmp.h
include/openssl/cms.h
include/openssl/conf.h
include/openssl/crmf.h
include/openssl/crypto.h
include/openssl/ct.h
include/openssl/ess.h
include/openssl/ocsp.h
include/openssl/pkcs12.h
include/openssl/pkcs7.h
include/openssl/safestack.h
include/openssl/srp.h
include/openssl/ssl.h
include/openssl/ts.h
include/openssl/types.h
include/openssl/ui.h
include/openssl/x509.h
include/openssl/x509_vfy.h
include/openssl/x509v3.h
ssl/d1_srtp.c
ssl/s3_lib.c
ssl/ssl_cert.c
ssl/ssl_ciph.c
ssl/ssl_conf.c
ssl/ssl_lib.c
ssl/ssl_rsa.c
ssl/ssl_sess.c
ssl/statem/extensions.c
ssl/statem/extensions_clnt.c
ssl/statem/extensions_srvr.c
ssl/statem/statem_clnt.c
ssl/statem/statem_lib.c
ssl/statem/statem_srvr.c
ssl/t1_lib.c
test/cipherbytes_test.c
test/cipherlist_test.c
test/ciphername_test.c
test/cmp_client_test.c
test/cmp_ctx_test.c
test/cmp_hdr_test.c
test/cmp_msg_test.c
test/cmp_protect_test.c
test/cmp_status_test.c
test/cmp_testlib.c
test/cmp_vfy_test.c
test/cmsapitest.c
test/confdump.c
test/crltest.c
test/ct_test.c
test/danetest.c
test/dtls_mtu_test.c
test/evp_test.c
test/handshake_helper.c
test/http_test.c
test/ocspapitest.c
test/ssl_test.c
test/ssl_test_ctx.c
test/sslapitest.c
test/sslcorrupttest.c
test/ssltest_old.c
test/v3nametest.c
test/verify_extra_test.c
util/missingmacro.txt
util/perl/OpenSSL/ParseC.pm