mirror of
https://github.com/openssl/openssl.git
synced 2025-03-19 19:50:42 +08:00
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)
This commit is contained in:
parent
6ac1cd10ba
commit
e6623cfbff
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
@ -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 };
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -42,7 +42,6 @@
|
||||
# include <openssl/pem.h>
|
||||
# include <openssl/x509.h>
|
||||
|
||||
DEFINE_STACK_OF(X509_INFO)
|
||||
DEFINE_STACK_OF_STRING()
|
||||
|
||||
# ifndef PATH_MAX
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -29,7 +29,6 @@
|
||||
#endif
|
||||
|
||||
DEFINE_STACK_OF(ASN1_OBJECT)
|
||||
DEFINE_STACK_OF(X509_EXTENSION)
|
||||
DEFINE_STACK_OF_STRING()
|
||||
|
||||
#undef POSTFIX
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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.
|
||||
*
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -36,7 +36,6 @@
|
||||
#include <openssl/err.h>
|
||||
#include <openssl/evp.h>
|
||||
|
||||
DEFINE_STACK_OF(X509_EXTENSION)
|
||||
DEFINE_STACK_OF(OSSL_CRMF_MSG)
|
||||
|
||||
/*-
|
||||
|
@ -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,
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
@ -17,7 +17,6 @@
|
||||
#include "ocsp_local.h"
|
||||
|
||||
DEFINE_STACK_OF(OCSP_ONEREQ)
|
||||
DEFINE_STACK_OF(X509)
|
||||
DEFINE_STACK_OF(OCSP_SINGLERESP)
|
||||
|
||||
/*
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
@ -59,8 +59,6 @@
|
||||
* reference.
|
||||
*/
|
||||
|
||||
DEFINE_STACK_OF(X509)
|
||||
|
||||
struct extracted_param_data_st {
|
||||
int object_type;
|
||||
const char *data_type;
|
||||
|
@ -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. */
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
@ -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));
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
@ -15,7 +15,6 @@
|
||||
#include <openssl/x509v3.h>
|
||||
|
||||
DEFINE_STACK_OF(CONF_VALUE)
|
||||
DEFINE_STACK_OF(X509_EXTENSION)
|
||||
|
||||
/* Extension printing routines */
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
@ -16,7 +16,6 @@
|
||||
#include "crypto/asn1.h"
|
||||
#include "x509_local.h"
|
||||
|
||||
DEFINE_STACK_OF(X509_NAME_ENTRY)
|
||||
DEFINE_STACK_OF(ASN1_VALUE)
|
||||
|
||||
/*
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -37,7 +37,6 @@
|
||||
|
||||
#include "e_loader_attic_err.c"
|
||||
|
||||
DEFINE_STACK_OF(X509)
|
||||
DEFINE_STACK_OF(OSSL_STORE_INFO)
|
||||
|
||||
#ifdef _WIN32
|
||||
|
@ -1,4 +1,6 @@
|
||||
/*
|
||||
* {- join("\n * ", @autowarntext) -}
|
||||
*
|
||||
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
|
||||
*
|
||||
@ -8,6 +10,10 @@
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
{-
|
||||
use OpenSSL::stackhash qw(generate_stack_macros generate_const_stack_macros);
|
||||
-}
|
||||
|
||||
#ifndef OPENSSL_X509_H
|
||||
# define OPENSSL_X509_H
|
||||
# pragma once
|
||||
@ -41,10 +47,12 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/* Needed stacks for types defined in other headers */
|
||||
DEFINE_OR_DECLARE_STACK_OF(X509_NAME)
|
||||
DEFINE_OR_DECLARE_STACK_OF(X509)
|
||||
DEFINE_OR_DECLARE_STACK_OF(X509_REVOKED)
|
||||
DEFINE_OR_DECLARE_STACK_OF(X509_CRL)
|
||||
{-
|
||||
generate_stack_macros("X509_NAME")
|
||||
.generate_stack_macros("X509")
|
||||
.generate_stack_macros("X509_REVOKED")
|
||||
.generate_stack_macros("X509_CRL");
|
||||
-}
|
||||
|
||||
/* Flags for X509_get_signature_info() */
|
||||
/* Signature info is valid */
|
||||
@ -82,16 +90,22 @@ typedef struct X509_val_st {
|
||||
typedef struct X509_sig_st X509_SIG;
|
||||
|
||||
typedef struct X509_name_entry_st X509_NAME_ENTRY;
|
||||
DEFINE_OR_DECLARE_STACK_OF(X509_NAME_ENTRY)
|
||||
|
||||
{-
|
||||
generate_stack_macros("X509_NAME_ENTRY");
|
||||
-}
|
||||
|
||||
# define X509_EX_V_NETSCAPE_HACK 0x8000
|
||||
# define X509_EX_V_INIT 0x0001
|
||||
typedef struct X509_extension_st X509_EXTENSION;
|
||||
DEFINE_OR_DECLARE_STACK_OF(X509_EXTENSION)
|
||||
{-
|
||||
generate_stack_macros("X509_EXTENSION");
|
||||
-}
|
||||
typedef STACK_OF(X509_EXTENSION) X509_EXTENSIONS;
|
||||
typedef struct x509_attributes_st X509_ATTRIBUTE;
|
||||
DEFINE_OR_DECLARE_STACK_OF(X509_ATTRIBUTE)
|
||||
{-
|
||||
generate_stack_macros("X509_ATTRIBUTE");
|
||||
-}
|
||||
typedef struct X509_req_info_st X509_REQ_INFO;
|
||||
typedef struct X509_req_st X509_REQ;
|
||||
typedef struct x509_cert_aux_st X509_CERT_AUX;
|
||||
@ -107,7 +121,9 @@ typedef struct x509_trust_st {
|
||||
int arg1;
|
||||
void *arg2;
|
||||
} X509_TRUST;
|
||||
DEFINE_OR_DECLARE_STACK_OF(X509_TRUST)
|
||||
{-
|
||||
generate_stack_macros("X509_TRUST");
|
||||
-}
|
||||
|
||||
|
||||
/* standard trust ids */
|
||||
@ -246,7 +262,9 @@ typedef struct X509_info_st {
|
||||
int enc_len;
|
||||
char *enc_data;
|
||||
} X509_INFO;
|
||||
DEFINE_OR_DECLARE_STACK_OF(X509_INFO)
|
||||
{-
|
||||
generate_stack_macros("X509_INFO");
|
||||
-}
|
||||
|
||||
/*
|
||||
* The next 2 structures and their 8 routines are used to manipulate Netscape's
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -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.
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -13,7 +13,6 @@
|
||||
#include "internal/cryptlib.h"
|
||||
|
||||
DEFINE_STACK_OF(OCSP_RESPID)
|
||||
DEFINE_STACK_OF(X509_EXTENSION)
|
||||
|
||||
#define COOKIE_STATE_FORMAT_VERSION 0
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -26,8 +26,6 @@
|
||||
#include <openssl/core_names.h>
|
||||
#include <openssl/asn1t.h>
|
||||
|
||||
DEFINE_STACK_OF(X509)
|
||||
|
||||
#define TICKET_NONCE_SIZE 8
|
||||
|
||||
typedef struct {
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -16,8 +16,6 @@
|
||||
|
||||
#include "testutil.h"
|
||||
|
||||
DEFINE_STACK_OF(X509)
|
||||
|
||||
static X509 *cert = NULL;
|
||||
static EVP_PKEY *privkey = NULL;
|
||||
|
||||
|
@ -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[] = {
|
||||
|
@ -26,8 +26,6 @@
|
||||
|
||||
#include "internal/nelem.h"
|
||||
|
||||
DEFINE_STACK_OF(X509)
|
||||
|
||||
#define _UC(c) ((unsigned char)(c))
|
||||
|
||||
static const char *basedomain;
|
||||
|
@ -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 have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user