| 3001 | } |
| 3002 | |
| 3003 | TSReturnCode |
| 3004 | TSCacheKeyDigestFromUrlSet(TSCacheKey key, TSMLoc url) |
| 3005 | { |
| 3006 | sdk_assert(sdk_sanity_check_cachekey(key) == TS_SUCCESS); |
| 3007 | |
| 3008 | if ((reinterpret_cast<CacheInfo *>(key))->magic != CACHE_INFO_MAGIC_ALIVE) { |
| 3009 | return TS_ERROR; |
| 3010 | } |
| 3011 | |
| 3012 | url_CryptoHash_get(reinterpret_cast<URLImpl *>(url), &(reinterpret_cast<CacheInfo *>(key))->cache_key); |
| 3013 | return TS_SUCCESS; |
| 3014 | } |
| 3015 | |
| 3016 | TSReturnCode |
| 3017 | TSCacheKeyDataTypeSet(TSCacheKey key, TSCacheDataType type) |
no test coverage detected