1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

- Cleaned up warning-generating code

This commit is contained in:
Paul Bakker
2011-01-18 16:17:47 +00:00
parent f917e42c9b
commit d61e7d98cb
5 changed files with 18 additions and 4 deletions

View File

@@ -776,7 +776,7 @@ static int x509_get_ns_cert_type( unsigned char **p,
unsigned char *ns_cert_type)
{
int ret;
x509_bitstring bs = {0};
x509_bitstring bs = { 0, 0, NULL };
if( ( ret = asn1_get_bitstring( p, end, &bs ) ) != 0 )
return( POLARSSL_ERR_X509_CERT_INVALID_EXTENSIONS | ret );
@@ -795,7 +795,7 @@ static int x509_get_key_usage( unsigned char **p,
unsigned char *key_usage)
{
int ret;
x509_bitstring bs = {0};
x509_bitstring bs = { 0, 0, NULL };
if( ( ret = asn1_get_bitstring( p, end, &bs ) ) != 0 )
return( POLARSSL_ERR_X509_CERT_INVALID_EXTENSIONS | ret );