mbed client on ethernet with LWIP
Dependencies: mbed Socket lwip-eth lwip-sys lwip
Fork of mbed-client-classic-example-lwip by
security.h@9:96dddeefafe4, 2016-02-18 (annotated)
- Committer:
- geky
- Date:
- Thu Feb 18 15:57:29 2016 +0000
- Revision:
- 9:96dddeefafe4
- Parent:
- 7:711dfefe12ab
- Child:
- 11:cada08fc8a70
Updated libraries to latest revision
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
geky | 9:96dddeefafe4 | 1 | |
geky | 9:96dddeefafe4 | 2 | |
geky | 9:96dddeefafe4 | 3 | /* |
geky | 9:96dddeefafe4 | 4 | |
geky | 9:96dddeefafe4 | 5 | * Copyright (c) 2015 ARM Limited. All rights reserved. |
geky | 9:96dddeefafe4 | 6 | |
geky | 9:96dddeefafe4 | 7 | * SPDX-License-Identifier: Apache-2.0 |
geky | 9:96dddeefafe4 | 8 | |
geky | 9:96dddeefafe4 | 9 | * Licensed under the Apache License, Version 2.0 (the License); you may |
geky | 9:96dddeefafe4 | 10 | |
geky | 9:96dddeefafe4 | 11 | * not use this file except in compliance with the License. |
geky | 9:96dddeefafe4 | 12 | |
geky | 9:96dddeefafe4 | 13 | * You may obtain a copy of the License at |
geky | 9:96dddeefafe4 | 14 | |
geky | 9:96dddeefafe4 | 15 | * |
geky | 9:96dddeefafe4 | 16 | |
geky | 9:96dddeefafe4 | 17 | * http://www.apache.org/licenses/LICENSE-2.0 |
geky | 9:96dddeefafe4 | 18 | |
geky | 9:96dddeefafe4 | 19 | * |
geky | 9:96dddeefafe4 | 20 | |
geky | 9:96dddeefafe4 | 21 | * Unless required by applicable law or agreed to in writing, software |
geky | 9:96dddeefafe4 | 22 | |
geky | 9:96dddeefafe4 | 23 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
geky | 9:96dddeefafe4 | 24 | |
geky | 9:96dddeefafe4 | 25 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
geky | 9:96dddeefafe4 | 26 | |
geky | 9:96dddeefafe4 | 27 | * See the License for the specific language governing permissions and |
geky | 9:96dddeefafe4 | 28 | |
geky | 9:96dddeefafe4 | 29 | * limitations under the License. |
geky | 9:96dddeefafe4 | 30 | |
geky | 9:96dddeefafe4 | 31 | */ |
geky | 9:96dddeefafe4 | 32 | |
geky | 9:96dddeefafe4 | 33 | #ifndef __SECURITY_H__ |
geky | 9:96dddeefafe4 | 34 | |
geky | 9:96dddeefafe4 | 35 | #define __SECURITY_H__ |
geky | 9:96dddeefafe4 | 36 | |
geky | 9:96dddeefafe4 | 37 | |
geky | 9:96dddeefafe4 | 38 | |
geky | 9:96dddeefafe4 | 39 | #include <inttypes.h> |
geky | 9:96dddeefafe4 | 40 | |
geky | 9:96dddeefafe4 | 41 | |
geky | 9:96dddeefafe4 | 42 | |
geky | 9:96dddeefafe4 | 43 | #define MBED_DOMAIN "d2f49a23-a3a6-4335-bcf4-01db9f945d3d" |
geky | 9:96dddeefafe4 | 44 | |
geky | 9:96dddeefafe4 | 45 | #define MBED_ENDPOINT_NAME "4887c197-73de-4314-aec1-43da301d6dca" |
geky | 9:96dddeefafe4 | 46 | |
geky | 9:96dddeefafe4 | 47 | |
geky | 9:96dddeefafe4 | 48 | |
geky | 9:96dddeefafe4 | 49 | const uint8_t SERVER_CERT[] = "-----BEGIN CERTIFICATE-----\r\n" |
geky | 9:96dddeefafe4 | 50 | |
geky | 9:96dddeefafe4 | 51 | "MIIBmDCCAT6gAwIBAgIEVUCA0jAKBggqhkjOPQQDAjBLMQswCQYDVQQGEwJGSTEN\r\n" |
geky | 9:96dddeefafe4 | 52 | |
geky | 9:96dddeefafe4 | 53 | "MAsGA1UEBwwET3VsdTEMMAoGA1UECgwDQVJNMQwwCgYDVQQLDANJb1QxETAPBgNV\r\n" |
geky | 9:96dddeefafe4 | 54 | |
geky | 9:96dddeefafe4 | 55 | "BAMMCEFSTSBtYmVkMB4XDTE1MDQyOTA2NTc0OFoXDTE4MDQyOTA2NTc0OFowSzEL\r\n" |
geky | 9:96dddeefafe4 | 56 | |
geky | 9:96dddeefafe4 | 57 | "MAkGA1UEBhMCRkkxDTALBgNVBAcMBE91bHUxDDAKBgNVBAoMA0FSTTEMMAoGA1UE\r\n" |
geky | 9:96dddeefafe4 | 58 | |
geky | 9:96dddeefafe4 | 59 | "CwwDSW9UMREwDwYDVQQDDAhBUk0gbWJlZDBZMBMGByqGSM49AgEGCCqGSM49AwEH\r\n" |
geky | 9:96dddeefafe4 | 60 | |
geky | 9:96dddeefafe4 | 61 | "A0IABLuAyLSk0mA3awgFR5mw2RHth47tRUO44q/RdzFZnLsAsd18Esxd5LCpcT9w\r\n" |
geky | 9:96dddeefafe4 | 62 | |
geky | 9:96dddeefafe4 | 63 | "0tvNfBv4xJxGw0wcYrPDDb8/rjujEDAOMAwGA1UdEwQFMAMBAf8wCgYIKoZIzj0E\r\n" |
geky | 9:96dddeefafe4 | 64 | |
geky | 9:96dddeefafe4 | 65 | "AwIDSAAwRQIhAPAonEAkwixlJiyYRQQWpXtkMZax+VlEiS201BG0PpAzAiBh2RsD\r\n" |
geky | 9:96dddeefafe4 | 66 | |
geky | 9:96dddeefafe4 | 67 | "NxLKWwf4O7D6JasGBYf9+ZLwl0iaRjTjytO+Kw==\r\n" |
geky | 9:96dddeefafe4 | 68 | |
geky | 9:96dddeefafe4 | 69 | "-----END CERTIFICATE-----\r\n"; |
geky | 9:96dddeefafe4 | 70 | |
geky | 9:96dddeefafe4 | 71 | |
geky | 9:96dddeefafe4 | 72 | |
geky | 9:96dddeefafe4 | 73 | const uint8_t CERT[] = "-----BEGIN CERTIFICATE-----\r\n" |
geky | 9:96dddeefafe4 | 74 | |
geky | 9:96dddeefafe4 | 75 | "MIIBzzCCAXOgAwIBAgIEQ1vjEzAMBggqhkjOPQQDAgUAMDkxCzAJBgNVBAYTAkZ\r\n" |
geky | 9:96dddeefafe4 | 76 | |
geky | 9:96dddeefafe4 | 77 | "JMQwwCgYDVQQKDANBUk0xHDAaBgNVBAMME21iZWQtY29ubmVjdG9yLTIwMTYwHh\r\n" |
geky | 9:96dddeefafe4 | 78 | |
geky | 9:96dddeefafe4 | 79 | "cNMTYwMjE4MTU1MzE2WhcNMTYxMjMxMDYwMDAwWjCBoTFSMFAGA1UEAxNJZDJmN\r\n" |
geky | 9:96dddeefafe4 | 80 | |
geky | 9:96dddeefafe4 | 81 | "DlhMjMtYTNhNi00MzM1LWJjZjQtMDFkYjlmOTQ1ZDNkLzQ4ODdjMTk3LTczZGUt\r\n" |
geky | 9:96dddeefafe4 | 82 | |
geky | 9:96dddeefafe4 | 83 | "NDMxNC1hZWMxLTQzZGEzMDFkNmRjYTEMMAoGA1UECxMDQVJNMRIwEAYDVQQKEwl\r\n" |
geky | 9:96dddeefafe4 | 84 | |
geky | 9:96dddeefafe4 | 85 | "tYmVkIHVzZXIxDTALBgNVBAcTBE91bHUxDTALBgNVBAgTBE91bHUxCzAJBgNVBA\r\n" |
geky | 9:96dddeefafe4 | 86 | |
geky | 9:96dddeefafe4 | 87 | "YTAkZJMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEEFQ9YDafewRZTCS8SjsHg\r\n" |
geky | 9:96dddeefafe4 | 88 | |
geky | 9:96dddeefafe4 | 89 | "mE1/Kn0+2V49SiQ7cePEgsoRxEFe9ZxaStozgQC/FyPU6oFCfPmZn5FzEcTUQFl\r\n" |
geky | 9:96dddeefafe4 | 90 | |
geky | 9:96dddeefafe4 | 91 | "2jAMBggqhkjOPQQDAgUAA0gAMEUCIQC4yg0mkwD12KD0Gmr/X3IgpbGkGiDSp2C\r\n" |
geky | 9:96dddeefafe4 | 92 | |
geky | 9:96dddeefafe4 | 93 | "Z1VegqjbW5wIgA9p4jN/KZHNF40XtOj6rXHFG9bfNrGY62/ceg3KYwl8=\r\n" |
geky | 9:96dddeefafe4 | 94 | |
geky | 9:96dddeefafe4 | 95 | "-----END CERTIFICATE-----\r\n"; |
geky | 9:96dddeefafe4 | 96 | |
geky | 9:96dddeefafe4 | 97 | |
geky | 9:96dddeefafe4 | 98 | |
geky | 9:96dddeefafe4 | 99 | const uint8_t KEY[] = "-----BEGIN PRIVATE KEY-----\r\n" |
geky | 9:96dddeefafe4 | 100 | |
geky | 9:96dddeefafe4 | 101 | "MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgrSBl+5yOid5hB64l\r\n" |
geky | 9:96dddeefafe4 | 102 | |
geky | 9:96dddeefafe4 | 103 | "Ak3+H0mjeXzx63R36P20SFHQpBqhRANCAAQQVD1gNp97BFlMJLxKOweCYTX8qfT7\r\n" |
geky | 9:96dddeefafe4 | 104 | |
geky | 9:96dddeefafe4 | 105 | "ZXj1KJDtx48SCyhHEQV71nFpK2jOBAL8XI9TqgUJ8+ZmfkXMRxNRAWXa\r\n" |
geky | 9:96dddeefafe4 | 106 | |
geky | 9:96dddeefafe4 | 107 | "-----END PRIVATE KEY-----\r\n"; |
geky | 9:96dddeefafe4 | 108 | |
geky | 9:96dddeefafe4 | 109 | |
geky | 9:96dddeefafe4 | 110 | |
geky | 9:96dddeefafe4 | 111 | #endif //__SECURITY_H__ |