[MinGW-Notify] [mingw] #38391: CALG_TLS1PRF in wincrypt.h unusable

Back to archive index

MinGW Notification List mingw****@lists*****
Thu Jul 12 20:17:16 JST 2018


#38391: CALG_TLS1PRF in wincrypt.h unusable

  Open Date: 2018-07-10 09:32
Last Update: 2018-07-12 13:17

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-12 13:17 Updated by: marcelraad

Comment:

Great, thanks for the fast fix!

---------------------------------------------------------------------
Ticket Status:

      Reporter: marcelraad
         Owner: keith
          Type: Issues
        Status: Closed
      Priority: 5 - Medium
     MileStone: (None)
     Component: WSL
      Severity: 5 - Medium
    Resolution: Fixed
---------------------------------------------------------------------

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




More information about the MinGW-Notify mailing list
Back to archive index