Vitaly Buka | 45dc9df | 2015-12-07 21:30:19 -0800 | [diff] [blame] | 1 | // Copyright 2015 The Weave Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "src/macaroon_context.h" |
| 6 | |
| 7 | #include "src/macaroon_caveat.h" |
| 8 | |
| 9 | bool uw_macaroon_context_get_(UwMacaroonCaveatType type, |
| 10 | const uint8_t** context, size_t* context_len) { |
| 11 | if (type != kUwMacaroonCaveatTypeSessionIdentifier) { |
| 12 | *context = NULL; |
| 13 | *context_len = 0; |
| 14 | } |
| 15 | |
| 16 | // TODO(bozhu): Waiting for a proper way to obtain the session identifier. |
| 17 | // Have we already implemented something related to session identifiers? |
| 18 | *context = NULL; |
| 19 | *context_len = 0; |
| 20 | |
| 21 | return true; |
| 22 | } |