From 8b59a3f8d6865303b978f865f52d10da305f434f Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 27 May 2024 09:12:31 +0000 Subject: [PATCH] remove unused typedefs with structs that were removed ENGINE, SSL and SSL_CTX remain even though the structs in the typedefs don't exist as they are used as incomplete types. feedback, ports bulk build and ok tb@ --- lib/libcrypto/ossl_typ.h | 9 +-------- lib/libssl/ssl.h | 7 +------ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/lib/libcrypto/ossl_typ.h b/lib/libcrypto/ossl_typ.h index 237a8d9672a..2d8e6674d26 100644 --- a/lib/libcrypto/ossl_typ.h +++ b/lib/libcrypto/ossl_typ.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ossl_typ.h,v 1.30 2023/08/11 05:10:35 tb Exp $ */ +/* $OpenBSD: ossl_typ.h,v 1.31 2024/05/27 09:12:32 jsg Exp $ */ /* ==================================================================== * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. * @@ -94,9 +94,6 @@ typedef struct bn_gencb_st BN_GENCB; typedef struct bio_st BIO; typedef struct buf_mem_st BUF_MEM; -typedef struct comp_ctx_st COMP_CTX; -typedef struct comp_method_st COMP_METHOD; - typedef struct evp_cipher_st EVP_CIPHER; typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX; typedef struct evp_md_st EVP_MD; @@ -130,7 +127,6 @@ typedef struct rand_meth_st RAND_METHOD; typedef struct x509_st X509; typedef struct X509_algor_st X509_ALGOR; typedef struct X509_crl_st X509_CRL; -typedef struct x509_crl_method_st X509_CRL_METHOD; typedef struct x509_revoked_st X509_REVOKED; typedef struct X509_name_st X509_NAME; typedef struct X509_pubkey_st X509_PUBKEY; @@ -147,9 +143,6 @@ typedef struct pkcs8_priv_key_info_st PKCS8_PRIV_KEY_INFO; typedef struct v3_ext_ctx X509V3_CTX; typedef struct conf_st CONF; -typedef struct store_st STORE; -typedef struct store_method_st STORE_METHOD; - typedef struct ui_st UI; typedef struct ui_method_st UI_METHOD; diff --git a/lib/libssl/ssl.h b/lib/libssl/ssl.h index 9a5f8d025ee..22d48098685 100644 --- a/lib/libssl/ssl.h +++ b/lib/libssl/ssl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl.h,v 1.236 2024/03/02 11:48:55 tb Exp $ */ +/* $OpenBSD: ssl.h,v 1.237 2024/05/27 09:12:31 jsg Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -510,11 +510,6 @@ int SSL_CTX_set_num_tickets(SSL_CTX *ctx, size_t num_tickets); size_t SSL_CTX_get_num_tickets(const SSL_CTX *ctx); STACK_OF(X509) *SSL_get0_verified_chain(const SSL *s); -#ifndef LIBRESSL_INTERNAL -struct ssl_aead_ctx_st; -typedef struct ssl_aead_ctx_st SSL_AEAD_CTX; -#endif - #define SSL_MAX_CERT_LIST_DEFAULT 1024*100 /* 100k max cert list :-) */ #define SSL_SESSION_CACHE_MAX_SIZE_DEFAULT (1024*20) -- 2.20.1