kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

release_key.c (751B)


      1 /* Embedded release trust anchors and stable channel URL for `kit update`.
      2  * Official builds generate this configuration from KIT_RELEASE_PUBKEYS and
      3  * KIT_UPDATE_INDEX_URL; the build rejects an absent production configuration
      4  * and the repository's non-release test anchor. Development builds retain the
      5  * hermetic test anchor but intentionally have no default network channel. */
      6 
      7 #include "driver.h"
      8 #include <kit_release_config.h>
      9 
     10 const KitReleaseKey* driver_release_keys(unsigned* count) {
     11   if (count) *count = KIT_GENERATED_RELEASE_KEY_COUNT;
     12 #if KIT_GENERATED_RELEASE_KEY_COUNT > 0
     13   return kit_generated_release_keys;
     14 #else
     15   return NULL;
     16 #endif
     17 }
     18 
     19 const char* driver_release_index_url(void) {
     20   return kit_generated_update_index_url;
     21 }