diff options
author | Giovanni Conte <gconte@cisco.com> | 2019-01-16 12:09:43 +0100 |
---|---|---|
committer | Giovanni Conte <gconte@cisco.com> | 2019-01-16 18:15:26 +0100 |
commit | 33b53c7f5cef4cf19770a38baa4b627f234322cf (patch) | |
tree | 619dc322af2616fea2c97d812b69131aa26f45a8 /libparc/parc/security/parc_CryptoCache.c | |
parent | db496684a300b2d65ae7739c918177111d5a3500 (diff) |
removed longbow dependency
Change-Id: I0c224b26261c7b24699410fc5e41ed6f3fab9815
Signed-off-by: Giovanni Conte <gconte@cisco.com>
Diffstat (limited to 'libparc/parc/security/parc_CryptoCache.c')
-rwxr-xr-x | libparc/parc/security/parc_CryptoCache.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libparc/parc/security/parc_CryptoCache.c b/libparc/parc/security/parc_CryptoCache.c index a454819b..07caaed7 100755 --- a/libparc/parc/security/parc_CryptoCache.c +++ b/libparc/parc/security/parc_CryptoCache.c @@ -36,7 +36,7 @@ #include <stdio.h> #include <string.h> -#include <LongBow/runtime.h> +#include <parc/assert/parc_Assert.h> #include <parc/algol/parc_Memory.h> #include <parc/security/parc_CryptoCache.h> @@ -68,7 +68,7 @@ PARCCryptoCache * parcCryptoCache_Create() { PARCCryptoCache *cache = parcMemory_AllocateAndClear(sizeof(PARCCryptoCache)); - assertNotNull(cache, "parcMemory_AllocateAndClear(%zu) returned NULL", sizeof(PARCCryptoCache)); + parcAssertNotNull(cache, "parcMemory_AllocateAndClear(%zu) returned NULL", sizeof(PARCCryptoCache)); // KeyIdDestroyer is NULL because we get the keyid out of the key, and it will be destroyed // when the key is destroyed. @@ -88,8 +88,8 @@ parcCryptoCache_Create() void parcCryptoCache_Destroy(PARCCryptoCache **cryptoCachePtr) { - assertNotNull(cryptoCachePtr, "Parameter must be non-null double pointer"); - assertNotNull(*cryptoCachePtr, "Parameter must dereference to non-null pointer"); + parcAssertNotNull(cryptoCachePtr, "Parameter must be non-null double pointer"); + parcAssertNotNull(*cryptoCachePtr, "Parameter must dereference to non-null pointer"); PARCCryptoCache *cache = *cryptoCachePtr; parcHashCodeTable_Destroy(&cache->keyid_table); @@ -111,8 +111,8 @@ parcCryptoCache_Destroy(PARCCryptoCache **cryptoCachePtr) bool parcCryptoCache_AddKey(PARCCryptoCache *cache, PARCKey *original_key) { - assertNotNull(cache, "Parameter cache must be non-null"); - assertNotNull(original_key, "Parameter key must be non-null"); + parcAssertNotNull(cache, "Parameter cache must be non-null"); + parcAssertNotNull(original_key, "Parameter key must be non-null"); PARCKey *key = parcKey_Copy(original_key); PARCKeyId *keyid = parcKey_GetKeyId(key); @@ -133,8 +133,8 @@ parcCryptoCache_AddKey(PARCCryptoCache *cache, PARCKey *original_key) const PARCKey * parcCryptoCache_GetKey(PARCCryptoCache *cache, const PARCKeyId *keyid) { - assertNotNull(cache, "Parameter cache must be non-null"); - assertNotNull(keyid, "Parameter keyid must be non-null"); + parcAssertNotNull(cache, "Parameter cache must be non-null"); + parcAssertNotNull(keyid, "Parameter keyid must be non-null"); return parcHashCodeTable_Get(cache->keyid_table, keyid); } @@ -150,8 +150,8 @@ parcCryptoCache_GetKey(PARCCryptoCache *cache, const PARCKeyId *keyid) void parcCryptoCache_RemoveKey(PARCCryptoCache *cache, const PARCKeyId *keyid) { - assertNotNull(cache, "Parameter cache must be non-null"); - assertNotNull(keyid, "Parameter keyid must be non-null"); + parcAssertNotNull(cache, "Parameter cache must be non-null"); + parcAssertNotNull(keyid, "Parameter keyid must be non-null"); parcHashCodeTable_Del(cache->keyid_table, keyid); } |