From 0878a0d88415a570645de27fb681565a65aecb9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 31 Mar 2015 15:13:29 +0200 Subject: [PATCH] Add missing depends in x509 programs --- ChangeLog | 2 ++ programs/x509/cert_req.c | 4 ++-- programs/x509/cert_write.c | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2c6869695..353b26269 100644 --- a/ChangeLog +++ b/ChangeLog @@ -36,6 +36,8 @@ Bugfix POLARSSL_SSL_SSESSION_TICKETS where both enabled in config.h (introduced in 1.3.10). * Add missing extern "C" guard in aesni.h (reported by amir zamani). + * Add missing dependency on SHA-256 in some x509 programs (reported by + Gergely Budai). Changes * Adjusting/overriding CFLAGS and LDFLAGS with the make build syste is now diff --git a/programs/x509/cert_req.c b/programs/x509/cert_req.c index 8a545a4a2..01b8107a1 100644 --- a/programs/x509/cert_req.c +++ b/programs/x509/cert_req.c @@ -34,12 +34,12 @@ #endif #if !defined(POLARSSL_X509_CSR_WRITE_C) || !defined(POLARSSL_FS_IO) || \ - !defined(POLARSSL_PK_PARSE_C) || \ + !defined(POLARSSL_PK_PARSE_C) || !defined(POLARSSL_SHA256_C) || \ !defined(POLARSSL_ENTROPY_C) || !defined(POLARSSL_CTR_DRBG_C) int main( void ) { polarssl_printf( "POLARSSL_X509_CSR_WRITE_C and/or POLARSSL_FS_IO and/or " - "POLARSSL_PK_PARSE_C and/or " + "POLARSSL_PK_PARSE_C and/or POLARSSL_SHA256_c and/or " "POLARSSL_ENTROPY_C and/or POLARSSL_CTR_DRBG_C " "not defined.\n"); return( 0 ); diff --git a/programs/x509/cert_write.c b/programs/x509/cert_write.c index 629051bc8..5010193d2 100644 --- a/programs/x509/cert_write.c +++ b/programs/x509/cert_write.c @@ -36,11 +36,11 @@ #if !defined(POLARSSL_X509_CRT_WRITE_C) || \ !defined(POLARSSL_X509_CRT_PARSE_C) || !defined(POLARSSL_FS_IO) || \ !defined(POLARSSL_ENTROPY_C) || !defined(POLARSSL_CTR_DRBG_C) || \ - !defined(POLARSSL_ERROR_C) + !defined(POLARSSL_ERROR_C) || !defined(POLARSSL_SHA256_C) int main( void ) { polarssl_printf( "POLARSSL_X509_CRT_WRITE_C and/or POLARSSL_X509_CRT_PARSE_C and/or " - "POLARSSL_FS_IO and/or " + "POLARSSL_FS_IO and/or POLARSSL_SHA256_C and_or " "POLARSSL_ENTROPY_C and/or POLARSSL_CTR_DRBG_C and/or " "POLARSSL_ERROR_C not defined.\n"); return( 0 );