| // Copyright 2015 The Weave Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef LIBUWEAVE_SRC_MACAROON_CAVEAT_INTERNAL_H_ |
| #define LIBUWEAVE_SRC_MACAROON_CAVEAT_INTERNAL_H_ |
| #include "src/macaroon.h" |
| #include "src/macaroon_caveat.h" |
| bool uw_macaroon_caveat_sign_(const uint8_t* key, |
| const UwMacaroonContext* context, |
| const UwMacaroonCaveat* caveat, |
| } UwMacaroonValidationState; |
| bool uw_macaroon_caveat_init_validation_state_( |
| UwMacaroonValidationState* state); |
| bool uw_macaroon_caveat_validate_(const UwMacaroonCaveat* caveat, |
| const UwMacaroonContext* context, |
| UwMacaroonValidationState* state, |
| UwMacaroonValidationResult* result); |
| bool uw_macaroon_caveat_get_value_uint_(const UwMacaroonCaveat* caveat, |
| bool uw_macaroon_caveat_get_value_bstr_(const UwMacaroonCaveat* caveat, |
| #endif // LIBUWEAVE_SRC_MACAROON_CAVEAT_INTERNAL_H_ |