audk/CryptoPkg/Library/BaseCryptLib/Pk
Laszlo Ersek 017c285ef1 CryptoPkg: TimestampTokenVerify(): fix gcc-4.8 / Ia32 build failure
SVN r16339 ("CryptoPkg Updates to support RFC3161 timestamp signature
verification.") introduced the following build failure:

> CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c: In function
> 'TimestampTokenVerify':
> CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c:538:3: error: passing
> argument 2 of 'd2i_TS_TST_INFO' from incompatible pointer type [-Werror]
>    TstInfo = d2i_TS_TST_INFO (NULL, &TstTemp, (int)TstSize);
>    ^
> In file included from CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c:22:0:
> CryptoPkg/Include/openssl/asn1t.h:803:10: note: expected 'const unsigned
> char **' but argument is of type 'UINT8 **'
>   stname *d2i_##fname(stname **a, const unsigned char **in, long len) \
>           ^
> CryptoPkg/Include/openssl/asn1t.h:799:2: note: in expansion of macro
> 'IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname'
>   IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname) \
>   ^
> CryptoPkg/Include/openssl/asn1t.h:778:42: note: in expansion of macro
> 'IMPLEMENT_ASN1_FUNCTIONS_fname'
>  #define IMPLEMENT_ASN1_FUNCTIONS(stname)
> IMPLEMENT_ASN1_FUNCTIONS_fname(stname, stname, stname)
>                                           ^
> CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c:136:1: note: in expansion of
> macro 'IMPLEMENT_ASN1_FUNCTIONS'
>  IMPLEMENT_ASN1_FUNCTIONS (TS_TST_INFO)
>  ^
> cc1: all warnings being treated as errors

Note that the cast

  (const unsigned char **) &TstTemp

does not match the general edk2 coding style, but it *does* match
other similar casts in this file.

Contributed-under: TianoCore Contribution Agreement 1.0

Signed-off-by: Laszlo Ersek <lersek@redhat.com>

Build-tested-by: Scott Duplichan <scott@notabs.org>

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>

Reviewed-by: Qin Long <qin.long@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16387 6f19259b-4bc3-4df7-8a09-765794883524
2014-11-14 10:24:21 +00:00
..
CryptAuthenticode.c CryptoPkg Updates to support RFC3161 timestamp signature verification. 2014-11-12 08:51:45 +00:00
CryptAuthenticodeNull.c Add interfaces to several library instances of BaseCryptLib. 2012-07-18 09:32:05 +00:00
CryptDh.c Fix several issues in BaseCryptLib: 2012-08-02 02:49:24 +00:00
CryptDhNull.c Add interfaces to several library instances of BaseCryptLib. 2012-07-18 09:32:05 +00:00
CryptPkcs7Sign.c Enhance error handling code after calling BIO_new in BaseCryptLib. 2013-08-07 08:11:14 +00:00
CryptPkcs7SignNull.c Add interfaces to several library instances of BaseCryptLib. 2012-07-18 09:32:05 +00:00
CryptPkcs7Verify.c CryptoPkg Updates to support RFC3161 timestamp signature verification. 2014-11-12 08:51:45 +00:00
CryptPkcs7VerifyNull.c Add interfaces to several library instances of BaseCryptLib. 2012-07-18 09:32:05 +00:00
CryptRsaBasic.c The openssl API RSA_public_decrypt() and RSA_private_encrypt() are deprecated, use RSA_sign(), RSA_verify() instead. 2013-04-23 01:52:17 +00:00
CryptRsaExt.c The openssl API RSA_public_decrypt() and RSA_private_encrypt() are deprecated, use RSA_sign(), RSA_verify() instead. 2013-04-23 01:52:17 +00:00
CryptRsaExtNull.c Add interfaces to several library instances of BaseCryptLib. 2012-07-18 09:32:05 +00:00
CryptTs.c CryptoPkg: TimestampTokenVerify(): fix gcc-4.8 / Ia32 build failure 2014-11-14 10:24:21 +00:00
CryptTsNull.c CryptoPkg Updates to support RFC3161 timestamp signature verification. 2014-11-12 08:51:45 +00:00
CryptX509.c 1. Enable the whole X509v3 extension checking. 2012-12-28 01:20:57 +00:00
CryptX509Null.c Add interfaces to several library instances of BaseCryptLib. 2012-07-18 09:32:05 +00:00