mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
X509 key identifiers depend on SHA1
This commit is contained in:
committed by
Paul Bakker
parent
f8669dabf2
commit
3daaf3d21d
@ -156,6 +156,7 @@ int x509write_crt_set_basic_constraints( x509write_cert *ctx,
|
||||
0, buf + sizeof(buf) - len, len );
|
||||
}
|
||||
|
||||
#if defined(POLARSSL_SHA1_C)
|
||||
int x509write_crt_set_subject_key_identifier( x509write_cert *ctx )
|
||||
{
|
||||
int ret;
|
||||
@ -202,6 +203,7 @@ int x509write_crt_set_authority_key_identifier( x509write_cert *ctx )
|
||||
OID_SIZE( OID_AUTHORITY_KEY_IDENTIFIER ),
|
||||
0, buf + sizeof(buf) - len, len );
|
||||
}
|
||||
#endif /* POLARSSL_SHA1_C */
|
||||
|
||||
int x509write_crt_set_key_usage( x509write_cert *ctx, unsigned char key_usage )
|
||||
{
|
||||
|
Reference in New Issue
Block a user