summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2024-11-29 07:42:35 +0000
committertb <>2024-11-29 07:42:35 +0000
commitf909f452268d627302d130ea76e6c00f9574870c (patch)
tree5b9a95301f5f029c3ff295dc66dda75e416082ee /src
parentaca75df0c4eed6c8e8199f706f995c24b9a0be5a (diff)
downloadopenbsd-f909f452268d627302d130ea76e6c00f9574870c.tar.gz
openbsd-f909f452268d627302d130ea76e6c00f9574870c.tar.bz2
openbsd-f909f452268d627302d130ea76e6c00f9574870c.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/dh/dh_local.h5
-rw-r--r--src/lib/libcrypto/dsa/dsa_local.h5
-rw-r--r--src/lib/libcrypto/rsa/rsa_local.h5
3 files changed, 3 insertions, 12 deletions
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 @@
1/* $OpenBSD: dh_local.h,v 1.5 2024/08/30 17:44:56 tb Exp $ */ 1/* $OpenBSD: dh_local.h,v 1.6 2024/11/29 07:42:35 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -78,9 +78,6 @@ struct dh_method {
78}; 78};
79 79
80struct dh_st { 80struct dh_st {
81 /* This first argument is used to pick up errors when
82 * a DH is passed instead of a EVP_PKEY */
83 int pad;
84 int version; 81 int version;
85 BIGNUM *p; 82 BIGNUM *p;
86 BIGNUM *g; 83 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 @@
1/* $OpenBSD: dsa_local.h,v 1.4 2024/05/11 06:43:50 tb Exp $ */ 1/* $OpenBSD: dsa_local.h,v 1.5 2024/11/29 07:42:35 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2007 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2007 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -75,9 +75,6 @@ struct dsa_method {
75} /* DSA_METHOD */; 75} /* DSA_METHOD */;
76 76
77struct dsa_st { 77struct dsa_st {
78 /* This first variable is used to pick up errors where
79 * a DSA is passed instead of of a EVP_PKEY */
80 int pad;
81 long version; 78 long version;
82 BIGNUM *p; 79 BIGNUM *p;
83 BIGNUM *q; /* == 20 */ 80 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 @@
1/* $OpenBSD: rsa_local.h,v 1.8 2024/01/01 15:43:02 tb Exp $ */ 1/* $OpenBSD: rsa_local.h,v 1.9 2024/11/29 07:42:35 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -98,9 +98,6 @@ struct rsa_meth_st {
98}; 98};
99 99
100struct rsa_st { 100struct rsa_st {
101 /* The first parameter is used to pickup errors where
102 * this is passed instead of aEVP_PKEY, it is set to 0 */
103 int pad;
104 long version; 101 long version;
105 const RSA_METHOD *meth; 102 const RSA_METHOD *meth;
106 103