| 74 | } |
| 75 | |
| 76 | Status ReadJsonInt(const Json::Value& json, const string& name, int64* value) { |
| 77 | Json::Value json_value; |
| 78 | TF_RETURN_IF_ERROR(ReadJsonValue(json, name, &json_value)); |
| 79 | if (!json_value.isIntegral()) { |
| 80 | return errors::FailedPrecondition( |
| 81 | strings::StrCat("JSON value '", name, "' is not integer.")); |
| 82 | } |
| 83 | *value = json_value.asInt64(); |
| 84 | return Status::OK(); |
| 85 | } |
| 86 | |
| 87 | Status CreateSignature(RSA* private_key, StringPiece to_sign, |
| 88 | string* signature) { |
no test coverage detected