Browse Source

Fix safestack issues in x509.h

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12781)
master
Matt Caswell 2 years ago
parent
commit
e6623cfbff
106 changed files with 30 additions and 193 deletions
  1. +1
    -0
      .gitignore
  2. +0
    -2
      apps/ca.c
  3. +0
    -2
      apps/cmp.c
  4. +0
    -1
      apps/cmp_mock_srv.c
  5. +0
    -1
      apps/cms.c
  6. +0
    -3
      apps/crl2p7.c
  7. +0
    -4
      apps/lib/apps.c
  8. +0
    -3
      apps/lib/s_cb.c
  9. +0
    -2
      apps/nseq.c
  10. +0
    -1
      apps/ocsp.c
  11. +0
    -2
      apps/pkcs12.c
  12. +0
    -3
      apps/pkcs7.c
  13. +0
    -1
      apps/rehash.c
  14. +0
    -3
      apps/s_client.c
  15. +0
    -3
      apps/s_server.c
  16. +0
    -1
      apps/smime.c
  17. +0
    -2
      apps/verify.c
  18. +0
    -1
      apps/x509.c
  19. +2
    -0
      build.info
  20. +0
    -2
      crypto/cmp/cmp_client.c
  21. +0
    -2
      crypto/cmp/cmp_ctx.c
  22. +0
    -2
      crypto/cmp/cmp_msg.c
  23. +0
    -2
      crypto/cmp/cmp_protect.c
  24. +0
    -1
      crypto/cmp/cmp_server.c
  25. +0
    -1
      crypto/cmp/cmp_util.c
  26. +0
    -2
      crypto/cmp/cmp_vfy.c
  27. +0
    -1
      crypto/cms/cms_env.c
  28. +0
    -1
      crypto/cms/cms_ess.c
  29. +0
    -2
      crypto/cms/cms_lib.c
  30. +0
    -2
      crypto/cms/cms_sd.c
  31. +0
    -2
      crypto/cms/cms_smime.c
  32. +0
    -1
      crypto/crmf/crmf_lib.c
  33. +0
    -1
      crypto/ess/ess_lib.c
  34. +0
    -1
      crypto/evp/p_lib.c
  35. +0
    -1
      crypto/ocsp/ocsp_cl.c
  36. +0
    -1
      crypto/ocsp/ocsp_prn.c
  37. +0
    -1
      crypto/ocsp/ocsp_srv.c
  38. +0
    -1
      crypto/ocsp/ocsp_vfy.c
  39. +0
    -2
      crypto/pem/pem_info.c
  40. +0
    -1
      crypto/pkcs12/p12_crt.c
  41. +0
    -1
      crypto/pkcs12/p12_kiss.c
  42. +0
    -1
      crypto/pkcs7/pk7_doit.c
  43. +0
    -2
      crypto/pkcs7/pk7_lib.c
  44. +0
    -2
      crypto/pkcs7/pk7_smime.c
  45. +0
    -2
      crypto/store/store_result.c
  46. +0
    -2
      crypto/ts/ts_conf.c
  47. +0
    -2
      crypto/ts/ts_req_utils.c
  48. +0
    -2
      crypto/ts/ts_rsp_sign.c
  49. +0
    -2
      crypto/ts/ts_rsp_utils.c
  50. +0
    -1
      crypto/ts/ts_rsp_verify.c
  51. +0
    -2
      crypto/ts/ts_verify_ctx.c
  52. +0
    -2
      crypto/x509/by_file.c
  53. +0
    -1
      crypto/x509/pcy_tree.c
  54. +0
    -2
      crypto/x509/t_crl.c
  55. +0
    -2
      crypto/x509/t_req.c
  56. +0
    -1
      crypto/x509/t_x509.c
  57. +0
    -1
      crypto/x509/v3_addr.c
  58. +0
    -1
      crypto/x509/v3_asid.c
  59. +0
    -1
      crypto/x509/v3_conf.c
  60. +0
    -1
      crypto/x509/v3_crld.c
  61. +0
    -1
      crypto/x509/v3_lib.c
  62. +0
    -1
      crypto/x509/v3_prn.c
  63. +0
    -1
      crypto/x509/v3_utl.c
  64. +0
    -1
      crypto/x509/x509_att.c
  65. +0
    -2
      crypto/x509/x509_cmp.c
  66. +0
    -2
      crypto/x509/x509_lu.c
  67. +0
    -2
      crypto/x509/x509_obj.c
  68. +0
    -2
      crypto/x509/x509_r2x.c
  69. +0
    -1
      crypto/x509/x509_trs.c
  70. +0
    -2
      crypto/x509/x509_v3.c
  71. +0
    -4
      crypto/x509/x509_vfy.c
  72. +0
    -2
      crypto/x509/x509cset.c
  73. +0
    -2
      crypto/x509/x509name.c
  74. +0
    -2
      crypto/x509/x_crl.c
  75. +0
    -1
      crypto/x509/x_name.c
  76. +0
    -2
      crypto/x509/x_req.c
  77. +0
    -3
      engines/e_capi.c
  78. +0
    -1
      engines/e_loader_attic.c
  79. +27
    -9
      include/openssl/x509.h.in
  80. +0
    -1
      providers/implementations/storemgmt/file_store.c
  81. +0
    -3
      ssl/s3_lib.c
  82. +0
    -3
      ssl/ssl_cert.c
  83. +0
    -2
      ssl/ssl_conf.c
  84. +0
    -3
      ssl/ssl_lib.c
  85. +0
    -2
      ssl/ssl_rsa.c
  86. +0
    -2
      ssl/ssl_sess.c
  87. +0
    -2
      ssl/statem/extensions.c
  88. +0
    -1
      ssl/statem/extensions_srvr.c
  89. +0
    -2
      ssl/statem/statem_clnt.c
  90. +0
    -3
      ssl/statem/statem_lib.c
  91. +0
    -2
      ssl/statem/statem_srvr.c
  92. +0
    -3
      ssl/t1_lib.c
  93. +0
    -1
      test/cmp_client_test.c
  94. +0
    -2
      test/cmp_ctx_test.c
  95. +0
    -2
      test/cmp_protect_test.c
  96. +0
    -2
      test/cmp_testlib.c
  97. +0
    -2
      test/cmsapitest.c
  98. +0
    -3
      test/crltest.c
  99. +0
    -2
      test/danetest.c
  100. +0
    -2
      test/handshake_helper.c

