commit | 4f8f61594a74190ce6b57265edae48497622205b | [log] [tgz] |
---|---|---|
author | Yecheng Zhao <zyecheng@google.com> | Mon Mar 29 15:07:30 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Mar 30 17:10:43 2021 +0000 |
tree | d18165f3d280037ce3c2103f7bf6d4f26abc37ac | |
parent | ec53307d5298fee3a89e49b87d16e490c986fd94 [diff] |
[tls] Support build time injection for tls example www.google.com seems to refresh certificate every 3 months. It just broke the tls example application as it has been using fixed time so far. The CL adds support for injecting custom/build time as the time source. This is done by auto-generating source code for implementing the time_t time(time_t *) C API. The time_t value to return is passed from a gn argument, or default to build time if not specified. CRL checking is disabled by default as the in-tree test CRLs have already expired. This will cause load failure when build time is used. Will consider build-time CRL download and injection for demo purpose. Change-Id: I6d6339a6203d2f3ba2b06f8afac5af04e3a5e683 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/experimental/+/39465 Commit-Queue: Yecheng Zhao <zyecheng@google.com> Reviewed-by: Ali Zhang <alizhang@google.com>
This repository contains experimental pigweed modules.
Clone this repo with --recursive
to get all required submodules.
git clone --recursive https://pigweed.googlesource.com/pigweed/experimental
This will pull the Pigweed source repository into third_party/pigweed
. If you already cloned but forgot to --recursive
run git submodule update --init
to pull all submodules.