Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
security.h@1:8950e6a891df, 2017-04-26 (annotated)
- Committer:
- edamame22
- Date:
- Wed Apr 26 11:20:41 2017 +0900
- Revision:
- 1:8950e6a891df
- Parent:
- 0:29983394c6b6
Fix a momery overrun bug, moved global variables to local func
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| edamame22 | 0:29983394c6b6 | 1 | /* |
| edamame22 | 0:29983394c6b6 | 2 | * Copyright (c) 2015 ARM Limited. All rights reserved. |
| edamame22 | 0:29983394c6b6 | 3 | * SPDX-License-Identifier: Apache-2.0 |
| edamame22 | 0:29983394c6b6 | 4 | * Licensed under the Apache License, Version 2.0 (the License); you may |
| edamame22 | 0:29983394c6b6 | 5 | * not use this file except in compliance with the License. |
| edamame22 | 0:29983394c6b6 | 6 | * You may obtain a copy of the License at |
| edamame22 | 0:29983394c6b6 | 7 | * |
| edamame22 | 0:29983394c6b6 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| edamame22 | 0:29983394c6b6 | 9 | * |
| edamame22 | 0:29983394c6b6 | 10 | * Unless required by applicable law or agreed to in writing, software |
| edamame22 | 0:29983394c6b6 | 11 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
| edamame22 | 0:29983394c6b6 | 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| edamame22 | 0:29983394c6b6 | 13 | * See the License for the specific language governing permissions and |
| edamame22 | 0:29983394c6b6 | 14 | * limitations under the License. |
| edamame22 | 0:29983394c6b6 | 15 | */ |
| edamame22 | 0:29983394c6b6 | 16 | #ifndef __SECURITY_H__ |
| edamame22 | 0:29983394c6b6 | 17 | #define __SECURITY_H__ |
| edamame22 | 0:29983394c6b6 | 18 | |
| edamame22 | 0:29983394c6b6 | 19 | #include <inttypes.h> |
| edamame22 | 0:29983394c6b6 | 20 | |
| edamame22 | 0:29983394c6b6 | 21 | #define MBED_DOMAIN "DOMAIN" |
| edamame22 | 0:29983394c6b6 | 22 | #define MBED_ENDPOINT_NAME "ENDPOINT_NAME" |
| edamame22 | 0:29983394c6b6 | 23 | |
| edamame22 | 0:29983394c6b6 | 24 | const uint8_t SERVER_CERT[] = "-----BEGIN CERTIFICATE-----\r\n" |
| edamame22 | 0:29983394c6b6 | 25 | "-----END CERTIFICATE-----\r\n"; |
| edamame22 | 0:29983394c6b6 | 26 | |
| edamame22 | 0:29983394c6b6 | 27 | const uint8_t CERT[] = "-----BEGIN CERTIFICATE-----\r\n" |
| edamame22 | 0:29983394c6b6 | 28 | "-----END CERTIFICATE-----\r\n"; |
| edamame22 | 0:29983394c6b6 | 29 | |
| edamame22 | 0:29983394c6b6 | 30 | const uint8_t KEY[] = "-----BEGIN PRIVATE KEY-----\r\n" |
| edamame22 | 0:29983394c6b6 | 31 | "-----END PRIVATE KEY-----\r\n"; |
| edamame22 | 0:29983394c6b6 | 32 | |
| edamame22 | 0:29983394c6b6 | 33 | #endif //__SECURITY_H__ |
| edamame22 | 0:29983394c6b6 | 34 | |
| edamame22 | 0:29983394c6b6 | 35 | #error "You need to get security.h credentials from connector.mbed.com and replace the content of this security.h file" |
| edamame22 | 0:29983394c6b6 | 36 |