mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Move key_usage to more that 8 bits
This commit is contained in:
parent
1022fed36e
commit
1d0ca1a336
3 changed files with 6 additions and 4 deletions
|
|
@ -247,7 +247,7 @@ static int x509_get_ns_cert_type( unsigned char **p,
|
|||
|
||||
static int x509_get_key_usage( unsigned char **p,
|
||||
const unsigned char *end,
|
||||
unsigned char *key_usage)
|
||||
unsigned int *key_usage)
|
||||
{
|
||||
int ret;
|
||||
x509_bitstring bs = { 0, 0, NULL };
|
||||
|
|
@ -1381,7 +1381,7 @@ int x509_crt_info( char *buf, size_t size, const char *prefix,
|
|||
}
|
||||
|
||||
#if defined(POLARSSL_X509_CHECK_KEY_USAGE)
|
||||
int x509_crt_check_key_usage( const x509_crt *crt, int usage )
|
||||
int x509_crt_check_key_usage( const x509_crt *crt, unsigned int usage )
|
||||
{
|
||||
if( ( crt->ext_types & EXT_KEY_USAGE ) != 0 &&
|
||||
( crt->key_usage & usage ) != usage )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue