]> git.proxmox.com Git - mirror_edk2.git/commit
CryptoPkg/BaseCryptLib: Use accessor functions for X509_ATTRIBUTE
authorDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 29 Oct 2015 14:16:22 +0000 (14:16 +0000)
committerqlong <qlong@Edk2>
Thu, 29 Oct 2015 14:16:22 +0000 (14:16 +0000)
commit4ffe0facbe89df0f1856f747cf887f5efcbca955
treed652b619474d0af6e0786377f255633816529874
parenteeb8928a263b277fbf49fd72b4abacb8bf615511
CryptoPkg/BaseCryptLib: Use accessor functions for X509_ATTRIBUTE

In OpenSSL 1.1, the X509_ATTRIBUTE becomes an opaque structure and we will
no longer get away with accessing its members directly. Use the accessor
functions X509_ATTRIBUTE_get0_object0() and X509_ATTRIBUTE_get0_type()
instead.

Also be slightly more defensive about unlikely failure modes.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Qin Long <qin.long@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18700 6f19259b-4bc3-4df7-8a09-765794883524
CryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c