mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-09 03:04:24 +02:00
Fix the build in PSK-only configurations
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
committed by
Manuel Pégourié-Gonnard
parent
544fdc6118
commit
7cdf563a7d
@@ -72,6 +72,8 @@ typedef enum {
|
||||
RECOMBINE_COALESCE_SPLIT_ENDS, /* the hairiest one? param: offset, must be >0 */
|
||||
} recombine_records_instruction_t;
|
||||
|
||||
#if defined(MBEDTLS_SSL_HANDSHAKE_WITH_CERT_ENABLED)
|
||||
|
||||
/* Split the first record into two pieces of lengths offset and
|
||||
* record_length-offset. If offset is zero or negative, count from the end of
|
||||
* the record. */
|
||||
@@ -277,6 +279,8 @@ exit:
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* MBEDTLS_SSL_HANDSHAKE_WITH_CERT_ENABLED */
|
||||
|
||||
/* END_HEADER */
|
||||
|
||||
/* BEGIN_DEPENDENCIES
|
||||
@@ -3016,7 +3020,9 @@ exit:
|
||||
}
|
||||
/* END_CASE */
|
||||
|
||||
/* BEGIN_CASE */
|
||||
/* This test case doesn't actually depend on certificates,
|
||||
* but our helper code for mbedtls_test_ssl_endpoint does. */
|
||||
/* BEGIN_CASE depends_on:MBEDTLS_SSL_HANDSHAKE_WITH_CERT_ENABLED */
|
||||
void recombine_server_first_flight(int version,
|
||||
int instruction, int param,
|
||||
char *client_log, char *server_log,
|
||||
|
||||
Reference in New Issue
Block a user