mbed client on ethernet with LWIP

Dependencies:   mbed Socket lwip-eth lwip-sys lwip

Fork of mbed-client-classic-example-lwip by sandbox

Committer:
mbedAustin
Date:
Thu Jun 09 17:08:36 2016 +0000
Revision:
11:cada08fc8a70
Commit for public Consumption

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbedAustin 11:cada08fc8a70 1 /*
mbedAustin 11:cada08fc8a70 2 * Version information
mbedAustin 11:cada08fc8a70 3 *
mbedAustin 11:cada08fc8a70 4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
mbedAustin 11:cada08fc8a70 5 * SPDX-License-Identifier: Apache-2.0
mbedAustin 11:cada08fc8a70 6 *
mbedAustin 11:cada08fc8a70 7 * Licensed under the Apache License, Version 2.0 (the "License"); you may
mbedAustin 11:cada08fc8a70 8 * not use this file except in compliance with the License.
mbedAustin 11:cada08fc8a70 9 * You may obtain a copy of the License at
mbedAustin 11:cada08fc8a70 10 *
mbedAustin 11:cada08fc8a70 11 * http://www.apache.org/licenses/LICENSE-2.0
mbedAustin 11:cada08fc8a70 12 *
mbedAustin 11:cada08fc8a70 13 * Unless required by applicable law or agreed to in writing, software
mbedAustin 11:cada08fc8a70 14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
mbedAustin 11:cada08fc8a70 15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
mbedAustin 11:cada08fc8a70 16 * See the License for the specific language governing permissions and
mbedAustin 11:cada08fc8a70 17 * limitations under the License.
mbedAustin 11:cada08fc8a70 18 *
mbedAustin 11:cada08fc8a70 19 * This file is part of mbed TLS (https://tls.mbed.org)
mbedAustin 11:cada08fc8a70 20 */
mbedAustin 11:cada08fc8a70 21
mbedAustin 11:cada08fc8a70 22 #if !defined(MBEDTLS_CONFIG_FILE)
mbedAustin 11:cada08fc8a70 23 #include "mbedtls/config.h"
mbedAustin 11:cada08fc8a70 24 #else
mbedAustin 11:cada08fc8a70 25 #include MBEDTLS_CONFIG_FILE
mbedAustin 11:cada08fc8a70 26 #endif
mbedAustin 11:cada08fc8a70 27
mbedAustin 11:cada08fc8a70 28 #if defined(MBEDTLS_VERSION_C)
mbedAustin 11:cada08fc8a70 29
mbedAustin 11:cada08fc8a70 30 #include "mbedtls/version.h"
mbedAustin 11:cada08fc8a70 31 #include <string.h>
mbedAustin 11:cada08fc8a70 32
mbedAustin 11:cada08fc8a70 33 unsigned int mbedtls_version_get_number()
mbedAustin 11:cada08fc8a70 34 {
mbedAustin 11:cada08fc8a70 35 return( MBEDTLS_VERSION_NUMBER );
mbedAustin 11:cada08fc8a70 36 }
mbedAustin 11:cada08fc8a70 37
mbedAustin 11:cada08fc8a70 38 void mbedtls_version_get_string( char *string )
mbedAustin 11:cada08fc8a70 39 {
mbedAustin 11:cada08fc8a70 40 memcpy( string, MBEDTLS_VERSION_STRING,
mbedAustin 11:cada08fc8a70 41 sizeof( MBEDTLS_VERSION_STRING ) );
mbedAustin 11:cada08fc8a70 42 }
mbedAustin 11:cada08fc8a70 43
mbedAustin 11:cada08fc8a70 44 void mbedtls_version_get_string_full( char *string )
mbedAustin 11:cada08fc8a70 45 {
mbedAustin 11:cada08fc8a70 46 memcpy( string, MBEDTLS_VERSION_STRING_FULL,
mbedAustin 11:cada08fc8a70 47 sizeof( MBEDTLS_VERSION_STRING_FULL ) );
mbedAustin 11:cada08fc8a70 48 }
mbedAustin 11:cada08fc8a70 49
mbedAustin 11:cada08fc8a70 50 #endif /* MBEDTLS_VERSION_C */