commit | a37056ebbe5ee0b22476d4965d43f75406eff5d4 | [log] [tgz] |
---|---|---|
author | Vitaly Buka <vitalybuka@google.com> | Wed Dec 09 14:53:39 2015 -0800 |
committer | Vitaly Buka <vitalybuka@google.com> | Wed Dec 09 23:52:38 2015 +0000 |
tree | 0288ffdc80e3ebf7c710117db48bf46ea3211e52 | |
parent | 1396480388c0198649bdecbf5d21f9f161b0f60b [diff] [blame] |
Generate Root Client Authorization Token BUG=25934385 Change-Id: Ic7d421f2c0152c7580014229c28495520d8c9981 Reviewed-on: https://weave-review.googlesource.com/1868 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
diff --git a/third_party/libuweave/src/macaroon_caveat.h b/third_party/libuweave/src/macaroon_caveat.h index 5f2c384..78373c8 100644 --- a/third_party/libuweave/src/macaroon_caveat.h +++ b/third_party/libuweave/src/macaroon_caveat.h
@@ -24,6 +24,13 @@ kUwMacaroonCaveatTypeSessionIdentifier = 16 } UwMacaroonCaveatType; +typedef enum { + kUwMacaroonCaveatScopeTypeOwner = 0, + kUwMacaroonCaveatScopeTypeManager = 1, + kUwMacaroonCaveatScopeTypeUser = 2, + kUwMacaroonCaveatScopeTypeViewer = 3, +} UwMacaroonCaveatScopeType; + bool uw_macaroon_caveat_create_without_value_(UwMacaroonCaveatType type, uint8_t* buffer, size_t buffer_size,