Home
last modified time | relevance | path

Searched refs:new_macaroon (Results 1 – 3 of 3) sorted by relevance

/external/libweave/third_party/libuweave/src/
Dmacaroon.c71 bool uw_macaroon_create_from_root_key_(UwMacaroon* new_macaroon, in uw_macaroon_create_from_root_key_() argument
77 if (new_macaroon == NULL || root_key == NULL || context == NULL || in uw_macaroon_create_from_root_key_()
83 new_macaroon->mac_tag)) { in uw_macaroon_create_from_root_key_()
87 new_macaroon->num_caveats = num_caveats; in uw_macaroon_create_from_root_key_()
88 new_macaroon->caveats = caveats; in uw_macaroon_create_from_root_key_()
94 UwMacaroon* new_macaroon, in uw_macaroon_extend_() argument
99 if (old_macaroon == NULL || new_macaroon == NULL || context == NULL || in uw_macaroon_extend_()
104 new_macaroon->num_caveats = old_macaroon->num_caveats + 1; in uw_macaroon_extend_()
107 if ((new_macaroon->num_caveats) * sizeof(UwMacaroonCaveat*) > buffer_size) { in uw_macaroon_extend_()
112 if (new_macaroon->caveats != old_macaroon->caveats) { in uw_macaroon_extend_()
[all …]
Dmacaroon.h54 bool uw_macaroon_create_from_root_key_(UwMacaroon* new_macaroon,
63 UwMacaroon* new_macaroon,
98 UwMacaroon* new_macaroon);
/external/libweave/src/privet/
Dauth_manager.cc199 UwMacaroon new_macaroon{}; in ExtendMacaroonToken() local
200 CHECK(uw_macaroon_extend_(&prev_macaroon, &new_macaroon, &context, caveat, in ExtendMacaroonToken()
203 prev_macaroon = new_macaroon; in ExtendMacaroonToken()