XRootD
Loading...
Searching...
No Matches
XrdMacaroonsUtils.hh
Go to the documentation of this file.
1#ifndef __XRD_MACAROONS_UTILS_HH__
2#define __XRD_MACAROONS_UTILS_HH__
3
4#include <string>
5#include <sys/types.h>
6
7namespace Macaroons {
8
9// Parse an ISO 8601 duration of the form "PT<n>H<n>M<n>S" into a number of
10// seconds. Returns -1 if the input is not a valid duration. The components
11// are optional, but at least the "PT" prefix is required; "PT" on its own
12// parses to a duration of zero seconds.
13ssize_t determine_validity(const std::string &input);
14
15} // namespace Macaroons
16
17#endif // __XRD_MACAROONS_UTILS_HH__
ssize_t determine_validity(const std::string &input)