mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
TLS: Avoid discarded-qualifiers
Just a build issue fix depending on GCC5+ configuration, fixes: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] return discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] Signed-off-by: Richard Allen <richard@bryghtlabs.com>
This commit is contained in:
committed by
Kapil Gupta
parent
290676c22c
commit
eae3c6a2db
@@ -614,7 +614,7 @@ int tlsv1_client_prf(struct tlsv1_client *conn, const char *label,
|
||||
int tlsv1_client_get_cipher(struct tlsv1_client *conn, char *buf,
|
||||
size_t buflen)
|
||||
{
|
||||
char *cipher;
|
||||
const char *cipher;
|
||||
|
||||
switch (conn->rl.cipher_suite) {
|
||||
case TLS_RSA_WITH_RC4_128_MD5:
|
||||
|
||||
@@ -459,7 +459,7 @@ int x509_parse_name(const u8 *buf, size_t len, struct x509_name *name,
|
||||
}
|
||||
|
||||
|
||||
static char * x509_name_attr_str(enum x509_name_attr_type type)
|
||||
static const char * x509_name_attr_str(enum x509_name_attr_type type)
|
||||
{
|
||||
switch (type) {
|
||||
case X509_NAME_ATTR_NOT_USED:
|
||||
|
||||
Reference in New Issue
Block a user