+ 1
- 0
.gitignore View File

@ -26,6 +26,7 @@
/include/openssl/opensslv.h
/include/openssl/fipskey.h
/include/openssl/ssl.h
/include/openssl/x509.h
# Auto generated doc files
doc/man1/openssl-*.pod


+ 0
- 2
apps/ca.c View File

@ -34,8 +34,6 @@
#include "apps.h"
#include "progs.h"
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_EXTENSION)
DEFINE_STACK_OF(CONF_VALUE)
DEFINE_STACK_OF_STRING()


+ 0
- 2
apps/cmp.c View File

@ -42,8 +42,6 @@
#include <openssl/objects.h>
#include <openssl/x509.h>
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_EXTENSION)
DEFINE_STACK_OF(OSSL_CMP_ITAV)
static char *opt_config = NULL;


+ 0
- 1
apps/cmp_mock_srv.c View File

@ -15,7 +15,6 @@
#include <openssl/err.h>
#include <openssl/cmperr.h>
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(OSSL_CMP_ITAV)
DEFINE_STACK_OF(ASN1_UTF8STRING)


+ 0
- 1
apps/cms.c View File

@ -23,7 +23,6 @@
# include <openssl/x509v3.h>
# include <openssl/cms.h>
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(CMS_SignerInfo)
DEFINE_STACK_OF(GENERAL_NAME)
DEFINE_STACK_OF(GENERAL_NAMES)


+ 0
- 3
apps/crl2p7.c View File

@ -19,9 +19,6 @@
#include <openssl/pem.h>
#include <openssl/objects.h>
DEFINE_STACK_OF(X509_CRL)
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_INFO)
DEFINE_STACK_OF_STRING()
static int add_certs_from_file(STACK_OF(X509) *stack, char *certfile);


+ 0
- 4
apps/lib/apps.c View File

@ -63,10 +63,6 @@ static int WIN32_rename(const char *from, const char *to);
DEFINE_STACK_OF(CONF)
DEFINE_STACK_OF(CONF_VALUE)
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_CRL)
DEFINE_STACK_OF(X509_INFO)
DEFINE_STACK_OF(X509_EXTENSION)
DEFINE_STACK_OF(X509_POLICY_NODE)
DEFINE_STACK_OF(GENERAL_NAME)
DEFINE_STACK_OF(DIST_POINT)


+ 0
- 3
apps/lib/s_cb.c View File

@ -26,9 +26,6 @@
#define COOKIE_SECRET_LENGTH 16
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_CRL)
DEFINE_STACK_OF(X509_NAME)
DEFINE_STACK_OF_STRING()
VERIFY_CB_ARGS verify_args = { -1, 0, X509_V_OK, 0 };


+ 0
- 2
apps/nseq.c View File

@ -14,8 +14,6 @@
#include <openssl/pem.h>
#include <openssl/err.h>
DEFINE_STACK_OF(X509)
typedef enum OPTION_choice {
OPT_ERR = -1, OPT_EOF = 0, OPT_HELP,
OPT_TOSEQ, OPT_IN, OPT_OUT,


+ 0
- 1
apps/ocsp.c View File

@ -35,7 +35,6 @@
DEFINE_STACK_OF(OCSP_CERTID)
DEFINE_STACK_OF(CONF_VALUE)
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF_STRING()
#if defined(__TANDEM)


+ 0
- 2
apps/pkcs12.c View File

@ -20,10 +20,8 @@
#include <openssl/pkcs12.h>
#include <openssl/provider.h>
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(PKCS7)
DEFINE_STACK_OF(PKCS12_SAFEBAG)
DEFINE_STACK_OF(X509_ATTRIBUTE)
DEFINE_STACK_OF_STRING()
#define NOKEYS 0x1


+ 0
- 3
apps/pkcs7.c View File

@ -20,9 +20,6 @@
#include <openssl/pkcs7.h>
#include <openssl/pem.h>
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_CRL)
typedef enum OPTION_choice {
OPT_ERR = -1, OPT_EOF = 0, OPT_HELP,
OPT_INFORM, OPT_OUTFORM, OPT_IN, OPT_OUT, OPT_NOOUT,


+ 0
- 1
apps/rehash.c View File

@ -42,7 +42,6 @@
# include <openssl/pem.h>
# include <openssl/x509.h>
DEFINE_STACK_OF(X509_INFO)
DEFINE_STACK_OF_STRING()
# ifndef PATH_MAX


+ 0
- 3
apps/s_client.c View File

@ -59,9 +59,6 @@ typedef unsigned int u_int;
# endif
#endif
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_CRL)
DEFINE_STACK_OF(X509_NAME)
DEFINE_STACK_OF(SCT)
DEFINE_STACK_OF_STRING()


