mbedtls ported to mbed-classic

Fork of mbedtls by Christopher Haster

Embed: (wiki syntax)

« Back to documentation index

ssl_ciphersuites.c File Reference

ssl_ciphersuites.c File Reference

SSL ciphersuites for mbed TLS. More...

Go to the source code of this file.

Functions

const int * mbedtls_ssl_list_ciphersuites (void)
 Returns the list of ciphersuites supported by the SSL/TLS module.
const char * mbedtls_ssl_get_ciphersuite_name (const int ciphersuite_id)
 Return the name of the ciphersuite associated with the given ID.
int mbedtls_ssl_get_ciphersuite_id (const char *ciphersuite_name)
 Return the ID of the ciphersuite associated with the given name.

Detailed Description

SSL ciphersuites for mbed TLS.

Copyright (C) 2006-2015, ARM Limited, All Rights Reserved SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

This file is part of mbed TLS (https://tls.mbed.org)

Definition in file ssl_ciphersuites.c.


Function Documentation

int mbedtls_ssl_get_ciphersuite_id ( const char *  ciphersuite_name )

Return the ID of the ciphersuite associated with the given name.

Parameters:
ciphersuite_nameSSL ciphersuite name
Returns:
the ID with the ciphersuite or 0 if not found

Definition at line 1781 of file ssl_ciphersuites.c.

const char* mbedtls_ssl_get_ciphersuite_name ( const int  ciphersuite_id )

Return the name of the ciphersuite associated with the given ID.

Parameters:
ciphersuite_idSSL ciphersuite ID
Returns:
a string containing the ciphersuite name

Definition at line 1769 of file ssl_ciphersuites.c.

const int* mbedtls_ssl_list_ciphersuites ( void   )

Returns the list of ciphersuites supported by the SSL/TLS module.

Returns:
a statically allocated array of ciphersuites, the last entry is 0.

Definition at line 1692 of file ssl_ciphersuites.c.