From f909f452268d627302d130ea76e6c00f9574870c Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 29 Nov 2024 07:42:35 +0000 Subject: Remove weird pad member that was never set to zero after malloc() so the weird thing it was supposed to be doing couldn't possibly work. ok jsing --- src/lib/libcrypto/dh/dh_local.h | 5 +---- src/lib/libcrypto/dsa/dsa_local.h | 5 +---- src/lib/libcrypto/rsa/rsa_local.h | 5 +---- 3 files changed, 3 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/dh/dh_local.h b/src/lib/libcrypto/dh/dh_local.h index fe7c12bb05..efbc08b356 100644 --- a/src/lib/libcrypto/dh/dh_local.h +++ b/src/lib/libcrypto/dh/dh_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dh_local.h,v 1.5 2024/08/30 17:44:56 tb Exp $ */ +/* $OpenBSD: dh_local.h,v 1.6 2024/11/29 07:42:35 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -78,9 +78,6 @@ struct dh_method { }; struct dh_st { - /* This first argument is used to pick up errors when - * a DH is passed instead of a EVP_PKEY */ - int pad; int version; BIGNUM *p; BIGNUM *g; diff --git a/src/lib/libcrypto/dsa/dsa_local.h b/src/lib/libcrypto/dsa/dsa_local.h index 46248f0edf..fc77c09fcb 100644 --- a/src/lib/libcrypto/dsa/dsa_local.h +++ b/src/lib/libcrypto/dsa/dsa_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dsa_local.h,v 1.4 2024/05/11 06:43:50 tb Exp $ */ +/* $OpenBSD: dsa_local.h,v 1.5 2024/11/29 07:42:35 tb Exp $ */ /* ==================================================================== * Copyright (c) 2007 The OpenSSL Project. All rights reserved. * @@ -75,9 +75,6 @@ struct dsa_method { } /* DSA_METHOD */; struct dsa_st { - /* This first variable is used to pick up errors where - * a DSA is passed instead of of a EVP_PKEY */ - int pad; long version; BIGNUM *p; BIGNUM *q; /* == 20 */ diff --git a/src/lib/libcrypto/rsa/rsa_local.h b/src/lib/libcrypto/rsa/rsa_local.h index d537ab9c77..31172093c4 100644 --- a/src/lib/libcrypto/rsa/rsa_local.h +++ b/src/lib/libcrypto/rsa/rsa_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_local.h,v 1.8 2024/01/01 15:43:02 tb Exp $ */ +/* $OpenBSD: rsa_local.h,v 1.9 2024/11/29 07:42:35 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -98,9 +98,6 @@ struct rsa_meth_st { }; struct rsa_st { - /* The first parameter is used to pickup errors where - * this is passed instead of aEVP_PKEY, it is set to 0 */ - int pad; long version; const RSA_METHOD *meth; -- cgit v1.2.3-55-g6feb