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.
Dependencies: WncControllerK64F
Dependents: WNCProximityMqtt Pubnub_ATT_IoT_SK_WNC_sync BluemixDemo BluemixQS ... more
See the WNCInterface README in the Wiki tab for detailed information on this library.
mbedtls/source/version.c@14:79bcbfbb93c7, 2016-11-02 (annotated)
- Committer:
- JMF
- Date:
- Wed Nov 02 16:28:43 2016 +0000
- Revision:
- 14:79bcbfbb93c7
- Parent:
- 12:0071cb144c7a
Adding support for SSL/TLS using mbed TLS
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 */ |

