mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-11-09 23:00:03 +08:00
Fix Redundant Declerations
Remove some redundant declerations and resolve a circular header dependency by splitting out the ssl types. Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
parent
63d1f7f6ef
commit
340ff5cf95
@ -11,11 +11,10 @@
|
||||
#ifndef MBEDTLS_SSL_DEBUG_HELPERS_H
|
||||
#define MBEDTLS_SSL_DEBUG_HELPERS_H
|
||||
|
||||
#include "ssl_misc.h"
|
||||
|
||||
#if defined(MBEDTLS_DEBUG_C)
|
||||
|
||||
#include "mbedtls/ssl.h"
|
||||
#include "ssl_types.h"
|
||||
|
||||
const char *mbedtls_ssl_states_str(mbedtls_ssl_states in);
|
||||
|
||||
|
||||
1037
library/ssl_misc.h
1037
library/ssl_misc.h
File diff suppressed because it is too large
Load Diff
@ -6587,11 +6587,8 @@ int ssl_calc_verify_tls_sha384(const mbedtls_ssl_context *ssl,
|
||||
}
|
||||
#endif /* PSA_WANT_ALG_SHA_384 */
|
||||
|
||||
#if defined(MBEDTLS_SSL_SRV_C) && defined(MBEDTLS_SSL_RENEGOTIATION)
|
||||
MBEDTLS_CHECK_RETURN_CRITICAL
|
||||
static int ssl_write_hello_request(mbedtls_ssl_context *ssl);
|
||||
|
||||
#if defined(MBEDTLS_SSL_PROTO_DTLS)
|
||||
#if defined(MBEDTLS_SSL_SRV_C) && defined(MBEDTLS_SSL_RENEGOTIATION) && \
|
||||
defined(MBEDTLS_SSL_PROTO_DTLS)
|
||||
int mbedtls_ssl_resend_hello_request(mbedtls_ssl_context *ssl)
|
||||
{
|
||||
/* If renegotiation is not enforced, retransmit until we would reach max
|
||||
@ -6613,8 +6610,7 @@ int mbedtls_ssl_resend_hello_request(mbedtls_ssl_context *ssl)
|
||||
|
||||
return ssl_write_hello_request(ssl);
|
||||
}
|
||||
#endif
|
||||
#endif /* MBEDTLS_SSL_SRV_C && MBEDTLS_SSL_RENEGOTIATION */
|
||||
#endif /* MBEDTLS_SSL_SRV_C && MBEDTLS_SSL_RENEGOTIATION && MBEDTLS_SSL_PROTO_DTLS*/
|
||||
|
||||
/*
|
||||
* Handshake functions
|
||||
|
||||
1040
library/ssl_types.h
Normal file
1040
library/ssl_types.h
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user