diff options
author | tb <> | 2024-05-11 05:41:28 +0000 |
---|---|---|
committer | tb <> | 2024-05-11 05:41:28 +0000 |
commit | 68651131a94804596ddbad3cfc2d03dc97f27714 (patch) | |
tree | df8ffb76dcb37fb02848fde4a5b8a968e8c97c2d /src | |
parent | 3414111837d188fbb11c07116d68afa352a5deac (diff) | |
download | openbsd-68651131a94804596ddbad3cfc2d03dc97f27714.tar.gz openbsd-68651131a94804596ddbad3cfc2d03dc97f27714.tar.bz2 openbsd-68651131a94804596ddbad3cfc2d03dc97f27714.zip |
Remove unused PEM_USER and PEM_CTX
I could not find any use of this in all of OpenSSL's git history since
SSLeay 0.8.1b.
ok jsing
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/pem/pem.h | 51 |
1 files changed, 1 insertions, 50 deletions
diff --git a/src/lib/libcrypto/pem/pem.h b/src/lib/libcrypto/pem/pem.h index af841caee6..4fdab48bb2 100644 --- a/src/lib/libcrypto/pem/pem.h +++ b/src/lib/libcrypto/pem/pem.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pem.h,v 1.27 2024/03/29 02:22:18 jsing Exp $ */ | 1 | /* $OpenBSD: pem.h,v 1.28 2024/05/11 05:41:28 tb Exp $ */ |
2 | /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -142,55 +142,6 @@ extern "C" { | |||
142 | #define PEM_TYPE_MIC_CLEAR 30 | 142 | #define PEM_TYPE_MIC_CLEAR 30 |
143 | #define PEM_TYPE_CLEAR 40 | 143 | #define PEM_TYPE_CLEAR 40 |
144 | 144 | ||
145 | typedef struct pem_recip_st { | ||
146 | char *name; | ||
147 | X509_NAME *dn; | ||
148 | |||
149 | int cipher; | ||
150 | int key_enc; | ||
151 | /* char iv[8]; unused and wrong size */ | ||
152 | } PEM_USER; | ||
153 | |||
154 | typedef struct pem_ctx_st { | ||
155 | int type; /* what type of object */ | ||
156 | |||
157 | struct { | ||
158 | int version; | ||
159 | int mode; | ||
160 | } proc_type; | ||
161 | |||
162 | char *domain; | ||
163 | |||
164 | struct { | ||
165 | int cipher; | ||
166 | /* unused, and wrong size | ||
167 | unsigned char iv[8]; */ | ||
168 | } DEK_info; | ||
169 | |||
170 | PEM_USER *originator; | ||
171 | |||
172 | int num_recipient; | ||
173 | PEM_USER **recipient; | ||
174 | |||
175 | /* XXX(ben): don#t think this is used! | ||
176 | STACK *x509_chain; / * certificate chain */ | ||
177 | EVP_MD *md; /* signature type */ | ||
178 | |||
179 | int md_enc; /* is the md encrypted or not? */ | ||
180 | int md_len; /* length of md_data */ | ||
181 | char *md_data; /* message digest, could be pkey encrypted */ | ||
182 | |||
183 | EVP_CIPHER *dec; /* date encryption cipher */ | ||
184 | int key_len; /* key length */ | ||
185 | unsigned char *key; /* key */ | ||
186 | /* unused, and wrong size | ||
187 | unsigned char iv[8]; */ | ||
188 | |||
189 | int data_enc; /* is the data encrypted */ | ||
190 | int data_len; | ||
191 | unsigned char *data; | ||
192 | } PEM_CTX; | ||
193 | |||
194 | #ifndef LIBRESSL_INTERNAL | 145 | #ifndef LIBRESSL_INTERNAL |
195 | /* These macros make the PEM_read/PEM_write functions easier to maintain and | 146 | /* These macros make the PEM_read/PEM_write functions easier to maintain and |
196 | * write. Now they are all implemented with either: | 147 | * write. Now they are all implemented with either: |