Osamu Nakamura
/
GR-PEACH_mbed-os-example-client
mbed-os-example-client which can run on GR-PEACH as-is
security.h@1:297185d9bb5e, 2017-09-04 (annotated)
- Committer:
- Osamu Nakamura
- Date:
- Mon Sep 04 17:13:29 2017 +0900
- Revision:
- 1:297185d9bb5e
- Parent:
- 0:c0b64bdd4f07
Update for compiling this program on online compiler
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Osamu Nakamura |
0:c0b64bdd4f07 | 1 | /* |
Osamu Nakamura |
0:c0b64bdd4f07 | 2 | * Copyright (c) 2015 ARM Limited. All rights reserved. |
Osamu Nakamura |
0:c0b64bdd4f07 | 3 | * SPDX-License-Identifier: Apache-2.0 |
Osamu Nakamura |
0:c0b64bdd4f07 | 4 | * Licensed under the Apache License, Version 2.0 (the License); you may |
Osamu Nakamura |
0:c0b64bdd4f07 | 5 | * not use this file except in compliance with the License. |
Osamu Nakamura |
0:c0b64bdd4f07 | 6 | * You may obtain a copy of the License at |
Osamu Nakamura |
0:c0b64bdd4f07 | 7 | * |
Osamu Nakamura |
0:c0b64bdd4f07 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Osamu Nakamura |
0:c0b64bdd4f07 | 9 | * |
Osamu Nakamura |
0:c0b64bdd4f07 | 10 | * Unless required by applicable law or agreed to in writing, software |
Osamu Nakamura |
0:c0b64bdd4f07 | 11 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
Osamu Nakamura |
0:c0b64bdd4f07 | 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Osamu Nakamura |
0:c0b64bdd4f07 | 13 | * See the License for the specific language governing permissions and |
Osamu Nakamura |
0:c0b64bdd4f07 | 14 | * limitations under the License. |
Osamu Nakamura |
0:c0b64bdd4f07 | 15 | */ |
Osamu Nakamura |
0:c0b64bdd4f07 | 16 | #ifndef __SECURITY_H__ |
Osamu Nakamura |
0:c0b64bdd4f07 | 17 | #define __SECURITY_H__ |
Osamu Nakamura |
0:c0b64bdd4f07 | 18 | |
Osamu Nakamura |
0:c0b64bdd4f07 | 19 | #include <inttypes.h> |
Osamu Nakamura |
0:c0b64bdd4f07 | 20 | |
Osamu Nakamura |
0:c0b64bdd4f07 | 21 | #define MBED_DOMAIN "DOMAIN" |
Osamu Nakamura |
0:c0b64bdd4f07 | 22 | #define MBED_ENDPOINT_NAME "ENDPOINT_NAME" |
Osamu Nakamura |
0:c0b64bdd4f07 | 23 | |
Osamu Nakamura |
0:c0b64bdd4f07 | 24 | const uint8_t SERVER_CERT[] = "-----BEGIN CERTIFICATE-----\r\n" |
Osamu Nakamura |
0:c0b64bdd4f07 | 25 | "-----END CERTIFICATE-----\r\n"; |
Osamu Nakamura |
0:c0b64bdd4f07 | 26 | |
Osamu Nakamura |
0:c0b64bdd4f07 | 27 | const uint8_t CERT[] = "-----BEGIN CERTIFICATE-----\r\n" |
Osamu Nakamura |
0:c0b64bdd4f07 | 28 | "-----END CERTIFICATE-----\r\n"; |
Osamu Nakamura |
0:c0b64bdd4f07 | 29 | |
Osamu Nakamura |
0:c0b64bdd4f07 | 30 | const uint8_t KEY[] = "-----BEGIN PRIVATE KEY-----\r\n" |
Osamu Nakamura |
0:c0b64bdd4f07 | 31 | "-----END PRIVATE KEY-----\r\n"; |
Osamu Nakamura |
0:c0b64bdd4f07 | 32 | |
Osamu Nakamura |
0:c0b64bdd4f07 | 33 | #endif //__SECURITY_H__ |
Osamu Nakamura |
0:c0b64bdd4f07 | 34 | |
Osamu Nakamura |
0:c0b64bdd4f07 | 35 | #error "You need to get security.h credentials from connector.mbed.com and replace the content of this security.h file" |