+ 0
- 3
apps/s_server.c View File

@ -60,9 +60,6 @@ typedef unsigned int u_int;
#endif
#include "internal/sockets.h"
DEFINE_STACK_OF(X509_EXTENSION)
DEFINE_STACK_OF(X509_CRL)
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF_STRING()
static int not_resumable_sess_cb(SSL *s, int is_forward_secure);


+ 0
- 1
apps/smime.c View File

@ -19,7 +19,6 @@
#include <openssl/x509_vfy.h>
#include <openssl/x509v3.h>
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF_STRING()
static int save_certs(char *signerfile, STACK_OF(X509) *signers);


+ 0
- 2
apps/verify.c View File

@ -18,8 +18,6 @@
#include <openssl/x509v3.h>
#include <openssl/pem.h>
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_CRL)
DEFINE_STACK_OF_STRING()
static int cb(int ok, X509_STORE_CTX *ctx);


+ 0
- 1
apps/x509.c View File

@ -29,7 +29,6 @@
#endif
DEFINE_STACK_OF(ASN1_OBJECT)
DEFINE_STACK_OF(X509_EXTENSION)
DEFINE_STACK_OF_STRING()
#undef POSTFIX


+ 2
- 0
build.info View File

@ -16,6 +16,7 @@ DEPEND[libssl]=libcrypto
DEPEND[]=include/openssl/configuration.h include/openssl/opensslv.h \
include/openssl/fipskey.h \
include/openssl/ssl.h \
include/openssl/x509.h \
include/crypto/bn_conf.h include/crypto/dso_conf.h \
doc/man7/openssl_user_macros.pod
@ -23,6 +24,7 @@ GENERATE[include/openssl/configuration.h]=include/openssl/configuration.h.in
GENERATE[include/openssl/opensslv.h]=include/openssl/opensslv.h.in
GENERATE[include/openssl/fipskey.h]=include/openssl/fipskey.h.in
GENERATE[include/openssl/ssl.h]=include/openssl/ssl.h.in
GENERATE[include/openssl/x509.h]=include/openssl/x509.h.in
GENERATE[include/crypto/bn_conf.h]=include/crypto/bn_conf.h.in
GENERATE[include/crypto/dso_conf.h]=include/crypto/dso_conf.h.in
GENERATE[doc/man7/openssl_user_macros.pod]=doc/man7/openssl_user_macros.pod.in


+ 0
- 2
crypto/cmp/cmp_client.c View File

@ -22,8 +22,6 @@
#include "openssl/cmp_util.h"
DEFINE_STACK_OF(ASN1_UTF8STRING)
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_CRL)
DEFINE_STACK_OF(OSSL_CMP_CERTRESPONSE)
DEFINE_STACK_OF(OSSL_CMP_PKISI)
DEFINE_STACK_OF(OSSL_CRMF_CERTID)


+ 0
- 2
crypto/cmp/cmp_ctx.c View File

@ -21,8 +21,6 @@
#include <openssl/crmf.h>
#include <openssl/err.h>
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_EXTENSION)
DEFINE_STACK_OF(POLICYINFO)
DEFINE_STACK_OF(ASN1_UTF8STRING)
DEFINE_STACK_OF(GENERAL_NAME)


+ 0
- 2
crypto/cmp/cmp_msg.c View File

@ -24,8 +24,6 @@
DEFINE_STACK_OF(OSSL_CMP_CERTSTATUS)
DEFINE_STACK_OF(OSSL_CMP_ITAV)
DEFINE_STACK_OF(GENERAL_NAME)
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_EXTENSION)
DEFINE_STACK_OF(OSSL_CMP_PKISI)
DEFINE_STACK_OF(OSSL_CRMF_MSG)
DEFINE_STACK_OF(OSSL_CMP_CERTRESPONSE)


+ 0
- 2
crypto/cmp/cmp_protect.c View File

@ -18,8 +18,6 @@
#include <openssl/err.h>
#include <openssl/x509.h>
DEFINE_STACK_OF(X509)
/*
* This function is also used by the internal verify_PBMAC() in cmp_vfy.c.
*


+ 0
- 1
crypto/cmp/cmp_server.c View File

@ -20,7 +20,6 @@
#include <openssl/err.h>
DEFINE_STACK_OF(OSSL_CRMF_MSG)
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(OSSL_CMP_ITAV)
DEFINE_STACK_OF(OSSL_CMP_CERTSTATUS)


+ 0
- 1
crypto/cmp/cmp_util.c View File

@ -16,7 +16,6 @@
#include <openssl/err.h> /* should be implied by cmperr.h */
#include <openssl/x509v3.h>
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_OBJECT)
DEFINE_STACK_OF(ASN1_UTF8STRING)


