Skip to content

Commit 5a22c52

Browse files
davidbensamuel40791765
authored andcommitted
Remove some unused fields
Change-Id: Id38833b329b0d661fb18e8a75b671379effe82a6 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/61166 Auto-Submit: David Benjamin <[email protected]> Commit-Queue: Bob Beck <[email protected]> Reviewed-by: Bob Beck <[email protected]> (cherry picked from commit 9ad0e9d7da6372ca61e137610999e5683d7a9749)
1 parent 74259e0 commit 5a22c52

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

crypto/x509/by_dir.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ typedef struct lookup_dir_entry_st {
8181
} BY_DIR_ENTRY;
8282

8383
typedef struct lookup_dir_st {
84-
BUF_MEM *buffer;
8584
STACK_OF(BY_DIR_ENTRY) *dirs;
8685
} BY_DIR;
8786

@@ -141,10 +140,6 @@ static int new_dir(X509_LOOKUP *lu) {
141140
if ((a = (BY_DIR *)OPENSSL_malloc(sizeof(BY_DIR))) == NULL) {
142141
return 0;
143142
}
144-
if ((a->buffer = BUF_MEM_new()) == NULL) {
145-
OPENSSL_free(a);
146-
return 0;
147-
}
148143
a->dirs = NULL;
149144
lu->method_data = a;
150145
return 1;
@@ -175,7 +170,6 @@ static void free_dir(X509_LOOKUP *lu) {
175170
BY_DIR *a = lu->method_data;
176171
if (a != NULL) {
177172
sk_BY_DIR_ENTRY_pop_free(a->dirs, by_dir_entry_free);
178-
BUF_MEM_free(a->buffer);
179173
OPENSSL_free(a);
180174
}
181175
}

crypto/x509/internal.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ struct x509_lookup_method_st {
275275
// function is then called to actually check the cert chain.
276276
struct x509_store_st {
277277
// The following is a cache of trusted certs
278-
int cache; // if true, stash any hits
279278
STACK_OF(X509_OBJECT) *objs; // Cache of all objects
280279
CRYPTO_MUTEX objs_lock;
281280

crypto/x509/x509_lu.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ X509_STORE *X509_STORE_new(void) {
173173
if (ret->objs == NULL) {
174174
goto err;
175175
}
176-
ret->cache = 1;
177176
ret->get_cert_methods = sk_X509_LOOKUP_new_null();
178177
if (ret->get_cert_methods == NULL) {
179178
goto err;

0 commit comments

Comments
 (0)