<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/CryptoPkg/Library/TlsLib, branch dependabot/github_actions/actions/github-script-9</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Factions%2Fgithub-script-9</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Factions%2Fgithub-script-9'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-02-23T21:01:28+00:00</updated>
<entry>
<title>CryptoPkg: Replace include guards with #pragma once</title>
<updated>2026-02-23T21:01:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2026-02-03T17:33:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=0f42cae11c06187ef72f34cfabdca200346ef660'/>
<id>urn:sha1:0f42cae11c06187ef72f34cfabdca200346ef660</id>
<content type='text'>
Replace traditional `#ifndef`/`#define`/`#endif` include guards with
`#pragma` once.

`#pragma once` is a widely supported preprocessor directive that
prevents header files from being included multiple times. It is
supported by all toolchains used to build edk2: GCC, Clang/LLVM, and
MSVC.

Does not include updates to OpenSSL generated header files checked
into the repo. Those in `CryptoPkg\Library\OpensslLib\OpensslGen\`.

Compared to macro-based include guards, `#pragma once`:

- Eliminates the risk of macro name collisions or copy/paste errors
  where two headers inadvertently use the same guard macro.
- Eliminate inconsistency in the way include guard macros are named
  (e.g., some files use `__FILE_H__`, others use `FILE_H_`, etc.).
- Reduces boilerplate (three lines replaced by one).
- Avoids polluting the macro namespace with guard symbols.
- Can improve build times as the preprocessor can skip re-opening the
  file entirely, rather than re-reading it to find the matching
  `#endif` ("multiple-include optimization").
  - Note that some compilers may already optimize traditional include
    guards, by recognzining the idiomatic pattern.

This change is made acknowledging that overall portability of the
code will technically be reduced, as `#pragma once` is not part of the
C/C++ standards.

However, this is considered acceptable given:

1. edk2 already defines a subset of supported compilers in
   BaseTools/Conf/tools_def.template, all of which have supported
   `#pragma once` for over two decades.
2. There have been concerns raised to the project about inconsistent
   include guard naming and potential macro collisions.

Approximate compiler support dates:

