This is a fork due to permission issues

Dependencies:   mbed Socket lwip-eth lwip-sys lwip

Fork of 6_songs-from-the-cloud by MakingMusicWorkshop

Committer:
timbeight
Date:
Thu May 19 16:02:10 2016 +0000
Revision:
1:0ddbe2d3319c
Parent:
0:f7c60d3e7b8a
This is my first commit while in the class.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
timbeight 1:0ddbe2d3319c 1 /*
timbeight 1:0ddbe2d3319c 2 * Copyright (c) 2015 ARM Limited. All rights reserved.
timbeight 1:0ddbe2d3319c 3 * SPDX-License-Identifier: Apache-2.0
timbeight 1:0ddbe2d3319c 4 * Licensed under the Apache License, Version 2.0 (the License); you may
timbeight 1:0ddbe2d3319c 5 * not use this file except in compliance with the License.
timbeight 1:0ddbe2d3319c 6 * You may obtain a copy of the License at
timbeight 1:0ddbe2d3319c 7 *
timbeight 1:0ddbe2d3319c 8 * http://www.apache.org/licenses/LICENSE-2.0
timbeight 1:0ddbe2d3319c 9 *
timbeight 1:0ddbe2d3319c 10 * Unless required by applicable law or agreed to in writing, software
timbeight 1:0ddbe2d3319c 11 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
timbeight 1:0ddbe2d3319c 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
timbeight 1:0ddbe2d3319c 13 * See the License for the specific language governing permissions and
timbeight 1:0ddbe2d3319c 14 * limitations under the License.
timbeight 1:0ddbe2d3319c 15 */
timbeight 1:0ddbe2d3319c 16 #ifndef __SECURITY_H__
timbeight 1:0ddbe2d3319c 17 #define __SECURITY_H__
timbeight 1:0ddbe2d3319c 18
timbeight 1:0ddbe2d3319c 19 #include <inttypes.h>
timbeight 1:0ddbe2d3319c 20
timbeight 1:0ddbe2d3319c 21 #define MBED_DOMAIN "6bc7f122-40f6-4302-8bfb-134c7c78a549"
timbeight 1:0ddbe2d3319c 22 #define MBED_ENDPOINT_NAME "c1732d14-044f-4b6e-8a98-f808940be2c7"
timbeight 1:0ddbe2d3319c 23
timbeight 1:0ddbe2d3319c 24 const uint8_t SERVER_CERT[] = "-----BEGIN CERTIFICATE-----\r\n"
timbeight 1:0ddbe2d3319c 25 "MIIBmDCCAT6gAwIBAgIEVUCA0jAKBggqhkjOPQQDAjBLMQswCQYDVQQGEwJGSTEN\r\n"
timbeight 1:0ddbe2d3319c 26 "MAsGA1UEBwwET3VsdTEMMAoGA1UECgwDQVJNMQwwCgYDVQQLDANJb1QxETAPBgNV\r\n"
timbeight 1:0ddbe2d3319c 27 "BAMMCEFSTSBtYmVkMB4XDTE1MDQyOTA2NTc0OFoXDTE4MDQyOTA2NTc0OFowSzEL\r\n"
timbeight 1:0ddbe2d3319c 28 "MAkGA1UEBhMCRkkxDTALBgNVBAcMBE91bHUxDDAKBgNVBAoMA0FSTTEMMAoGA1UE\r\n"
timbeight 1:0ddbe2d3319c 29 "CwwDSW9UMREwDwYDVQQDDAhBUk0gbWJlZDBZMBMGByqGSM49AgEGCCqGSM49AwEH\r\n"
timbeight 1:0ddbe2d3319c 30 "A0IABLuAyLSk0mA3awgFR5mw2RHth47tRUO44q/RdzFZnLsAsd18Esxd5LCpcT9w\r\n"
timbeight 1:0ddbe2d3319c 31 "0tvNfBv4xJxGw0wcYrPDDb8/rjujEDAOMAwGA1UdEwQFMAMBAf8wCgYIKoZIzj0E\r\n"
timbeight 1:0ddbe2d3319c 32 "AwIDSAAwRQIhAPAonEAkwixlJiyYRQQWpXtkMZax+VlEiS201BG0PpAzAiBh2RsD\r\n"
timbeight 1:0ddbe2d3319c 33 "NxLKWwf4O7D6JasGBYf9+ZLwl0iaRjTjytO+Kw==\r\n"
timbeight 1:0ddbe2d3319c 34 "-----END CERTIFICATE-----\r\n";
timbeight 1:0ddbe2d3319c 35
timbeight 1:0ddbe2d3319c 36 const uint8_t CERT[] = "-----BEGIN CERTIFICATE-----\r\n"
timbeight 1:0ddbe2d3319c 37 "MIIBzzCCAXOgAwIBAgIERS5tJTAMBggqhkjOPQQDAgUAMDkxCzAJBgNVBAYTAkZ\r\n"
timbeight 1:0ddbe2d3319c 38 "JMQwwCgYDVQQKDANBUk0xHDAaBgNVBAMME21iZWQtY29ubmVjdG9yLTIwMTYwHh\r\n"
timbeight 1:0ddbe2d3319c 39 "cNMTYwNTE5MTUwODU4WhcNMTYxMjMxMDYwMDAwWjCBoTFSMFAGA1UEAxNJNmJjN\r\n"
timbeight 1:0ddbe2d3319c 40 "2YxMjItNDBmNi00MzAyLThiZmItMTM0YzdjNzhhNTQ5L2MxNzMyZDE0LTA0NGYt\r\n"
timbeight 1:0ddbe2d3319c 41 "NGI2ZS04YTk4LWY4MDg5NDBiZTJjNzEMMAoGA1UECxMDQVJNMRIwEAYDVQQKEwl\r\n"
timbeight 1:0ddbe2d3319c 42 "tYmVkIHVzZXIxDTALBgNVBAcTBE91bHUxDTALBgNVBAgTBE91bHUxCzAJBgNVBA\r\n"
timbeight 1:0ddbe2d3319c 43 "YTAkZJMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEIKWsTI+P/ndKd36l4z51U\r\n"
timbeight 1:0ddbe2d3319c 44 "FJaoq6jtV51V2dLp/AVRAXYqsP2sW4/HSHVvadQ3n4GGuqHHoI9X1My7nMFdQAb\r\n"
timbeight 1:0ddbe2d3319c 45 "PTAMBggqhkjOPQQDAgUAA0gAMEUCIGw/yV58fU1uvV8vH75zkEeFt/Luh8yBuC0\r\n"
timbeight 1:0ddbe2d3319c 46 "EINe3N+jdAiEAo8FRg+CIUWUfvqJfYOqb1Cai8LJ4JVLgqpmkbdsczyU=\r\n"
timbeight 1:0ddbe2d3319c 47 "-----END CERTIFICATE-----\r\n";
timbeight 1:0ddbe2d3319c 48
timbeight 1:0ddbe2d3319c 49 const uint8_t KEY[] = "-----BEGIN PRIVATE KEY-----\r\n"
timbeight 1:0ddbe2d3319c 50 "MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQg8lf/W+mFr+tubrAG\r\n"
timbeight 1:0ddbe2d3319c 51 "0XHIe99vbSubuuX16LHfF/1oHpGhRANCAAQgpaxMj4/+d0p3fqXjPnVQUlqirqO1\r\n"
timbeight 1:0ddbe2d3319c 52 "XnVXZ0un8BVEBdiqw/axbj8dIdW9p1DefgYa6ocegj1fUzLucwV1ABs9\r\n"
timbeight 1:0ddbe2d3319c 53 "-----END PRIVATE KEY-----\r\n";
timbeight 1:0ddbe2d3319c 54
timbeight 1:0ddbe2d3319c 55 #endif //__SECURITY_H__#error "No security.h file, go to https://connector.mbed.com/#credentials to get credentials. Then put it in 6_songs-from-the-cloud/security.h."