diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-10-08 14:08:49 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-10-08 14:08:49 +0000 |
commit | 0af161cb9d72b3d38c38ecdbe2eb5da77ad05fc5 (patch) | |
tree | 7bf7b5632e6038f7e25c6313686f65805d1f48a7 /src/util/crypto_ksk.c | |
parent | 5a15f9b33c05a1579737ee57ef9cbc7b326eb8ac (diff) | |
download | gnunet-0af161cb9d72b3d38c38ecdbe2eb5da77ad05fc5.tar.gz gnunet-0af161cb9d72b3d38c38ecdbe2eb5da77ad05fc5.zip |
struct
Diffstat (limited to 'src/util/crypto_ksk.c')
-rw-r--r-- | src/util/crypto_ksk.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util/crypto_ksk.c b/src/util/crypto_ksk.c index af0905a33..d560cf0ea 100644 --- a/src/util/crypto_ksk.c +++ b/src/util/crypto_ksk.c | |||
@@ -695,13 +695,13 @@ ksk_decode_key (const struct KskRsaPrivateKeyBinaryEncoded *encoding) | |||
695 | } | 695 | } |
696 | 696 | ||
697 | 697 | ||
698 | typedef struct | 698 | struct KBlockKeyCacheLine |
699 | { | 699 | { |
700 | GNUNET_HashCode hc; | 700 | GNUNET_HashCode hc; |
701 | struct KskRsaPrivateKeyBinaryEncoded *pke; | 701 | struct KskRsaPrivateKeyBinaryEncoded *pke; |
702 | } KBlockKeyCacheLine; | 702 | }; |
703 | 703 | ||
704 | static KBlockKeyCacheLine **cache; | 704 | static struct KBlockKeyCacheLine **cache; |
705 | 705 | ||
706 | static unsigned int cacheSize; | 706 | static unsigned int cacheSize; |
707 | 707 | ||
@@ -713,7 +713,7 @@ struct GNUNET_CRYPTO_RsaPrivateKey * | |||
713 | GNUNET_CRYPTO_rsa_key_create_from_hash (const GNUNET_HashCode * hc) | 713 | GNUNET_CRYPTO_rsa_key_create_from_hash (const GNUNET_HashCode * hc) |
714 | { | 714 | { |
715 | struct GNUNET_CRYPTO_RsaPrivateKey *ret; | 715 | struct GNUNET_CRYPTO_RsaPrivateKey *ret; |
716 | KBlockKeyCacheLine *line; | 716 | struct KBlockKeyCacheLine *line; |
717 | int i; | 717 | int i; |
718 | 718 | ||
719 | for (i = 0; i < cacheSize; i++) | 719 | for (i = 0; i < cacheSize; i++) |
@@ -725,7 +725,7 @@ GNUNET_CRYPTO_rsa_key_create_from_hash (const GNUNET_HashCode * hc) | |||
725 | } | 725 | } |
726 | } | 726 | } |
727 | 727 | ||
728 | line = GNUNET_malloc (sizeof (KBlockKeyCacheLine)); | 728 | line = GNUNET_malloc (sizeof (struct KBlockKeyCacheLine)); |
729 | line->hc = *hc; | 729 | line->hc = *hc; |
730 | line->pke = makeKblockKeyInternal (hc); | 730 | line->pke = makeKblockKeyInternal (hc); |
731 | GNUNET_array_grow (cache, cacheSize, cacheSize + 1); | 731 | GNUNET_array_grow (cache, cacheSize, cacheSize + 1); |