- MSVC: Supported since Visual C++ 4.2 (1996)
- GCC: Supported since 3.4 (2004)
  (http://gnu.ist.utl.pt/software/gcc/gcc-3.4/changes.html)
- Clang (LLVM based): Since initial release in 2007

Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
</content>
</entry>
<entry>
<title>CryptoPkg: Fix coverity warnings in CryptoPkg.</title>
<updated>2025-10-27T03:14:56+00:00</updated>
<author>
<name>INDIA\kanagavels</name>
<email>kanagvaels@ami.com</email>
</author>
<published>2025-10-22T13:44:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=a074649c6096d6dd36d03db5a55316d129e776b5'/>
<id>urn:sha1:a074649c6096d6dd36d03db5a55316d129e776b5</id>
<content type='text'>
Fix the coverity warnings reported in the CryptoPkg.

Signed-off-by: Kanagavel S &lt;kanagavels@ami.com&gt;
</content>
</entry>
<entry>
<title>CryptoPkg: Drop ARM32 Support</title>
<updated>2025-09-25T22:04:10+00:00</updated>
<author>
<name>Oliver Smith-Denny</name>
<email>osde@microsoft.com</email>
</author>
<published>2025-09-15T15:50:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=2ba9441e0b2222d81a186c0742e98c3196371303'/>
<id>urn:sha1:2ba9441e0b2222d81a186c0742e98c3196371303</id>
<content type='text'>
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from CryptoPkg. This also drops
irrelevant VALID_ARCHITECTURES comments from infs that are
not arch specific.

Signed-off-by: Oliver Smith-Denny &lt;osde@microsoft.com&gt;
</content>
</entry>
<entry>
<title>CryptoPkg: Add support to set TLS security level.</title>
<updated>2025-09-23T03:08:14+00:00</updated>
<author>
<name>INDIA\kanagavels</name>
<email>kanagvaels@ami.com</email>
</author>
<published>2025-09-19T14:41:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=fb43f0c085045771bc2dee2f867d87298de2facb'/>
<id>urn:sha1:fb43f0c085045771bc2dee2f867d87298de2facb</id>
<content type='text'>
Add Edkiicrypto protocol API to set TLS set security level.

Signed-off-by: Kanagavel S &lt;kanagavels@ami.com&gt;
</content>
</entry>
<entry>
<title>CryptoPkg: Add SNI support</title>
<updated>2025-09-04T08:32:34+00:00</updated>
<author>
<name>INDIA\kanagavels</name>
<email>kanagavels@ami.com</email>
</author>
<published>2025-07-09T11:04:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=1dacf4c40825e184f08be4d3041dc9e2be4d3c5c'/>
<id>urn:sha1:1dacf4c40825e184f08be4d3041dc9e2be4d3c5c</id>
<content type='text'>
Add Server Name Indication support.

Signed-off-by: Kanagavel S &lt;Kanagavels@ami.com&gt;
</content>
</entry>
<entry>
<title>CryptoPkg: Enable the time check flag.</title>
<updated>2025-07-05T14:23:01+00:00</updated>
<author>
<name>INDIA\kanagavels</name>
<email>kanagavels@ami.com</email>
</author>
<published>2025-07-02T15:47:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=f920354f92f273c9add0617c80bd75e9902abe48'/>
<id>urn:sha1:f920354f92f273c9add0617c80bd75e9902abe48</id>
<content type='text'>
REF:https://github.com/tianocore/edk2/issues/11245

Enable the time check flag to verify the current time during the TLS
certificate validation.

Signed-off-by: Kanagavel S &lt;kanagavels@ami.com&gt;
</content>
</entry>
<entry>
<title>CryptoPkg: Extend TLS handshake debug output</title>
<updated>2024-06-25T23:18:36+00:00</updated>
<author>
<name>Sebastian Witt</name>
<email>sebastian.witt@siemens.com</email>
</author>
<published>2024-06-06T14:26:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=dc93ff8a5561a3085eeda9d4ac00d40545eb43cd'/>
<id>urn:sha1:dc93ff8a5561a3085eeda9d4ac00d40545eb43cd</id>
<content type='text'>
The error codes during TLS handshake errors are sometimes
not enough to understand the root cause of the problem.
Extending the debug output by the function and optional data helps
in some cases.

Signed-off-by: Sebastian Witt &lt;sebastian.witt@siemens.com&gt;
</content>
</entry>
<entry>
<title>CryptoPkg: Add SNI extension to TLS ClientHello</title>
<updated>2024-06-25T21:46:50+00:00</updated>
<author>
<name>Sebastian Witt</name>
<email>sebastian.witt@siemens.com</email>
</author>
<published>2024-06-04T12:34:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=84d8eb08e15e455826ef66a4b1f1f61758cb9aba'/>
<id>urn:sha1:84d8eb08e15e455826ef66a4b1f1f61758cb9aba</id>
<content type='text'>
Webservers hosting multiple websites require the TLS SNI
(Server Name Indication) in the ClientHello to know which certificate
to return.
The current TLS code does not include the server name in the
ClientHello handshake, which leads to failed HTTPS boots when the
server does not return the correct certificate.

This sets the host name for SNI in TlsSetVerifyHost which receives the
host name also for verification against the certificates.

Signed-off-by: Sebastian Witt &lt;sebastian.witt@siemens.com&gt;
</content>
</entry>
<entry>
<title>CryptoPkg/TlsLib: fix tls cipher configuration</title>
<updated>2023-10-08T10:46:45+00:00</updated>
<author>
<name>Gerd Hoffmann</name>
<email>kraxel@redhat.com</email>
</author>
<published>2023-10-04T09:20:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=4ddd8ac3a29d9c5974a19f36c1dc5896d813dc6e'/>
<id>urn:sha1:4ddd8ac3a29d9c5974a19f36c1dc5896d813dc6e</id>
<content type='text'>
Trying to configure the TLS ciphers can lead to TLS handshake failures
because TlsCipherMappingTable is not in line with the ciphers actually
supported by OpensslLib.

Fix that by removing TlsCipherMappingTable altogether.  Use
SSL_get_ciphers() instead to get the stack of ciphers supported by
openssl.  Name and ID of the ciphers can be queried using the
SSL_CIPHER_get_name() and SSL_CIPHER_get_protocol_id() functions,
which allows us to map IDs to names without a hard-code table.

Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=2541
Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Message-Id: &lt;20231004092003.3809321-1-kraxel@redhat.com&gt;
Reviewed-by: Laszlo Ersek &lt;lersek@redhat.com&gt;
Reviewed-by: Yi Li &lt;yi1.li@intel.com&gt;
</content>
</entry>
<entry>
<title>CryptoPkg/TlsLib: use unsigned long for ErrorCode</title>
<updated>2023-08-09T07:10:31+00:00</updated>
<author>
<name>Gerd Hoffmann</name>
<email>kraxel@redhat.com</email>
</author>
<published>2023-08-03T04:37:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=bdf3142eb7825bda48ec515a9acc0a1eb6a88959'/>
<id>urn:sha1:bdf3142eb7825bda48ec515a9acc0a1eb6a88959</id>
<content type='text'>
Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Cc: Jiewen Yao &lt;jiewen.yao@intel.com&gt;
Cc: Xiaoyu Lu &lt;xiaoyu1.lu@intel.com&gt;
Cc: Guomin Jiang &lt;guomin.jiang@intel.com&gt;
Reviewed-by: Jiewen Yao &lt;jiewen.yao@intel.com&gt;
Acked-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
Tested-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
Tested-by: Brian J. Johnson &lt;brian.johnson@hpe.com&gt;
Tested-by: Kenneth Lautner &lt;klautner@microsoft.com&gt;
</content>
</entry>
</feed>
