-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
- Loading branch information
1 parent
17b1e2f
commit 4e62cbc
Showing
63 changed files
with
20,862 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/* Automatically generated by generate_ssl_debug_helpers.py. DO NOT EDIT. */ | ||
|
||
#include "common.h" | ||
|
||
#if defined(MBEDTLS_DEBUG_C) | ||
|
||
#include "ssl_debug_helpers_generated.h" | ||
|
||
|
||
const char *mbedtls_ssl_states_str( mbedtls_ssl_states in ) | ||
{ | ||
const char * in_to_str[]= | ||
{ | ||
[MBEDTLS_SSL_HELLO_REQUEST] = "MBEDTLS_SSL_HELLO_REQUEST", | ||
[MBEDTLS_SSL_CLIENT_HELLO] = "MBEDTLS_SSL_CLIENT_HELLO", | ||
[MBEDTLS_SSL_SERVER_HELLO] = "MBEDTLS_SSL_SERVER_HELLO", | ||
[MBEDTLS_SSL_SERVER_CERTIFICATE] = "MBEDTLS_SSL_SERVER_CERTIFICATE", | ||
[MBEDTLS_SSL_SERVER_KEY_EXCHANGE] = "MBEDTLS_SSL_SERVER_KEY_EXCHANGE", | ||
[MBEDTLS_SSL_CERTIFICATE_REQUEST] = "MBEDTLS_SSL_CERTIFICATE_REQUEST", | ||
[MBEDTLS_SSL_SERVER_HELLO_DONE] = "MBEDTLS_SSL_SERVER_HELLO_DONE", | ||
[MBEDTLS_SSL_CLIENT_CERTIFICATE] = "MBEDTLS_SSL_CLIENT_CERTIFICATE", | ||
[MBEDTLS_SSL_CLIENT_KEY_EXCHANGE] = "MBEDTLS_SSL_CLIENT_KEY_EXCHANGE", | ||
[MBEDTLS_SSL_CERTIFICATE_VERIFY] = "MBEDTLS_SSL_CERTIFICATE_VERIFY", | ||
[MBEDTLS_SSL_CLIENT_CHANGE_CIPHER_SPEC] = "MBEDTLS_SSL_CLIENT_CHANGE_CIPHER_SPEC", | ||
[MBEDTLS_SSL_CLIENT_FINISHED] = "MBEDTLS_SSL_CLIENT_FINISHED", | ||
[MBEDTLS_SSL_SERVER_CHANGE_CIPHER_SPEC] = "MBEDTLS_SSL_SERVER_CHANGE_CIPHER_SPEC", | ||
[MBEDTLS_SSL_SERVER_FINISHED] = "MBEDTLS_SSL_SERVER_FINISHED", | ||
[MBEDTLS_SSL_FLUSH_BUFFERS] = "MBEDTLS_SSL_FLUSH_BUFFERS", | ||
[MBEDTLS_SSL_HANDSHAKE_WRAPUP] = "MBEDTLS_SSL_HANDSHAKE_WRAPUP", | ||
[MBEDTLS_SSL_HANDSHAKE_OVER] = "MBEDTLS_SSL_HANDSHAKE_OVER", | ||
[MBEDTLS_SSL_SERVER_NEW_SESSION_TICKET] = "MBEDTLS_SSL_SERVER_NEW_SESSION_TICKET", | ||
[MBEDTLS_SSL_SERVER_HELLO_VERIFY_REQUEST_SENT] = "MBEDTLS_SSL_SERVER_HELLO_VERIFY_REQUEST_SENT", | ||
#if defined(MBEDTLS_SSL_PROTO_TLS1_3) | ||
[MBEDTLS_SSL_ENCRYPTED_EXTENSIONS] = "MBEDTLS_SSL_ENCRYPTED_EXTENSIONS", | ||
[MBEDTLS_SSL_CLIENT_CERTIFICATE_VERIFY] = "MBEDTLS_SSL_CLIENT_CERTIFICATE_VERIFY", | ||
#if defined(MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE) | ||
[MBEDTLS_SSL_CLIENT_CCS_AFTER_SERVER_FINISHED] = "MBEDTLS_SSL_CLIENT_CCS_AFTER_SERVER_FINISHED", | ||
#endif | ||
#endif | ||
}; | ||
|
||
if( in > ( sizeof( in_to_str )/sizeof( in_to_str[0]) - 1 ) || | ||
in_to_str[ in ] == NULL ) | ||
{ | ||
return "UNKOWN_VAULE"; | ||
} | ||
return in_to_str[ in ]; | ||
} | ||
|
||
const char *mbedtls_tls_prf_types_str( mbedtls_tls_prf_types in ) | ||
{ | ||
const char * in_to_str[]= | ||
{ | ||
[MBEDTLS_SSL_TLS_PRF_NONE] = "MBEDTLS_SSL_TLS_PRF_NONE", | ||
[MBEDTLS_SSL_TLS_PRF_SHA384] = "MBEDTLS_SSL_TLS_PRF_SHA384", | ||
[MBEDTLS_SSL_TLS_PRF_SHA256] = "MBEDTLS_SSL_TLS_PRF_SHA256", | ||
[MBEDTLS_SSL_HKDF_EXPAND_SHA384] = "MBEDTLS_SSL_HKDF_EXPAND_SHA384", | ||
[MBEDTLS_SSL_HKDF_EXPAND_SHA256] = "MBEDTLS_SSL_HKDF_EXPAND_SHA256", | ||
}; | ||
|
||
if( in > ( sizeof( in_to_str )/sizeof( in_to_str[0]) - 1 ) || | ||
in_to_str[ in ] == NULL ) | ||
{ | ||
return "UNKOWN_VAULE"; | ||
} | ||
return in_to_str[ in ]; | ||
} | ||
|
||
const char *mbedtls_ssl_key_export_type_str( mbedtls_ssl_key_export_type in ) | ||
{ | ||
const char * in_to_str[]= | ||
{ | ||
[MBEDTLS_SSL_KEY_EXPORT_TLS12_MASTER_SECRET] = "MBEDTLS_SSL_KEY_EXPORT_TLS12_MASTER_SECRET", | ||
#if defined(MBEDTLS_SSL_PROTO_TLS1_3) | ||
[MBEDTLS_SSL_KEY_EXPORT_TLS1_3_CLIENT_EARLY_SECRET] = "MBEDTLS_SSL_KEY_EXPORT_TLS1_3_CLIENT_EARLY_SECRET", | ||
[MBEDTLS_SSL_KEY_EXPORT_TLS1_3_EARLY_EXPORTER_SECRET] = "MBEDTLS_SSL_KEY_EXPORT_TLS1_3_EARLY_EXPORTER_SECRET", | ||
[MBEDTLS_SSL_KEY_EXPORT_TLS1_3_CLIENT_HANDSHAKE_TRAFFIC_SECRET] = "MBEDTLS_SSL_KEY_EXPORT_TLS1_3_CLIENT_HANDSHAKE_TRAFFIC_SECRET", | ||
[MBEDTLS_SSL_KEY_EXPORT_TLS1_3_SERVER_HANDSHAKE_TRAFFIC_SECRET] = "MBEDTLS_SSL_KEY_EXPORT_TLS1_3_SERVER_HANDSHAKE_TRAFFIC_SECRET", | ||
[MBEDTLS_SSL_KEY_EXPORT_TLS1_3_CLIENT_APPLICATION_TRAFFIC_SECRET] = "MBEDTLS_SSL_KEY_EXPORT_TLS1_3_CLIENT_APPLICATION_TRAFFIC_SECRET", | ||
[MBEDTLS_SSL_KEY_EXPORT_TLS1_3_SERVER_APPLICATION_TRAFFIC_SECRET] = "MBEDTLS_SSL_KEY_EXPORT_TLS1_3_SERVER_APPLICATION_TRAFFIC_SECRET", | ||
#endif | ||
}; | ||
|
||
if( in > ( sizeof( in_to_str )/sizeof( in_to_str[0]) - 1 ) || | ||
in_to_str[ in ] == NULL ) | ||
{ | ||
return "UNKOWN_VAULE"; | ||
} | ||
return in_to_str[ in ]; | ||
} | ||
|
||
|
||
|
||
#endif /* MBEDTLS_DEBUG_C */ | ||
/* End of automatically generated file. */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* Automatically generated by generate_ssl_debug_helpers.py. DO NOT EDIT. */ | ||
#ifndef MBEDTLS_SSL_DEBUG_HELPERS_H | ||
#define MBEDTLS_SSL_DEBUG_HELPERS_H | ||
|
||
#include "common.h" | ||
|
||
#if defined(MBEDTLS_DEBUG_C) | ||
|
||
#include "mbedtls/ssl.h" | ||
#include "ssl_misc.h" | ||
|
||
|
||
const char *mbedtls_ssl_states_str( mbedtls_ssl_states in ); | ||
|
||
const char *mbedtls_tls_prf_types_str( mbedtls_tls_prf_types in ); | ||
|
||
const char *mbedtls_ssl_key_export_type_str( mbedtls_ssl_key_export_type in ); | ||
|
||
|
||
|
||
#endif /* MBEDTLS_DEBUG_C */ | ||
|
||
#endif /* SSL_DEBUG_HELPERS_H */ | ||
|
||
/* End of automatically generated file. */ | ||
|
Oops, something went wrong.