I added functionality to get the RSSI, BER, and Cell Neighbor for reporting connection issues to M2X
Dependencies: WncControllerK64F
mbedtls/source/version.c@16:8a4105d407d3, 2016-11-14 (annotated)
- Committer:
- JMF
- Date:
- Mon Nov 14 21:15:42 2016 +0000
- Revision:
- 16:8a4105d407d3
- Parent:
- 12:0071cb144c7a
updated to ensure it builds with TLS by correcting config defaults.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JMF | 12:0071cb144c7a | 1 | /* |
JMF | 12:0071cb144c7a | 2 | * Version information |
JMF | 12:0071cb144c7a | 3 | * |
JMF | 12:0071cb144c7a | 4 | * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved |
JMF | 12:0071cb144c7a | 5 | * SPDX-License-Identifier: Apache-2.0 |
JMF | 12:0071cb144c7a | 6 | * |
JMF | 12:0071cb144c7a | 7 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
JMF | 12:0071cb144c7a | 8 | * not use this file except in compliance with the License. |
JMF | 12:0071cb144c7a | 9 | * You may obtain a copy of the License at |
JMF | 12:0071cb144c7a | 10 | * |
JMF | 12:0071cb144c7a | 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
JMF | 12:0071cb144c7a | 12 | * |
JMF | 12:0071cb144c7a | 13 | * Unless required by applicable law or agreed to in writing, software |
JMF | 12:0071cb144c7a | 14 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
JMF | 12:0071cb144c7a | 15 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
JMF | 12:0071cb144c7a | 16 | * See the License for the specific language governing permissions and |
JMF | 12:0071cb144c7a | 17 | * limitations under the License. |
JMF | 12:0071cb144c7a | 18 | * |
JMF | 12:0071cb144c7a | 19 | * This file is part of mbed TLS (https://tls.mbed.org) |
JMF | 12:0071cb144c7a | 20 | */ |
JMF | 12:0071cb144c7a | 21 | |
JMF | 12:0071cb144c7a | 22 | #if !defined(MBEDTLS_CONFIG_FILE) |
JMF | 12:0071cb144c7a | 23 | #include "mbedtls/config.h" |
JMF | 12:0071cb144c7a | 24 | #else |
JMF | 12:0071cb144c7a | 25 | #include MBEDTLS_CONFIG_FILE |
JMF | 12:0071cb144c7a | 26 | #endif |
JMF | 12:0071cb144c7a | 27 | |
JMF | 12:0071cb144c7a | 28 | #if defined(MBEDTLS_VERSION_C) |
JMF | 12:0071cb144c7a | 29 | |
JMF | 12:0071cb144c7a | 30 | #include "mbedtls/version.h" |
JMF | 12:0071cb144c7a | 31 | #include <string.h> |
JMF | 12:0071cb144c7a | 32 | |
JMF | 12:0071cb144c7a | 33 | unsigned int mbedtls_version_get_number() |
JMF | 12:0071cb144c7a | 34 | { |
JMF | 12:0071cb144c7a | 35 | return( MBEDTLS_VERSION_NUMBER ); |
JMF | 12:0071cb144c7a | 36 | } |
JMF | 12:0071cb144c7a | 37 | |
JMF | 12:0071cb144c7a | 38 | void mbedtls_version_get_string( char *string ) |
JMF | 12:0071cb144c7a | 39 | { |
JMF | 12:0071cb144c7a | 40 | memcpy( string, MBEDTLS_VERSION_STRING, |
JMF | 12:0071cb144c7a | 41 | sizeof( MBEDTLS_VERSION_STRING ) ); |
JMF | 12:0071cb144c7a | 42 | } |
JMF | 12:0071cb144c7a | 43 | |
JMF | 12:0071cb144c7a | 44 | void mbedtls_version_get_string_full( char *string ) |
JMF | 12:0071cb144c7a | 45 | { |
JMF | 12:0071cb144c7a | 46 | memcpy( string, MBEDTLS_VERSION_STRING_FULL, |
JMF | 12:0071cb144c7a | 47 | sizeof( MBEDTLS_VERSION_STRING_FULL ) ); |
JMF | 12:0071cb144c7a | 48 | } |
JMF | 12:0071cb144c7a | 49 | |
JMF | 12:0071cb144c7a | 50 | #endif /* MBEDTLS_VERSION_C */ |