]> git.proxmox.com Git - mirror_edk2.git/commit - CryptoPkg/Library/TlsLib/TlsConfig.c
CryptoPkg/TlsLib: pre-compute OpensslCipherLength in TlsCipherMappingTable
authorLaszlo Ersek <lersek@redhat.com>
Sun, 1 Apr 2018 09:51:46 +0000 (11:51 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Fri, 13 Apr 2018 12:06:19 +0000 (14:06 +0200)
commit96015d5fc51f6c81902a212662c73b512b0c8535
tree21bec9d57c1ab2ee2579b33bfd04d3954f68ac5e
parent5eadb54e26e239429e8b4fe18897781f2321738a
CryptoPkg/TlsLib: pre-compute OpensslCipherLength in TlsCipherMappingTable

In the next patches, we'll need the lengths of the
TLS_CIPHER_MAPPING.OpensslCipher string fields. These lengths can be
computed at build time; add the new field "OpensslCipherLength", and
introduce the MAP() macro for populating it.

While at it, add some horizontal whitespace to "TlsCipherMappingTable",
and add a comma after the last element. This will come handy in a later
patch.

(The patch does not change the first two columns of
"TlsCipherMappingTable", which can be easily verified with "git show
--word-diff".)

Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Qin Long <qin.long@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Cc: Ting Ye <ting.ye@intel.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=915
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Long Qin <qin.long@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
CryptoPkg/Library/TlsLib/TlsConfig.c