<feed xmlns='http://www.w3.org/2005/Atom'>
<title>efi-boot-shim.git/Cryptlib, branch latest-release</title>
<subtitle> (mirror of https://github.com/vyos/efi-boot-shim.git)
</subtitle>
<id>https://git.amelek.net/vyos/efi-boot-shim.git/atom?h=latest-release</id>
<link rel='self' href='https://git.amelek.net/vyos/efi-boot-shim.git/atom?h=latest-release'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/'/>
<updated>2017-04-11T14:42:19+00:00</updated>
<entry>
<title>Cryptlib: replace CryptPem with the Null version</title>
<updated>2017-04-11T14:42:19+00:00</updated>
<author>
<name>Gary Lin</name>
<email>glin@suse.com</email>
</author>
<published>2017-04-10T09:40:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=513cbe2aea689bf968f171f894f3d4cdb43524d5'/>
<id>urn:sha1:513cbe2aea689bf968f171f894f3d4cdb43524d5</id>
<content type='text'>
CryptPem only provides one function: RsaGetPrivateKeyFromPem(). Since we
don't need to retrieve any private key, it's safe to disable the
function.

Signed-off-by: Gary Lin &lt;glin@suse.com&gt;
</content>
</entry>
<entry>
<title>Cryptlib: remove DES</title>
<updated>2017-04-11T14:42:19+00:00</updated>
<author>
<name>Gary Lin</name>
<email>glin@suse.com</email>
</author>
<published>2017-04-10T09:23:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=e9cc33d6f2b7f35c6f5e349fd83fb9ae0bc66226'/>
<id>urn:sha1:e9cc33d6f2b7f35c6f5e349fd83fb9ae0bc66226</id>
<content type='text'>
Disable DES completely since it's already old and insecure.
This makes MokManager not support the DES based password hash but
probably no one is using it.

Signed-off-by: Gary Lin &lt;glin@suse.com&gt;
</content>
</entry>
<entry>
<title>Cryptlib: Remove MD4</title>
<updated>2017-04-11T14:42:19+00:00</updated>
<author>
<name>Gary Lin</name>
<email>glin@suse.com</email>
</author>
<published>2017-04-10T08:55:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=80d49f758ead0180bfe6161931838e0578248303'/>
<id>urn:sha1:80d49f758ead0180bfe6161931838e0578248303</id>
<content type='text'>
MD4 is known to be insecure and shim never uses it.

Signed-off-by: Gary Lin &lt;glin@suse.com&gt;
</content>
</entry>
<entry>
<title>Cryptlib: implement strcmp() and strcasecmp()</title>
<updated>2017-04-11T14:42:19+00:00</updated>
<author>
<name>Gary Lin</name>
<email>glin@suse.com</email>
</author>
<published>2017-04-07T09:14:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=9bc647e2b23bcfd69a0077c0717fbc454c919a57'/>
<id>urn:sha1:9bc647e2b23bcfd69a0077c0717fbc454c919a57</id>
<content type='text'>
strcmp() and strcasecmp() are widely used in openssl. Implement those
two functions to eliminate the gcc warnings and the potential crash.

Signed-off-by: Gary Lin &lt;glin@suse.com&gt;
</content>
</entry>
<entry>
<title>Cryptlib: amend the headers and fix signness</title>
<updated>2017-04-11T14:42:19+00:00</updated>
<author>
<name>Gary Lin</name>
<email>glin@suse.com</email>
</author>
<published>2017-04-07T04:32:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=e883479f35644d17db7efed710657c8543cfcb68'/>
<id>urn:sha1:e883479f35644d17db7efed710657c8543cfcb68</id>
<content type='text'>
- Declare some functions in the proper headers
  + We missed them for a long time...

- Cast offsetof to UINTN
  + The original casting triggers the gcc warning since int can not
    present the offset for the 64bit machines.

- Cast the "char" array to "CHAR8 *" to avoid the gcc warnings

- Implement atoi correctly

Signed-off-by: Gary Lin &lt;glin@suse.com&gt;
</content>
</entry>
<entry>
<title>Cryptlib: Include stddef.h in CrtLibSupport.h</title>
<updated>2017-04-11T14:42:19+00:00</updated>
<author>
<name>Gary Lin</name>
<email>glin@suse.com</email>
</author>
<published>2017-04-07T03:27:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=97469449fda5ba933a64280917e776487301a127'/>
<id>urn:sha1:97469449fda5ba933a64280917e776487301a127</id>
<content type='text'>
The changes in the openssl headers cause the inclusion of
CrtLibSupport.h eariler than the inclusion of stddef.h, so "offsetof"
was defined twice and this caused the followling build error:

In file included from Cryptlib/Include/openssl/buffer.h:23:0,
                 from Cryptlib/Include/openssl/x509.h:22,
                 from shim.c:56:
/usr/lib64/gcc/x86_64-suse-linux/6/include/stddef.h:417:0: error: "offsetof" redefined [-Werror]
 #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)

In file included from Cryptlib/Include/limits.h:15:0,
                 from Cryptlib/Include/openssl/ossl_typ.h:13,
                 from Cryptlib/Include/openssl/x509.h:20,
                 from shim.c:56:
Cryptlib/Include/CrtLibSupport.h:192:0: note: this is the location of the previous definition
 #define offsetof(type, member) ( (int) &amp; ((type*)0) -&gt; member )

We can lower the priority of the gcc include path or just remove the
path, but this might cause problem since the path was introduced on
purpose(*). Instead, including stddef.h first is more feasible.

(*) https://github.com/rhinstaller/shim/commit/d51739a416400ad348d8a1c7e3886abce11fff1b

Signed-off-by: Gary Lin &lt;glin@suse.com&gt;
</content>
</entry>
<entry>
<title>Cryptlib/OpenSSL: update to openssl 1.1.0e</title>
<updated>2017-04-11T14:42:18+00:00</updated>
<author>
<name>Gary Lin</name>
<email>glin@suse.com</email>
</author>
<published>2017-03-31T08:34:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=0f3dfc01e2d5e7df882c963dd8dc4a0dfbfc96ad'/>
<id>urn:sha1:0f3dfc01e2d5e7df882c963dd8dc4a0dfbfc96ad</id>
<content type='text'>
- Delete the old openssl files and use the script to copy the new files

- Add "-DNO_SYSLOG" to CFLAGS and add crypto/include to the include path

Signed-off-by: Gary Lin &lt;glin@suse.com&gt;
</content>
</entry>
<entry>
<title>Cryptlib/OpenSSL: Update the script to copy the new openssl files</title>
<updated>2017-04-11T14:42:18+00:00</updated>
<author>
<name>Gary Lin</name>
<email>glin@suse.com</email>
</author>
<published>2017-03-31T08:29:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=4da6ac819510c7cc4ba21d7a735d69b45daa5873'/>
<id>urn:sha1:4da6ac819510c7cc4ba21d7a735d69b45daa5873</id>
<content type='text'>
- Update update.sh to copy the openssl 1.1.0 source files

- Refresh the supplemental patch to reflect the change

Signed-off-by: Gary Lin &lt;glin@suse.com&gt;
</content>
</entry>
<entry>
<title>Cryptlib: Update to the latest edk2 commit</title>
<updated>2017-04-11T14:42:18+00:00</updated>
<author>
<name>Gary Lin</name>
<email>glin@suse.com</email>
</author>
<published>2017-04-06T07:54:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=d064bd7eef201f26cb926450a76260b5187ac689'/>
<id>urn:sha1:d064bd7eef201f26cb926450a76260b5187ac689</id>
<content type='text'>
- Update to edk2 commit 7c410b3d4180087020c7734bf67cdc4ad9fdb136
  CryptoPkg/BaseCryptLib: Adding NULL checking in time() wrapper.

- Update headers in Cryptlib/Include/openssl/ to 1.1.0e
  + Also copy the openssl internal headers

Signed-off-by: Gary Lin &lt;glin@suse.com&gt;
</content>
</entry>
<entry>
<title>Cryptlib: Amend update.sh and refresh Cryptlib.diff</title>
<updated>2017-04-11T14:42:18+00:00</updated>
<author>
<name>Gary Lin</name>
<email>glin@suse.com</email>
</author>
<published>2017-04-06T07:50:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=9bc86cfd6f9387f0da9d5c0102b6aa5627e91c91'/>
<id>urn:sha1:9bc86cfd6f9387f0da9d5c0102b6aa5627e91c91</id>
<content type='text'>
- Remove the openssl version from update.sh since edk2 doesn't use the
  version number in the directory name anymore.

- Refresh Cryptlib.diff to reflect the change

Signed-off-by: Gary Lin &lt;glin@suse.com&gt;
</content>
</entry>
</feed>
