diff options
author | Matt Caswell <matt@openssl.org> | 2020-09-03 10:23:44 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-09-13 11:09:45 +0100 |
commit | e6623cfbffcc03e2483632359e005ca13adacc9d (patch) | |
tree | 64caba9fa625624f304162011a54a55b09b0ad41 /ssl | |
parent | 6ac1cd10ba8a1d92d3858e53a7aea2cf444adf26 (diff) |
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)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/s3_lib.c | 3 | ||||
-rw-r--r-- | ssl/ssl_cert.c | 3 | ||||
-rw-r--r-- | ssl/ssl_conf.c | 2 | ||||
-rw-r--r-- | ssl/ssl_lib.c | 3 | ||||
-rw-r--r-- | ssl/ssl_rsa.c | 2 | ||||
-rw-r--r-- | ssl/ssl_sess.c | 2 | ||||
-rw-r--r-- | ssl/statem/extensions.c | 2 | ||||
-rw-r--r-- | ssl/statem/extensions_srvr.c | 1 | ||||
-rw-r--r-- | ssl/statem/statem_clnt.c | 2 | ||||
-rw-r--r-- | ssl/statem/statem_lib.c | 3 | ||||
-rw-r--r-- | ssl/statem/statem_srvr.c | 2 | ||||
-rw-r--r-- | ssl/t1_lib.c | 3 |
12 files changed, 0 insertions, 28 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index c49f2118ca..88bab0edc4 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -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) diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index e6262bfaeb..ace164f673 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -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); diff --git a/ssl/ssl_conf.c b/ssl/ssl_conf.c index 56590da207..acf9385785 100644 --- a/ssl/ssl_conf.c +++ b/ssl/ssl_conf.c @@ -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. diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 139fd628af..ccb0a6087f 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -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) diff --git a/ssl/ssl_rsa.c b/ssl/ssl_rsa.c index 144dd2c374..3a28b60ba6 100644 --- a/ssl/ssl_rsa.c +++ b/ssl/ssl_rsa.c @@ -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); diff --git a/ssl/ssl_sess.c b/ssl/ssl_sess.c index 63624e9e80..83fc149cfd 100644 --- a/ssl/ssl_sess.c +++ b/ssl/ssl_sess.c @@ -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); diff --git a/ssl/statem/extensions.c b/ssl/statem/extensions.c index c842e20fbf..ec38b2f6a0 100644 --- a/ssl/statem/extensions.c +++ b/ssl/statem/extensions.c @@ -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); diff --git a/ssl/statem/extensions_srvr.c b/ssl/statem/extensions_srvr.c index c686d00f0e..6adb9cab82 100644 --- a/ssl/statem/extensions_srvr.c +++ b/ssl/statem/extensions_srvr.c @@ -13,7 +13,6 @@ #include "internal/cryptlib.h" DEFINE_STACK_OF(OCSP_RESPID) -DEFINE_STACK_OF(X509_EXTENSION) #define COOKIE_STATE_FORMAT_VERSION 0 diff --git a/ssl/statem/statem_clnt.c b/ssl/statem/statem_clnt.c index f8a3d25c08..a3e7b5ad0a 100644 --- a/ssl/statem/statem_clnt.c +++ b/ssl/statem/statem_clnt.c @@ -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); diff --git a/ssl/statem/statem_lib.c b/ssl/statem/statem_lib.c index 79195b2aa2..6d0efb3239 100644 --- a/ssl/statem/statem_lib.c +++ b/ssl/statem/statem_lib.c @@ -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. */ diff --git a/ssl/statem/statem_srvr.c b/ssl/statem/statem_srvr.c index f42e7865eb..a1a28e905a 100644 --- a/ssl/statem/statem_srvr.c +++ b/ssl/statem/statem_srvr.c @@ -26,8 +26,6 @@ #include <openssl/core_names.h> #include <openssl/asn1t.h> -DEFINE_STACK_OF(X509) - #define TICKET_NONCE_SIZE 8 typedef struct { diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 702622487f..f2043aef7e 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -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); |