Remove some unused fields
Change-Id: Id38833b329b0d661fb18e8a75b671379effe82a6 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/61166 Auto-Submit: David Benjamin <davidben@google.com> Commit-Queue: Bob Beck <bbe@google.com> Reviewed-by: Bob Beck <bbe@google.com>
This commit is contained in:
parent
a08b71194f
commit
9ad0e9d7da
@ -81,7 +81,6 @@ typedef struct lookup_dir_entry_st {
|
||||
} BY_DIR_ENTRY;
|
||||
|
||||
typedef struct lookup_dir_st {
|
||||
BUF_MEM *buffer;
|
||||
STACK_OF(BY_DIR_ENTRY) *dirs;
|
||||
} BY_DIR;
|
||||
|
||||
@ -141,10 +140,6 @@ static int new_dir(X509_LOOKUP *lu) {
|
||||
if ((a = (BY_DIR *)OPENSSL_malloc(sizeof(BY_DIR))) == NULL) {
|
||||
return 0;
|
||||
}
|
||||
if ((a->buffer = BUF_MEM_new()) == NULL) {
|
||||
OPENSSL_free(a);
|
||||
return 0;
|
||||
}
|
||||
a->dirs = NULL;
|
||||
lu->method_data = a;
|
||||
return 1;
|
||||
@ -175,7 +170,6 @@ static void free_dir(X509_LOOKUP *lu) {
|
||||
BY_DIR *a = lu->method_data;
|
||||
if (a != NULL) {
|
||||
sk_BY_DIR_ENTRY_pop_free(a->dirs, by_dir_entry_free);
|
||||
BUF_MEM_free(a->buffer);
|
||||
OPENSSL_free(a);
|
||||
}
|
||||
}
|
||||
|
@ -275,7 +275,6 @@ struct x509_lookup_method_st {
|
||||
// function is then called to actually check the cert chain.
|
||||
struct x509_store_st {
|
||||
// The following is a cache of trusted certs
|
||||
int cache; // if true, stash any hits
|
||||
STACK_OF(X509_OBJECT) *objs; // Cache of all objects
|
||||
CRYPTO_MUTEX objs_lock;
|
||||
|
||||
|
@ -173,7 +173,6 @@ X509_STORE *X509_STORE_new(void) {
|
||||
if (ret->objs == NULL) {
|
||||
goto err;
|
||||
}
|
||||
ret->cache = 1;
|
||||
ret->get_cert_methods = sk_X509_LOOKUP_new_null();
|
||||
if (ret->get_cert_methods == NULL) {
|
||||
goto err;
|
||||
|
Loading…
x
Reference in New Issue
Block a user