<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openssl/ms, branch openssl-3.1</title>
<subtitle>TLS/SSL and crypto library.</subtitle>
<id>http://git.bktus.com/gpgfrontend/openssl/atom?h=openssl-3.1</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/openssl/atom?h=openssl-3.1'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/'/>
<updated>2021-04-22T13:38:44Z</updated>
<entry>
<title>Update copyright year</title>
<updated>2021-04-22T13:38:44Z</updated>
<author>
<name>Matt Caswell</name>
<email>matt@openssl.org</email>
</author>
<published>2021-04-22T13:38:44Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=f5afac4bdac31a52f1577a8d158559f0a4f7bed7'/>
<id>urn:sha1:f5afac4bdac31a52f1577a8d158559f0a4f7bed7</id>
<content type='text'>
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/14986)
</content>
</entry>
<entry>
<title>Link with uplink module</title>
<updated>2021-04-19T09:05:55Z</updated>
<author>
<name>Tanzinul Islam</name>
<email>tanzinul.islam@gmail.com</email>
</author>
<published>2020-12-13T18:04:43Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=daf98015aac8bf392cf95edf9a54d845c1c22fd7'/>
<id>urn:sha1:daf98015aac8bf392cf95edf9a54d845c1c22fd7</id>
<content type='text'>
The Clang-based `bcc32c.exe` expects AT&amp;T syntax for inline assembly.
References:
 - http://docwiki.embarcadero.com/RADStudio/Sydney/en/Differences_Between_Clang-enhanced_C%2B%2B_Compilers_and_Previous-Generation_C%2B%2B_Compilers#Inline_Assembly
 - https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html
 - https://sourceware.org/binutils/docs/as/i386_002dVariations.html

Reviewed-by: Richard Levitte &lt;levitte@openssl.org&gt;
Reviewed-by: Dmitry Belyavskiy &lt;beldmit@gmail.com&gt;
(Merged from https://github.com/openssl/openssl/pull/13540)
</content>
</entry>
<entry>
<title>Unify all assembler file generators</title>
<updated>2019-09-16T14:29:57Z</updated>
<author>
<name>Richard Levitte</name>
<email>levitte@openssl.org</email>
</author>
<published>2019-09-12T22:06:46Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=1aa89a7a3afb053d0c0b7fad8d3ea1b0a5447289'/>
<id>urn:sha1:1aa89a7a3afb053d0c0b7fad8d3ea1b0a5447289</id>
<content type='text'>
They now generally conform to the following argument sequence:

    script.pl "$(PERLASM_SCHEME)" [ C preprocessor arguments ... ] \
              $(PROCESSOR) &lt;output file&gt;

However, in the spirit of being able to use these scripts manually,
they also allow for no argument, or for only the flavour, or for only
the output file.  This is done by only using the last argument as
output file if it's a file (it has an extension), and only using the
first argument as flavour if it isn't a file (it doesn't have an
extension).

While we're at it, we make all $xlate calls the same, i.e. the $output
argument is always quoted, and we always die on error when trying to
start $xlate.

There's a perl lesson in this, regarding operator priority...

This will always succeed, even when it fails:

    open FOO, "something" || die "ERR: $!";

The reason is that '||' has higher priority than list operators (a
function is essentially a list operator and gobbles up everything
following it that isn't lower priority), and since a non-empty string
is always true, so that ends up being exactly the same as:

    open FOO, "something";

This, however, will fail if "something" can't be opened:

    open FOO, "something" or die "ERR: $!";

The reason is that 'or' has lower priority that list operators,
i.e. it's performed after the 'open' call.

Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/9884)
</content>
</entry>
<entry>
<title>Windows: Call TerminateProcess, not ExitProcess</title>
<updated>2019-02-22T20:03:45Z</updated>
<author>
<name>Richard Levitte</name>
<email>levitte@openssl.org</email>
</author>
<published>2019-02-21T17:25:50Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=925795995018bddb053e863db8b5c52d2a9005d9'/>
<id>urn:sha1:925795995018bddb053e863db8b5c52d2a9005d9</id>
<content type='text'>
Ty Baen-Price explains:

