672_0001-g10-Make-the-keyblock-cache-per-handle-rather-than-g.patch
AbandonedPublic

Authored by neal on Aug 31 2015, 1:57 PM.

Details

Reviewers
None
Summary

From fcf6966e182d7a4cf381d69429324342bdd44c29 Mon Sep 17 00:00:00 2001
From: "Neal H. Walfield" <neal@g10code.com>
Date: Mon, 31 Aug 2015 13:57:07 +0200
Subject: [PATCH] g10: Make the keyblock cache per-handle rather than global.

  • g10/keydb.c (keyblock_cache): Don't declare this variable. Instead...

(struct keyblock_cache): ... turn its type into this first class
object...
(struct keydb_handle): ... and instantiate it once per database
handle. Update all users.
(keydb_rebuild_caches): Don't invalidate the keyblock cache.

Signed-off-by: Neal H. Walfield <neal@g10code.com>.

g10/keydb.c | 109 +++++++++++++++++++++++++++++++-----------------------------
1 file changed, 56 insertions(+), 53 deletions(-)

2.1.4

Test Plan

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped