mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-25 15:15:47 +01:00
Fixed const-correctness issues
This commit is contained in:
parent
ddba8822d0
commit
fcc172138c
@ -8,6 +8,7 @@ Bugfix
|
|||||||
* Missing MSVC defines added
|
* Missing MSVC defines added
|
||||||
* Compile errors with POLARSSL_RSA_NO_CRT
|
* Compile errors with POLARSSL_RSA_NO_CRT
|
||||||
* Header files with 'polarssl/'
|
* Header files with 'polarssl/'
|
||||||
|
* Const correctness
|
||||||
|
|
||||||
= PolarSSL-1.3.0 released on 2013-10-01
|
= PolarSSL-1.3.0 released on 2013-10-01
|
||||||
Features
|
Features
|
||||||
|
@ -112,7 +112,7 @@ typedef enum
|
|||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
pk_debug_type type;
|
pk_debug_type type;
|
||||||
char *name;
|
const char *name;
|
||||||
void *value;
|
void *value;
|
||||||
} pk_debug_item;
|
} pk_debug_item;
|
||||||
|
|
||||||
|
@ -312,7 +312,7 @@ int pk_write_key_pem( pk_context *key, unsigned char *buf, size_t size )
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
unsigned char output_buf[4096];
|
unsigned char output_buf[4096];
|
||||||
char *begin, *end;
|
const char *begin, *end;
|
||||||
size_t olen = 0;
|
size_t olen = 0;
|
||||||
|
|
||||||
if( ( ret = pk_write_key_der( key, output_buf, sizeof(output_buf) ) ) < 0 )
|
if( ( ret = pk_write_key_der( key, output_buf, sizeof(output_buf) ) ) < 0 )
|
||||||
|
@ -36,7 +36,7 @@ int x509_string_to_names( asn1_named_data **head, char *name )
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
char *s = name, *c = s;
|
char *s = name, *c = s;
|
||||||
char *end = s + strlen( s );
|
char *end = s + strlen( s );
|
||||||
char *oid = NULL;
|
const char *oid = NULL;
|
||||||
int in_tag = 1;
|
int in_tag = 1;
|
||||||
asn1_named_data *cur;
|
asn1_named_data *cur;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user