key_cache 1136 lib/lrmd/lrmd_client.c key_is_cached(struct key_cache_s *key_cache) key_cache 1138 lib/lrmd/lrmd_client.c return key_cache->updated != 0; key_cache 1142 lib/lrmd/lrmd_client.c key_cache_expired(struct key_cache_s *key_cache) key_cache 1144 lib/lrmd/lrmd_client.c return (time(NULL) - key_cache->updated) >= 60; key_cache 1148 lib/lrmd/lrmd_client.c clear_key_cache(struct key_cache_s *key_cache) key_cache 1150 lib/lrmd/lrmd_client.c clear_gnutls_datum(&(key_cache->key)); key_cache 1151 lib/lrmd/lrmd_client.c if ((key_cache->updated != 0) || (key_cache->location != NULL)) { key_cache 1152 lib/lrmd/lrmd_client.c key_cache->updated = 0; key_cache 1153 lib/lrmd/lrmd_client.c key_cache->location = NULL; key_cache 1159 lib/lrmd/lrmd_client.c get_cached_key(struct key_cache_s *key_cache, gnutls_datum_t *key) key_cache 1161 lib/lrmd/lrmd_client.c copy_gnutls_datum(key, &(key_cache->key)); key_cache 1163 lib/lrmd/lrmd_client.c pcmk__s(key_cache->location, "unknown location")); key_cache 1167 lib/lrmd/lrmd_client.c cache_key(struct key_cache_s *key_cache, gnutls_datum_t *key, key_cache 1170 lib/lrmd/lrmd_client.c key_cache->updated = time(NULL); key_cache 1171 lib/lrmd/lrmd_client.c key_cache->location = location; key_cache 1172 lib/lrmd/lrmd_client.c copy_gnutls_datum(&(key_cache->key), key); key_cache 1190 lib/lrmd/lrmd_client.c static struct key_cache_s key_cache = { 0, }; key_cache 1197 lib/lrmd/lrmd_client.c if (key_is_cached(&key_cache)) { key_cache 1198 lib/lrmd/lrmd_client.c if (key_cache_expired(&key_cache)) { key_cache 1199 lib/lrmd/lrmd_client.c clear_key_cache(&key_cache); key_cache 1201 lib/lrmd/lrmd_client.c get_cached_key(&key_cache, key); key_cache 1210 lib/lrmd/lrmd_client.c cache_key(&key_cache, key, location);