key_cache 1160 lib/lrmd/lrmd_client.c key_is_cached(struct key_cache_s *key_cache) key_cache 1162 lib/lrmd/lrmd_client.c return key_cache->updated != 0; key_cache 1166 lib/lrmd/lrmd_client.c key_cache_expired(struct key_cache_s *key_cache) key_cache 1168 lib/lrmd/lrmd_client.c return (time(NULL) - key_cache->updated) >= 60; key_cache 1172 lib/lrmd/lrmd_client.c clear_key_cache(struct key_cache_s *key_cache) key_cache 1174 lib/lrmd/lrmd_client.c clear_gnutls_datum(&(key_cache->key)); key_cache 1175 lib/lrmd/lrmd_client.c if ((key_cache->updated != 0) || (key_cache->location != NULL)) { key_cache 1176 lib/lrmd/lrmd_client.c key_cache->updated = 0; key_cache 1177 lib/lrmd/lrmd_client.c key_cache->location = NULL; key_cache 1183 lib/lrmd/lrmd_client.c get_cached_key(struct key_cache_s *key_cache, gnutls_datum_t *key) key_cache 1185 lib/lrmd/lrmd_client.c copy_gnutls_datum(key, &(key_cache->key)); key_cache 1187 lib/lrmd/lrmd_client.c pcmk__s(key_cache->location, "unknown location")); key_cache 1191 lib/lrmd/lrmd_client.c cache_key(struct key_cache_s *key_cache, gnutls_datum_t *key, key_cache 1194 lib/lrmd/lrmd_client.c key_cache->updated = time(NULL); key_cache 1195 lib/lrmd/lrmd_client.c key_cache->location = location; key_cache 1196 lib/lrmd/lrmd_client.c copy_gnutls_datum(&(key_cache->key), key); key_cache 1214 lib/lrmd/lrmd_client.c static struct key_cache_s key_cache = { 0, }; key_cache 1221 lib/lrmd/lrmd_client.c if (key_is_cached(&key_cache)) { key_cache 1222 lib/lrmd/lrmd_client.c if (key_cache_expired(&key_cache)) { key_cache 1223 lib/lrmd/lrmd_client.c clear_key_cache(&key_cache); key_cache 1225 lib/lrmd/lrmd_client.c get_cached_key(&key_cache, key); key_cache 1234 lib/lrmd/lrmd_client.c cache_key(&key_cache, key, location);