+ 0
- 2
crypto/cmp/cmp_vfy.c View File

@ -22,8 +22,6 @@
#include <openssl/x509.h>
#include "crypto/x509.h"
DEFINE_STACK_OF(X509)
/* Verify a message protected by signature according to RFC section 5.1.3.3 */
static int verify_signature(const OSSL_CMP_CTX *cmp_ctx,
const OSSL_CMP_MSG *msg, X509 *cert)


+ 0
- 1
crypto/cms/cms_env.c View File

@ -21,7 +21,6 @@
DEFINE_STACK_OF(CMS_RecipientInfo)
DEFINE_STACK_OF(CMS_RevocationInfoChoice)
DEFINE_STACK_OF(X509_ATTRIBUTE)
/* CMS EnvelopedData Utilities */
static void cms_env_set_version(CMS_EnvelopedData *env);


+ 0
- 1
crypto/cms/cms_ess.c View File

@ -24,7 +24,6 @@ DEFINE_STACK_OF(GENERAL_NAMES)
DEFINE_STACK_OF(CMS_SignerInfo)
DEFINE_STACK_OF(ESS_CERT_ID)
DEFINE_STACK_OF(ESS_CERT_ID_V2)
DEFINE_STACK_OF(X509)
IMPLEMENT_ASN1_FUNCTIONS(CMS_ReceiptRequest)


+ 0
- 2
crypto/cms/cms_lib.c View File

@ -22,8 +22,6 @@ static STACK_OF(CMS_CertificateChoices)
**cms_get0_certificate_choices(CMS_ContentInfo *cms);
DEFINE_STACK_OF(CMS_RevocationInfoChoice)
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_CRL)
IMPLEMENT_ASN1_PRINT_FUNCTION(CMS_ContentInfo)


+ 0
- 2
crypto/cms/cms_sd.c View File

@ -24,9 +24,7 @@
DEFINE_STACK_OF(CMS_RevocationInfoChoice)
DEFINE_STACK_OF(CMS_SignerInfo)
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_ALGOR)
DEFINE_STACK_OF(X509_ATTRIBUTE)
/* CMS SignedData Utilities */


+ 0
- 2
crypto/cms/cms_smime.c View File

@ -17,8 +17,6 @@
#include "crypto/asn1.h"
DEFINE_STACK_OF(CMS_SignerInfo)
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_CRL)
DEFINE_STACK_OF(CMS_RecipientEncryptedKey)
DEFINE_STACK_OF(CMS_RecipientInfo)


+ 0
- 1
crypto/crmf/crmf_lib.c View File

@ -36,7 +36,6 @@
#include <openssl/err.h>
#include <openssl/evp.h>
DEFINE_STACK_OF(X509_EXTENSION)
DEFINE_STACK_OF(OSSL_CRMF_MSG)
/*-


+ 0
- 1
crypto/ess/ess_lib.c View File

@ -17,7 +17,6 @@
DEFINE_STACK_OF(ESS_CERT_ID)
DEFINE_STACK_OF(ESS_CERT_ID_V2)
DEFINE_STACK_OF(GENERAL_NAME)
DEFINE_STACK_OF(X509)
static ESS_CERT_ID *ESS_CERT_ID_new_init(X509 *cert, int issuer_needed);
static ESS_CERT_ID_V2 *ESS_CERT_ID_V2_new_init(const EVP_MD *hash_alg,


+ 0
- 1
crypto/evp/p_lib.c View File

@ -38,7 +38,6 @@
#include "internal/evp.h"
#include "internal/provider.h"
#include "evp_local.h"
DEFINE_STACK_OF(X509_ATTRIBUTE)
#include "crypto/ec.h"


+ 0
- 1
crypto/ocsp/ocsp_cl.c View File

@ -18,7 +18,6 @@
#include <openssl/ocsp.h>
#include "ocsp_local.h"
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(OCSP_ONEREQ)
DEFINE_STACK_OF(OCSP_SINGLERESP)


+ 0
- 1
crypto/ocsp/ocsp_prn.c View File

@ -15,7 +15,6 @@
#include <openssl/pem.h>
DEFINE_STACK_OF(OCSP_ONEREQ)
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(OCSP_SINGLERESP)
static int ocsp_certid_print(BIO *bp, OCSP_CERTID *a, int indent)


+ 0
- 1
crypto/ocsp/ocsp_srv.c View File

@ -17,7 +17,6 @@
#include "ocsp_local.h"
DEFINE_STACK_OF(OCSP_ONEREQ)
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(OCSP_SINGLERESP)
/*


+ 0
- 1
crypto/ocsp/ocsp_vfy.c View File

@ -13,7 +13,6 @@
#include <string.h>
DEFINE_STACK_OF(OCSP_ONEREQ)
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(OCSP_SINGLERESP)
static int ocsp_find_signer(X509 **psigner, OCSP_BASICRESP *bs,


+ 0
- 2
crypto/pem/pem_info.c View File

@ -23,8 +23,6 @@
#include <openssl/rsa.h>
#include <openssl/dsa.h>
DEFINE_STACK_OF(X509_INFO)
#ifndef OPENSSL_NO_STDIO
STACK_OF(X509_INFO)
*PEM_X509_INFO_read_with_libctx(FILE *fp, STACK_OF(X509_INFO) *sk,


+ 0
- 1
crypto/pkcs12/p12_crt.c View File

@ -12,7 +12,6 @@
#include <openssl/pkcs12.h>
#include "p12_local.h"
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(PKCS7)
DEFINE_STACK_OF(PKCS12_SAFEBAG)


+ 0
- 1
crypto/pkcs12/p12_kiss.c View File

@ -12,7 +12,6 @@
#include <openssl/pkcs12.h>
#include "crypto/x509.h" /* for X509_add_cert_new() */
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(PKCS7)
DEFINE_STACK_OF(PKCS12_SAFEBAG)


