mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-24 03:05:40 +00:00
Fixed length of key_usage bitstring to 7 bits
This commit is contained in:
parent
1c0e550e21
commit
624d03a3f7
|
@ -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