RetroArch
Macros | Functions | Variables
ssl_ciphersuites.c File Reference

SSL ciphersuites for mbed TLS. More...

#include "mbedtls/config.h"
#include "mbedtls/platform.h"
#include "mbedtls/ssl_ciphersuites.h"
#include "mbedtls/ssl.h"
#include <string.h>
Include dependency graph for ssl_ciphersuites.c:

Macros

#define MAX_CIPHERSUITES
 

Functions

const int * mbedtls_ssl_list_ciphersuites (void)
 Returns the list of ciphersuites supported by the SSL/TLS module. More...
 
const mbedtls_ssl_ciphersuite_tmbedtls_ssl_ciphersuite_from_string (const char *ciphersuite_name)
 
const mbedtls_ssl_ciphersuite_tmbedtls_ssl_ciphersuite_from_id (int ciphersuite)
 
const char * mbedtls_ssl_get_ciphersuite_name (const int ciphersuite_id)
 Return the name of the ciphersuite associated with the given ID. More...
 
int mbedtls_ssl_get_ciphersuite_id (const char *ciphersuite_name)
 Return the ID of the ciphersuite associated with the given name. More...
 
mbedtls_pk_type_t mbedtls_ssl_get_ciphersuite_sig_pk_alg (const mbedtls_ssl_ciphersuite_t *info)
 
mbedtls_pk_type_t mbedtls_ssl_get_ciphersuite_sig_alg (const mbedtls_ssl_ciphersuite_t *info)
 
int mbedtls_ssl_ciphersuite_uses_ec (const mbedtls_ssl_ciphersuite_t *info)
 
int mbedtls_ssl_ciphersuite_uses_psk (const mbedtls_ssl_ciphersuite_t *info)
 

Variables

static const int ciphersuite_preference []
 
static const mbedtls_ssl_ciphersuite_t ciphersuite_definitions []
 
static int supported_ciphersuites [MAX_CIPHERSUITES]
 
static int ssl_ciphersuites_supported_init = 0
 

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)

Macro Definition Documentation

◆ MAX_CIPHERSUITES

#define MAX_CIPHERSUITES
Value:
static const mbedtls_ssl_ciphersuite_t ciphersuite_definitions[]
Definition: ssl_ciphersuites.c:267

Function Documentation

◆ mbedtls_ssl_ciphersuite_from_id()

const mbedtls_ssl_ciphersuite_t* mbedtls_ssl_ciphersuite_from_id ( int  ciphersuite)
Here is the caller graph for this function:

◆ mbedtls_ssl_ciphersuite_from_string()

const mbedtls_ssl_ciphersuite_t* mbedtls_ssl_ciphersuite_from_string ( const char *  ciphersuite_name)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mbedtls_ssl_ciphersuite_uses_ec()

int mbedtls_ssl_ciphersuite_uses_ec ( const mbedtls_ssl_ciphersuite_t info)
Here is the caller graph for this function:

◆ mbedtls_ssl_ciphersuite_uses_psk()

int mbedtls_ssl_ciphersuite_uses_psk ( const mbedtls_ssl_ciphersuite_t info)
Here is the caller graph for this function:

◆ mbedtls_ssl_get_ciphersuite_id()

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
Here is the call graph for this function:

◆ mbedtls_ssl_get_ciphersuite_name()

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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mbedtls_ssl_get_ciphersuite_sig_alg()

mbedtls_pk_type_t mbedtls_ssl_get_ciphersuite_sig_alg ( const mbedtls_ssl_ciphersuite_t info)
Here is the caller graph for this function:

◆ mbedtls_ssl_get_ciphersuite_sig_pk_alg()

mbedtls_pk_type_t mbedtls_ssl_get_ciphersuite_sig_pk_alg ( const mbedtls_ssl_ciphersuite_t info)
Here is the caller graph for this function:

◆ mbedtls_ssl_list_ciphersuites()

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.
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ ciphersuite_definitions

const mbedtls_ssl_ciphersuite_t ciphersuite_definitions[]
static

◆ ciphersuite_preference

const int ciphersuite_preference[]
static

◆ ssl_ciphersuites_supported_init

int ssl_ciphersuites_supported_init = 0
static

◆ supported_ciphersuites

int supported_ciphersuites[MAX_CIPHERSUITES]
static