+ 0
- 1
crypto/pkcs7/pk7_doit.c View File

@ -17,7 +17,6 @@
#include "pk7_local.h"
DEFINE_STACK_OF(X509_ALGOR)
DEFINE_STACK_OF(X509_ATTRIBUTE)
DEFINE_STACK_OF(PKCS7_RECIP_INFO)
DEFINE_STACK_OF(PKCS7_SIGNER_INFO)


+ 0
- 2
crypto/pkcs7/pk7_lib.c View File

@ -16,8 +16,6 @@
#include "crypto/x509.h" /* for sk_X509_add1_cert() */
#include "pk7_local.h"
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_CRL)
DEFINE_STACK_OF(X509_ALGOR)
DEFINE_STACK_OF(PKCS7_RECIP_INFO)
DEFINE_STACK_OF(PKCS7_SIGNER_INFO)


+ 0
- 2
crypto/pkcs7/pk7_smime.c View File

@ -17,8 +17,6 @@
#define BUFFERSIZE 4096
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_ATTRIBUTE)
DEFINE_STACK_OF(X509_ALGOR)
DEFINE_STACK_OF(PKCS7_SIGNER_INFO)


+ 0
- 2
crypto/store/store_result.c View File

@ -59,8 +59,6 @@
* reference.
*/
DEFINE_STACK_OF(X509)
struct extracted_param_data_st {
int object_type;
const char *data_type;


+ 0
- 2
crypto/ts/ts_conf.c View File

@ -18,8 +18,6 @@
#include <openssl/engine.h>
#include <openssl/ts.h>
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_INFO)
DEFINE_STACK_OF(CONF_VALUE)
/* Macro definitions for the configuration file. */


+ 0
- 2
crypto/ts/ts_req_utils.c View File

@ -14,8 +14,6 @@
#include <openssl/ts.h>
#include "ts_local.h"
DEFINE_STACK_OF(X509_EXTENSION)
int TS_REQ_set_version(TS_REQ *a, long version)
{
return ASN1_INTEGER_set(a->version, version);


+ 0
- 2
crypto/ts/ts_rsp_sign.c View File

@ -17,8 +17,6 @@
#include "ts_local.h"
#include "crypto/ess.h"
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_EXTENSION)
DEFINE_STACK_OF(ASN1_UTF8STRING)
DEFINE_STACK_OF(ASN1_OBJECT)
DEFINE_STACK_OF_CONST(EVP_MD)


+ 0
- 2
crypto/ts/ts_rsp_utils.c View File

