mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 17:48:14 +00:00
Fixed length of key_usage bitstring to 7 bits
This commit is contained in:
parent
1c0e550e21
commit
624d03a3f7
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ int x509write_csr_set_key_usage( x509_csr *ctx, unsigned char key_usage )
|
|||
|
||||
c = buf + 4;
|
||||
|
||||
if( ( ret = asn1_write_bitstring( &c, buf, &key_usage, 6 ) ) != 4 )
|
||||
if( ( ret = asn1_write_bitstring( &c, buf, &key_usage, 7 ) ) != 4 )
|
||||
return( ret );
|
||||
|
||||
ret = x509write_csr_set_extension( ctx, OID_KEY_USAGE,
|
||||
|
|
Loading…
Reference in a new issue