Send MinGW-Notify mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.osdn.me/mailman/listinfo/mingw-notify
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of MinGW-Notify digest..."
Please do not reply to this notification; the sender address is unable to
accept incoming e-mail. If you wish to unsubscribe you can do so at
https://lists.osdn.me/mailman/listinfo/mingw-notify.
Today's Topics:
1. [mingw] #38391: CALG_TLS1PRF in wincrypt.h unusable
(MinGW Notification List)
----------------------------------------------------------------------
Message: 1
Date: Wed, 11 Jul 2018 16:15:35 +0100
From: MinGW Notification List <[email protected]>
Subject: [MinGW-Notify] [mingw] #38391: CALG_TLS1PRF in wincrypt.h
unusable
To: OSDN Ticket System <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8
#38391: CALG_TLS1PRF in wincrypt.h unusable
Open Date: 2018-07-10 08:32
Last Update: 2018-07-11 16:15
URL for this Ticket:
https://osdn.net//projects/mingw/ticket/38391
RSS feed for this Ticket:
https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=38391
---------------------------------------------------------------------
Last Changes/Comment on this Ticket:
2018-07-11 16:15 Updated by: keith
Comment:
I agree with Earnie -- this looks like a typo; what's more, it's been this way
since Danny Smith committed the update, (per attached w32api-r247.diff), which
added the CALG_TLS1PRF manifest constant definition, in August 2002.
FWIW, Danny's ChangeLog entry is a classical example of how not to write
ChangeLogs -- a malaise which afflicted both CygWin and MinGW at that time, and
may well still afflict CygWin today. Had Danny written the ChangeLog properly
-- enumerating, in full, all of the definitions he added -- he might well have
noticed the typo, at the time, (and I could simply have searched the ChangLog,
rather than resorting to hg archaeology on an old, converted CVS repository, to
locate the offending commit). But, that's water under the bridge -- I'll fix
it.
---------------------------------------------------------------------
Ticket Status:
Reporter: marcelraad
Owner: keith
Type: Issues
Status: Open [Owner assigned]
Priority: 5 - Medium
MileStone: (None)
Component: WSL
Severity: 5 - Medium
Resolution: None
---------------------------------------------------------------------
Ticket details:
I'm using w32api 5.0.2, but the issue is also in the trunk and experimental
branches.
CALG_TLS1PRF is defined as (ALG_CLASS_DHASH | ALG_TYPE_ANY | ALG_SID_TLS1PRF)
in
https://osdn.net/projects/mingw/scm/git/mingw-org-wsl/blobs/5.1-trunk/w32api/include/wincrypt.h.
This doesn't compile as ALG_CLASS_DHASH is not defined. The Microsoft Windows
SDK uses ALG_CLASS_HASH instead.
#include <windows.h>
#include <wincrypt.h>
int i = CALG_TLS1PRF;
results in
$ gcc test_wincrypt.c
In file included from test_wincrypt.c:2:0:
test_wincrypt.c:4:9: error: 'ALG_CLASS_DHASH' undeclared here (not in a
function)
int i = CALG_TLS1PRF;
^
--
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN
Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net
URL for this Ticket:
https://osdn.net//projects/mingw/ticket/38391
RSS feed for this Ticket:
https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=38391
------------------------------
_______________________________________________
MinGW-Notify mailing list
[email protected]
https://lists.osdn.me/mailman/listinfo/mingw-notify
End of MinGW-Notify Digest, Vol 10, Issue 2
*******************************************