• Home
  • Raw
  • Download

Lines Matching refs:caveat

300 bool uw_macaroon_caveat_get_type_(const UwMacaroonCaveat* caveat,  in uw_macaroon_caveat_get_type_()  argument
302 if (caveat == NULL || type == NULL) { in uw_macaroon_caveat_get_type_()
307 if (!uw_macaroon_encoding_decode_uint_(caveat->bytes, caveat->num_bytes, in uw_macaroon_caveat_get_type_()
321 const UwMacaroonCaveat* caveat, in uw_macaroon_caveat_sign_() argument
324 if (key == NULL || key_len == 0 || context == NULL || caveat == NULL || in uw_macaroon_caveat_sign_()
330 if (!uw_macaroon_caveat_get_type_(caveat, &caveat_type) || in uw_macaroon_caveat_sign_()
343 (uint32_t)(caveat->num_bytes), bstr_cbor_prefix, in uw_macaroon_caveat_sign_()
350 {caveat->bytes, caveat->num_bytes}, in uw_macaroon_caveat_sign_()
365 (uint32_t)(context->ble_session_id_len + caveat->num_bytes), in uw_macaroon_caveat_sign_()
380 {caveat->bytes, caveat->num_bytes}, in uw_macaroon_caveat_sign_()
402 const UwMacaroonCaveat* caveat, in update_delegatee_list() argument
437 caveat, &(result->delegatees[result->num_delegatees].id), in update_delegatee_list()
447 bool uw_macaroon_caveat_validate_(const UwMacaroonCaveat* caveat, in uw_macaroon_caveat_validate_() argument
451 if (caveat == NULL || context == NULL || state == NULL || result == NULL) { in uw_macaroon_caveat_validate_()
460 if (!uw_macaroon_caveat_get_type_(caveat, &caveat_type)) { in uw_macaroon_caveat_validate_()
473 if (!uw_macaroon_caveat_get_value_uint_(caveat, &issued_time) || in uw_macaroon_caveat_validate_()
498 return update_delegatee_list(caveat_type, caveat, state->issued_time, in uw_macaroon_caveat_validate_()
503 if (!uw_macaroon_caveat_get_value_uint_(caveat, &expiration_time)) { in uw_macaroon_caveat_validate_()
511 if (!uw_macaroon_caveat_get_value_uint_(caveat, &scope) || in uw_macaroon_caveat_validate_()
527 caveat, &(result->lan_session_id), &(result->lan_session_id_len)); in uw_macaroon_caveat_validate_()
533 bool uw_macaroon_caveat_get_value_uint_(const UwMacaroonCaveat* caveat, in uw_macaroon_caveat_get_value_uint_() argument
535 if (caveat == NULL || unsigned_int == NULL) { in uw_macaroon_caveat_get_value_uint_()
540 if (!uw_macaroon_caveat_get_type_(caveat, &type)) { in uw_macaroon_caveat_get_value_uint_()
552 if (!uw_macaroon_encoding_get_item_len_(caveat->bytes, caveat->num_bytes, in uw_macaroon_caveat_get_value_uint_()
558 caveat->bytes + offset, caveat->num_bytes - offset, unsigned_int); in uw_macaroon_caveat_get_value_uint_()
561 bool uw_macaroon_caveat_get_value_bstr_(const UwMacaroonCaveat* caveat, in uw_macaroon_caveat_get_value_bstr_() argument
564 if (caveat == NULL || str == NULL || str_len == NULL) { in uw_macaroon_caveat_get_value_bstr_()
569 if (!uw_macaroon_caveat_get_type_(caveat, &type)) { in uw_macaroon_caveat_get_value_bstr_()
584 if (!uw_macaroon_encoding_get_item_len_(caveat->bytes, caveat->num_bytes, in uw_macaroon_caveat_get_value_bstr_()
590 caveat->bytes + offset, caveat->num_bytes - offset, str, str_len); in uw_macaroon_caveat_get_value_bstr_()