@ -14,8 +14,6 @@
#include <openssl/pkcs7.h>
#include "ts_local.h"
DEFINE_STACK_OF(X509_EXTENSION)
int TS_RESP_set_status_info(TS_RESP *a, TS_STATUS_INFO *status_info)
{
TS_STATUS_INFO *new_status_info;


+ 0
- 1
crypto/ts/ts_rsp_verify.c View File

@ -16,7 +16,6 @@
#include "crypto/ess.h"
DEFINE_STACK_OF(PKCS7_SIGNER_INFO)
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(ESS_CERT_ID)
DEFINE_STACK_OF(ESS_CERT_ID_V2)
DEFINE_STACK_OF(ASN1_UTF8STRING)


+ 0
- 2
crypto/ts/ts_verify_ctx.c View File

@ -12,8 +12,6 @@
#include <openssl/ts.h>
#include "ts_local.h"
DEFINE_STACK_OF(X509)
TS_VERIFY_CTX *TS_VERIFY_CTX_new(void)
{
TS_VERIFY_CTX *ctx = OPENSSL_zalloc(sizeof(*ctx));


+ 0
- 2
crypto/x509/by_file.c View File

@ -17,8 +17,6 @@
#include <openssl/pem.h>
#include "x509_local.h"
DEFINE_STACK_OF(X509_INFO)
static int by_file_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc,
long argl, char **ret);
static int by_file_ctrl_with_libctx(X509_LOOKUP *ctx, int cmd,


+ 0
- 1
crypto/x509/pcy_tree.c View File

@ -15,7 +15,6 @@
#include "pcy_local.h"
DEFINE_STACK_OF(ASN1_OBJECT)
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_POLICY_NODE)
static void expected_print(BIO *channel,


+ 0
- 2
crypto/x509/t_crl.c View File

@ -15,8 +15,6 @@
#include <openssl/x509.h>
#include <openssl/x509v3.h>
DEFINE_STACK_OF(X509_REVOKED)
#ifndef OPENSSL_NO_STDIO
int X509_CRL_print_fp(FILE *fp, X509_CRL *x)
{


+ 0
- 2
crypto/x509/t_req.c View File

@ -17,8 +17,6 @@
#include <openssl/rsa.h>
#include <openssl/dsa.h>
DEFINE_STACK_OF(X509_EXTENSION)
#ifndef OPENSSL_NO_STDIO
int X509_REQ_print_fp(FILE *fp, X509_REQ *x)
{


+ 0
- 1
crypto/x509/t_x509.c View File

@ -17,7 +17,6 @@
#include "crypto/asn1.h"
#include "crypto/x509.h"
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(ASN1_OBJECT)
#ifndef OPENSSL_NO_STDIO


+ 0
- 1
crypto/x509/v3_addr.c View File

@ -29,7 +29,6 @@
DEFINE_STACK_OF(IPAddressOrRange)
DEFINE_STACK_OF(IPAddressFamily)
DEFINE_STACK_OF(CONF_VALUE)
DEFINE_STACK_OF(X509)
/*
* OpenSSL ASN.1 template translation of RFC 3779 2.2.3.


+ 0
- 1
crypto/x509/v3_asid.c View File

@ -58,7 +58,6 @@ IMPLEMENT_ASN1_FUNCTIONS(ASIdentifiers)
DEFINE_STACK_OF(ASIdOrRange)
DEFINE_STACK_OF(CONF_VALUE)
DEFINE_STACK_OF(X509)
/*
* i2r method for an ASIdentifierChoice.


+ 0
- 1
crypto/x509/v3_conf.c View File

@ -18,7 +18,6 @@
#include <openssl/x509v3.h>
DEFINE_STACK_OF(CONF_VALUE)
DEFINE_STACK_OF(X509_EXTENSION)
static int v3_check_critical(const char **value);
static int v3_check_generic(const char **value);


+ 0
- 1
crypto/x509/v3_crld.c View File

@ -21,7 +21,6 @@
DEFINE_STACK_OF(CONF_VALUE)
DEFINE_STACK_OF(GENERAL_NAME)
DEFINE_STACK_OF(DIST_POINT)
DEFINE_STACK_OF(X509_NAME_ENTRY)
static void *v2i_crld(const X509V3_EXT_METHOD *method,
X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *nval);


+ 0
- 1
crypto/x509/v3_lib.c View File

@ -17,7 +17,6 @@
#include "ext_dat.h"
DEFINE_STACK_OF(X509V3_EXT_METHOD)
DEFINE_STACK_OF(X509_EXTENSION)
static STACK_OF(X509V3_EXT_METHOD) *ext_list = NULL;


+ 0
- 1
crypto/x509/v3_prn.c View File

@ -15,7 +15,6 @@
#include <openssl/x509v3.h>
DEFINE_STACK_OF(CONF_VALUE)
DEFINE_STACK_OF(X509_EXTENSION)
/* Extension printing routines */


+ 0
- 1
crypto/x509/v3_utl.c View File

@ -24,7 +24,6 @@
DEFINE_STACK_OF(CONF_VALUE)
DEFINE_STACK_OF(GENERAL_NAME)
DEFINE_STACK_OF(ACCESS_DESCRIPTION)
DEFINE_STACK_OF(X509_EXTENSION)
DEFINE_STACK_OF_STRING()
static char *strip_spaces(char *name);


+ 0
- 1
crypto/x509/x509_att.c View File

@ -17,7 +17,6 @@
#include <openssl/x509v3.h>
#include "x509_local.h"
DEFINE_STACK_OF(X509_ATTRIBUTE)
DEFINE_STACK_OF(ASN1_TYPE)
int X509at_get_attr_count(const STACK_OF(X509_ATTRIBUTE) *x)


+ 0
- 2
crypto/x509/x509_cmp.c View File

@ -16,8 +16,6 @@
#include <openssl/core_names.h>
#include "crypto/x509.h"
DEFINE_STACK_OF(X509)
int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b)
{
int i;


+ 0
- 2
crypto/x509/x509_lu.c View File

@ -17,8 +17,6 @@
DEFINE_STACK_OF(X509_LOOKUP)
DEFINE_STACK_OF(X509_OBJECT)
DEFINE_STACK_OF(X509_CRL)
DEFINE_STACK_OF(X509)
X509_LOOKUP *X509_LOOKUP_new(X509_LOOKUP_METHOD *method)
{


+ 0
- 2
crypto/x509/x509_obj.c View File

@ -15,8 +15,6 @@
#include "crypto/x509.h"
#include "crypto/ctype.h"
DEFINE_STACK_OF(X509_NAME_ENTRY)
/*
* Limit to ensure we don't overflow: much greater than
* anything encountered in practice.


+ 0
- 2
crypto/x509/x509_r2x.c View File

@ -17,8 +17,6 @@
#include <openssl/objects.h>
#include <openssl/buffer.h>
DEFINE_STACK_OF(X509_ATTRIBUTE)
X509 *X509_REQ_to_X509(X509_REQ *r, int days, EVP_PKEY *pkey)
{
X509 *ret = NULL;


+ 0
- 1
crypto/x509/x509_trs.c View File

@ -12,7 +12,6 @@
#include <openssl/x509v3.h>
#include "crypto/x509.h"
DEFINE_STACK_OF(X509_TRUST)
DEFINE_STACK_OF(ASN1_OBJECT)
static int tr_cmp(const X509_TRUST *const *a, const X509_TRUST *const *b);


+ 0
- 2
crypto/x509/x509_v3.c View File

@ -17,8 +17,6 @@
#include <openssl/x509v3.h>
#include "x509_local.h"
DEFINE_STACK_OF(X509_EXTENSION)
int X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x)
{
if (x == NULL)


+ 0
- 4
crypto/x509/x509_vfy.c View File

@ -25,11 +25,7 @@
#include "crypto/x509.h"
#include "x509_local.h"
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_EXTENSION)
DEFINE_STACK_OF(X509_REVOKED)
DEFINE_STACK_OF(GENERAL_NAME)
DEFINE_STACK_OF(X509_CRL)
DEFINE_STACK_OF(DIST_POINT)
DEFINE_STACK_OF_STRING()


+ 0
- 2
crypto/x509/x509cset.c View File

@ -16,8 +16,6 @@
#include <openssl/x509.h>
#include "crypto/x509.h"
DEFINE_STACK_OF(X509_REVOKED)
int X509_CRL_set_version(X509_CRL *x, long version)
{
if (x == NULL)


+ 0
- 2
crypto/x509/x509name.c View File

@ -16,8 +16,6 @@
#include <openssl/x509.h>
#include "crypto/x509.h"
DEFINE_STACK_OF(X509_NAME_ENTRY)
int X509_NAME_get_text_by_NID(const X509_NAME *name, int nid,
char *buf, int len)
{


+ 0
- 2
crypto/x509/x_crl.c View File

@ -17,8 +17,6 @@
DEFINE_STACK_OF(GENERAL_NAME)
DEFINE_STACK_OF(GENERAL_NAMES)
DEFINE_STACK_OF(X509_REVOKED)
DEFINE_STACK_OF(X509_EXTENSION)
static int X509_REVOKED_cmp(const X509_REVOKED *const *a,
const X509_REVOKED *const *b);


+ 0
- 1
crypto/x509/x_name.c View File

@ -16,7 +16,6 @@
#include "crypto/asn1.h"
#include "x509_local.h"
DEFINE_STACK_OF(X509_NAME_ENTRY)
DEFINE_STACK_OF(ASN1_VALUE)
/*


+ 0
- 2
crypto/x509/x_req.c View File

@ -13,8 +13,6 @@
#include <openssl/x509.h>
#include "crypto/x509.h"
DEFINE_STACK_OF(X509_ATTRIBUTE)
/*-
* X509_REQ_INFO is handled in an unusual way to get round
* invalid encodings. Some broken certificate requests don't


+ 0
- 3
engines/e_capi.c View File

@ -34,9 +34,6 @@
# include <openssl/rsa.h>
# include <openssl/dsa.h>
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_NAME)
/*
* This module uses several "new" interfaces, among which is
* CertGetCertificateContextProperty. CERT_KEY_PROV_INFO_PROP_ID is


+ 0
- 1
engines/e_loader_attic.c View File

@ -37,7 +37,6 @@
#include "e_loader_attic_err.c"
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(OSSL_STORE_INFO)
#ifdef _WIN32


include/openssl/x509.h → include/openssl/x509.h.in View File


+ 0
- 1
providers/implementations/storemgmt/file_store.c View File

@ -33,7 +33,6 @@
#include "prov/providercommonerr.h"
#include "file_store_local.h"
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(OSSL_STORE_INFO)
#ifdef _WIN32


+ 0
- 3
ssl/s3_lib.c View File

@ -20,9 +20,6 @@
#include <openssl/x509v3.h>
#include "internal/cryptlib.h"
DEFINE_STACK_OF(X509_NAME)
DEFINE_STACK_OF(X509)
#define TLS13_NUM_CIPHERS OSSL_NELEM(tls13_ciphers)
#define SSL3_NUM_CIPHERS OSSL_NELEM(ssl3_ciphers)
#define SSL3_NUM_SCSVS OSSL_NELEM(ssl3_scsvs)


+ 0
- 3
ssl/ssl_cert.c View File

@ -25,9 +25,6 @@
#include "ssl_cert_table.h"
#include "internal/thread_once.h"
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_NAME)
static int ssl_security_default_callback(const SSL *s, const SSL_CTX *ctx,
int op, int bits, int nid, void *other,
void *ex);


+ 0
- 2
ssl/ssl_conf.c View File

@ -14,8 +14,6 @@
#include <openssl/dh.h>
#include "internal/nelem.h"
DEFINE_STACK_OF(X509_NAME)
/*
* structure holding name tables. This is used for permitted elements in lists
* such as TLSv1.


+ 0
- 3
ssl/ssl_lib.c View File

@ -28,9 +28,6 @@
#include "internal/refcount.h"
#include "internal/ktls.h"
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_NAME)
DEFINE_STACK_OF(X509_EXTENSION)
DEFINE_STACK_OF(OCSP_RESPID)
DEFINE_STACK_OF(SCT)


+ 0
- 2
ssl/ssl_rsa.c View File

@ -17,8 +17,6 @@
#include <openssl/x509v3.h>
#include <openssl/pem.h>
DEFINE_STACK_OF(X509)
static int ssl_set_cert(CERT *c, X509 *x509);
static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey);


+ 0
- 2
ssl/ssl_sess.c View File

@ -19,8 +19,6 @@
#include "ssl_local.h"
#include "statem/statem_local.h"
DEFINE_STACK_OF(X509)
static void SSL_SESSION_list_remove(SSL_CTX *ctx, SSL_SESSION *s);
static void SSL_SESSION_list_add(SSL_CTX *ctx, SSL_SESSION *s);
static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck);


+ 0
- 2
ssl/statem/extensions.c View File

@ -14,8 +14,6 @@
#include "statem_local.h"
#include "internal/cryptlib.h"
DEFINE_STACK_OF(X509_NAME)
static int final_renegotiate(SSL *s, unsigned int context, int sent);
static int init_server_name(SSL *s, unsigned int context);
static int final_server_name(SSL *s, unsigned int context, int sent);


+ 0
- 1
ssl/statem/extensions_srvr.c View File

@ -13,7 +13,6 @@
#include "internal/cryptlib.h"
DEFINE_STACK_OF(OCSP_RESPID)
DEFINE_STACK_OF(X509_EXTENSION)
#define COOKIE_STATE_FORMAT_VERSION 0


+ 0
- 2
ssl/statem/statem_clnt.c View File

@ -28,8 +28,6 @@
#include <openssl/trace.h>
#include <internal/cryptlib.h>
DEFINE_STACK_OF(X509)
static MSG_PROCESS_RETURN tls_process_as_hello_retry_request(SSL *s, PACKET *pkt);
static MSG_PROCESS_RETURN tls_process_encrypted_extensions(SSL *s, PACKET *pkt);


+ 0
- 3
ssl/statem/statem_lib.c View File

@ -21,9 +21,6 @@
#include <openssl/x509.h>
#include <openssl/trace.h>
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_NAME)
/*
* Map error codes to TLS/SSL alart types.
*/


+ 0
- 2
ssl/statem/statem_srvr.c View File

@ -26,8 +26,6 @@
#include <openssl/core_names.h>
#include <openssl/asn1t.h>
DEFINE_STACK_OF(X509)
#define TICKET_NONCE_SIZE 8
typedef struct {


+ 0
- 3
ssl/t1_lib.c View File

@ -28,9 +28,6 @@
#include "ssl_local.h"
#include <openssl/ct.h>
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_NAME)
static const SIGALG_LOOKUP *find_sig_alg(SSL *s, X509 *x, EVP_PKEY *pkey);
static int tls12_sigalg_allowed(const SSL *s, int op, const SIGALG_LOOKUP *lu);


+ 0
- 1
test/cmp_client_test.c View File

@ -15,7 +15,6 @@
#ifndef NDEBUG /* tests need mock server, which is available only if !NDEBUG */
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(OSSL_CMP_ITAV)
static const char *server_key_f;


+ 0
- 2
test/cmp_ctx_test.c View File

@ -13,9 +13,7 @@
#include <openssl/x509_vfy.h>
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(ASN1_UTF8STRING)
DEFINE_STACK_OF(X509_EXTENSION)
DEFINE_STACK_OF(OSSL_CMP_ITAV)
DEFINE_STACK_OF(POLICYINFO)


+ 0
- 2
test/cmp_protect_test.c View File

@ -11,8 +11,6 @@
#include "cmp_testlib.h"
DEFINE_STACK_OF(X509)
static const char *ir_protected_f;
static const char *ir_unprotected_f;
static const char *ip_PBM_f;


+ 0
- 2
test/cmp_testlib.c View File

@ -12,8 +12,6 @@
#include "cmp_testlib.h"
#include <openssl/rsa.h> /* needed in case config no-deprecated */
DEFINE_STACK_OF(X509)
EVP_PKEY *load_pem_key(const char *file, OPENSSL_CTX *libctx)
{
EVP_PKEY *key = NULL;


+ 0
- 2
test/cmsapitest.c View File

@ -16,8 +16,6 @@
#include "testutil.h"
DEFINE_STACK_OF(X509)
static X509 *cert = NULL;
static EVP_PKEY *privkey = NULL;


+ 0
- 3
test/crltest.c View File

@ -17,9 +17,6 @@
#include "testutil.h"
DEFINE_STACK_OF(X509)
DEFINE_STACK_OF(X509_CRL)
#define PARAM_TIME 1474934400 /* Sep 27th, 2016 */
static const char *kCRLTestRoot[] = {


+ 0
- 2
test/danetest.c View File

@ -26,8 +26,6 @@
#include "internal/nelem.h"
DEFINE_STACK_OF(X509)
#define _UC(c) ((unsigned char)(c))
static const char *basedomain;


+ 0
- 2
test/handshake_helper.c View File

@ -26,8 +26,6 @@
#include <netinet/sctp.h>
#endif
DEFINE_STACK_OF(X509_NAME)
HANDSHAKE_RESULT *HANDSHAKE_RESULT_new(void)
{
HANDSHAKE_RESULT *ret;


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save