Rev 1121 | Rev 1131 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1121 | Rev 1130 | ||
---|---|---|---|
Line 233... | Line 233... | ||
233 | public function tree_search(string $request) { |
233 | public function tree_search(string $request) { |
234 | return false; |
234 | return false; |
235 | } |
235 | } |
236 | 236 | ||
237 | /** |
237 | /** |
238 | * @param $id |
238 | * @param string $id |
239 | * @return int |
239 | * @return int |
240 | * @throws OIDplusException |
240 | * @throws OIDplusException |
241 | */ |
241 | */ |
242 | public static function genWhoisAuthToken($id) { |
242 | public static function genWhoisAuthToken(string $id): int { |
243 | return smallhash(OIDplus::baseConfig()->getValue('SERVER_SECRET').'/WHOIS/'.$id); |
243 | return smallhash(OIDplus::baseConfig()->getValue('SERVER_SECRET').'/WHOIS/'.$id); |
244 | } |
244 | } |
245 | } |
245 | } |