key_cache 1211 lib/lrmd/lrmd_client.c key_is_cached(struct key_cache_s *key_cache) key_cache 1213 lib/lrmd/lrmd_client.c return key_cache->updated != 0; key_cache 1217 lib/lrmd/lrmd_client.c key_cache_expired(struct key_cache_s *key_cache) key_cache 1219 lib/lrmd/lrmd_client.c return (time(NULL) - key_cache->updated) >= 60; key_cache 1223 lib/lrmd/lrmd_client.c clear_key_cache(struct key_cache_s *key_cache) key_cache 1225 lib/lrmd/lrmd_client.c clear_gnutls_datum(&(key_cache->key)); key_cache 1226 lib/lrmd/lrmd_client.c if ((key_cache->updated != 0) || (key_cache->location != NULL)) { key_cache 1227 lib/lrmd/lrmd_client.c key_cache->updated = 0; key_cache 1228 lib/lrmd/lrmd_client.c key_cache->location = NULL; key_cache 1234 lib/lrmd/lrmd_client.c get_cached_key(struct key_cache_s *key_cache, gnutls_datum_t *key) key_cache 1236 lib/lrmd/lrmd_client.c copy_gnutls_datum(key, &(key_cache->key)); key_cache 1238 lib/lrmd/lrmd_client.c pcmk__s(key_cache->location, "unknown location")); key_cache 1242 lib/lrmd/lrmd_client.c cache_key(struct key_cache_s *key_cache, gnutls_datum_t *key, key_cache 1245 lib/lrmd/lrmd_client.c key_cache->updated = time(NULL); key_cache 1246 lib/lrmd/lrmd_client.c key_cache->location = location; key_cache 1247 lib/lrmd/lrmd_client.c copy_gnutls_datum(&(key_cache->key), key); key_cache 1265 lib/lrmd/lrmd_client.c static struct key_cache_s key_cache = { 0, }; key_cache 1272 lib/lrmd/lrmd_client.c if (key_is_cached(&key_cache)) { key_cache 1273 lib/lrmd/lrmd_client.c if (key_cache_expired(&key_cache)) { key_cache 1274 lib/lrmd/lrmd_client.c clear_key_cache(&key_cache); key_cache 1276 lib/lrmd/lrmd_client.c get_cached_key(&key_cache, key); key_cache 1285 lib/lrmd/lrmd_client.c cache_key(&key_cache, key, location);