&gt; Problem and Resolution:
&gt; The following lines of code make use of the Microsoft API ExitProcess:
&gt;
&gt; ```
&gt; Apps\Speed.c line 335:	ExitProcess(ret);
&gt; Ms\uplink.c line 22: ExitProcess(1);
&gt; ```
&gt;
&gt; These function calls are made after fatal errors are detected and
&gt; program termination is desired. ExitProcess(), however causes
&gt; _orderly_ shutdown of a process and all its threads, i.e. it unloads
&gt; all dlls and runs all destructors. See MSDN for details of exactly
&gt; what happens
&gt; (https://msdn.microsoft.com/en-us/library/windows/desktop/ms682658(v=vs.85).aspx).
&gt; The MSDN page states that ExitProcess should never be called unless
&gt; it is _known to be safe_ to call it. These calls should simply be
&gt; replaced with calls to TerminateProcess(), which is what should be
&gt; called for _disorderly_ shutdown.
&gt;
&gt; An example of usage:
&gt;
&gt; ```
&gt; TerminateProcess(GetCurrentProcess(), exitcode);
&gt; ```
&gt;
&gt; Effect of Problem:
&gt; Because of a compilation error (wrong c++ runtime), my program
&gt; executed the uplink.c ExitProcess() call. This caused the single
&gt; OpenSSL thread to start executing the destructors of all my dlls,
&gt; and their objects. Unfortunately, about 30 other threads were
&gt; happily using those objects at that time, eventually causing a
&gt; 0xC0000005 ACCESS_VIOLATION. Obviously an ACCESS_VIOLATION is the
&gt; best case scenario, as I'm sure you can imagine at the consequences
&gt; of undiscovered memory corruption, even in a terminating process.

And on the subject of `TerminateProcess()` being asynchronous:

&gt; That is technically true, but I think it's probably synchronous
&gt; "enough" for your purposes, since a call to TerminateProcess
&gt; suspends execution of all threads in the target process. This means
&gt; it's really only asynchronous if you're calling TerminateProcess one
&gt; some _other_ process. If you're calling TerminateProcess on your own
&gt; process, you'll never return from the TerminateProcess call.

Fixes #2489
Was originally RT-4526

Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/8301)
</content>
</entry>
<entry>
<title>Following the license change, modify the boilerplates in ms/</title>
<updated>2018-12-06T13:22:20Z</updated>
<author>
<name>Richard Levitte</name>
<email>levitte@openssl.org</email>
</author>
<published>2018-12-06T12:10:33Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=c7fcbc0981c9453beb63add748aa61ef51edd086'/>
<id>urn:sha1:c7fcbc0981c9453beb63add748aa61ef51edd086</id>
<content type='text'>
Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/7769)
</content>
</entry>
<entry>
<title>Update copyright year</title>
<updated>2018-05-01T12:34:30Z</updated>
<author>
<name>Matt Caswell</name>
<email>matt@openssl.org</email>
</author>
<published>2018-05-01T12:34:30Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=6ec5fce25e81b44c37b37db1cde37670d6bbc678'/>
<id>urn:sha1:6ec5fce25e81b44c37b37db1cde37670d6bbc678</id>
<content type='text'>
Reviewed-by: Rich Salz &lt;rsalz@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/6145)
</content>
</entry>
<entry>
<title>ms/uplink-x86.pl: close the file handle that was opened</title>
<updated>2018-04-25T12:08:33Z</updated>
<author>
<name>Richard Levitte</name>
<email>levitte@openssl.org</email>
</author>
<published>2018-04-25T11:01:39Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=3625f6c977beccd7bb0d80a1a670c19f4338a27a'/>
<id>urn:sha1:3625f6c977beccd7bb0d80a1a670c19f4338a27a</id>
<content type='text'>
Fixes #5656

Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/6079)
</content>
</entry>
<entry>
<title>Remove unused num.pl,segregnam scripts</title>
<updated>2018-02-22T20:36:27Z</updated>
<author>
<name>Rich Salz</name>
<email>rsalz@openssl.org</email>
</author>
<published>2018-02-22T20:36:27Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=1af563e3742c5be733194dab9778e064984b3c23'/>
<id>urn:sha1:1af563e3742c5be733194dab9778e064984b3c23</id>
<content type='text'>
Reviewed-by: Andy Polyakov &lt;appro@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/5433)
</content>
</entry>
<entry>
<title>Many spelling fixes/typo's corrected.</title>
<updated>2017-11-12T00:03:10Z</updated>
<author>
<name>Josh Soref</name>
<email>jsoref@users.noreply.github.com</email>
</author>
<published>2017-11-12T00:03:10Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=46f4e1bec51dc96fa275c168752aa34359d9ee51'/>
<id>urn:sha1:46f4e1bec51dc96fa275c168752aa34359d9ee51</id>
<content type='text'>
Around 138 distinct errors found and fixed; thanks!

Reviewed-by: Kurt Roeckx &lt;kurt@roeckx.be&gt;
Reviewed-by: Tim Hudson &lt;tjh@openssl.org&gt;
Reviewed-by: Rich Salz &lt;rsalz@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/3459)
</content>
</entry>
<entry>
<title>Remove an unused file</title>
<updated>2017-10-11T14:32:23Z</updated>
<author>
<name>Matt Caswell</name>
<email>matt@openssl.org</email>
</author>
<published>2017-10-05T09:01:03Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=be9b311b01f79735955ba745a6755e3628b43e46'/>
<id>urn:sha1:be9b311b01f79735955ba745a6755e3628b43e46</id>
<content type='text'>
Reviewed-by: Paul Dale &lt;paul.dale@oracle.com&gt;
(Merged from https://github.com/openssl/openssl/pull/4468)
</content>
</entry>
</feed>
