1 2 static const char * const ss_policy = 3 "{" 4 "\"release\":" "\"01234567\"," 5 "\"product\":" "\"myproduct\"," 6 "\"schema-version\":" "1," 7 8 "\"retry\": [" /* named backoff / retry strategies */ 9 "{\"default\": {" 10 "\"backoff\": [" "1000," 11 "2000," 12 "3000," 13 "5000," 14 "10000" 15 "]," 16 "\"conceal\":" "25," 17 "\"jitterpc\":" "20," 18 "\"svalidping\":" "30," 19 "\"svalidhup\":" "35" 20 "}}" 21 "]," 22 "\"certs\": [" /* named individual certificates in BASE64 DER */ 23 /* 24 * Let's Encrypt certs for warmcat.com / libwebsockets.org 25 */ 26 "{\"isrg_root_x1\": \"" 27 "MIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAw" 28 "TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh" 29 "cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMTUwNjA0MTEwNDM4" 30 "WhcNMzUwNjA0MTEwNDM4WjBPMQswCQYDVQQGEwJVUzEpMCcGA1UEChMgSW50ZXJu" 31 "ZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMTDElTUkcgUm9vdCBY" 32 "MTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAK3oJHP0FDfzm54rVygc" 33 "h77ct984kIxuPOZXoHj3dcKi/vVqbvYATyjb3miGbESTtrFj/RQSa78f0uoxmyF+" 34 "0TM8ukj13Xnfs7j/EvEhmkvBioZxaUpmZmyPfjxwv60pIgbz5MDmgK7iS4+3mX6U" 35 "A5/TR5d8mUgjU+g4rk8Kb4Mu0UlXjIB0ttov0DiNewNwIRt18jA8+o+u3dpjq+sW" 36 "T8KOEUt+zwvo/7V3LvSye0rgTBIlDHCNAymg4VMk7BPZ7hm/ELNKjD+Jo2FR3qyH" 37 "B5T0Y3HsLuJvW5iB4Yl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wjChP4kqKOJ2qxq" 53 "4RgqsahDYVvTH9w7jXbyLeiNdd8XM2w9U/t7y0Ff/9yi0GE44Za4rF2LN9d11TPA" 54 "mRGunUHBcnWEvgJBQl9nJEiU0Zsnvgc/ubhPgXRR4Xq37Z0j4r7g1SgEEzwxA57d" 55 "emyPxgcYxn/eR44/KJ4EBs+lVDR3veyJm+kXQ99b21/+jh5Xos1AnX5iItreGCc=" 56 "\"}" 57 "]," 58 "\"trust_stores\": [" /* named cert chains */ 59 "{" 60 "\"name\": \"le_via_isrg\"," 61 "\"stack\": [" 62 "\"isrg_root_x1\"" 63 "]" 64 "}" 65 "]," 66 "\"s\": [" 67 68 "{\"test_stream\": {" 69 "\"endpoint\":" "\"warmcat.com\"," 70 "\"port\":" "443," 71 "\"protocol\":" "\"h2\"," 72 "\"http_method\":" "\"GET\"," 73 "\"http_url\":" "\"index.html\"," 74 "\"tls\":" "true," 75 "\"opportunistic\":" "true," 76 "\"retry\":" "\"default\"," 77 "\"tls_trust_store\":" "\"le_via_isrg\"" 78 "}},{" 79 /* 80 * "captive_portal_detect" describes 81 * what to do in order to check if the path to 82 * the Internet is being interrupted by a 83 * captive portal. 84 */ 85 "\"captive_portal_detect\": {" 86 "\"endpoint\":" "\"connectivitycheck.android.com\"," 87 "\"http_url\":" "\"generate_204\"," 88 "\"port\":" "80," 89 "\"protocol\":" "\"h1\"," 90 "\"http_method\":" "\"GET\"," 91 "\"opportunistic\":" "true," 92 "\"http_expect\":" "204," 93 "\"http_fail_redirect\": true" 94 "}}" 95 "]}" 96 ; 97 98 99