[openssl/openssl] 3c58d4: Move types.h #undefs for wincrypt.h compatibility

mspncp noreply at reply.github.openssl.org
Mon May 30 05:19:33 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.openssl.org/openssl/openssl
  Commit: 3c58d447497b37f7b4f458aaa2956a7e226c6d65
      https://github.openssl.org/openssl/openssl/commit/3c58d447497b37f7b4f458aaa2956a7e226c6d65
  Author: Samuel Lee <saml at microsoft.com>
  Date:   2022-05-30 (Mon, 30 May 2022)

  Changed paths:
    M include/openssl/types.h
    M test/build.info
    A test/build_wincrypt_test.c

  Log Message:
  -----------
  Move types.h #undefs for wincrypt.h compatibility

+ Always undef the symbols that may have been #define-d
  by wincrypt.h after the first inclusion of types.h to
  avoid errors from wincrypt.h symbols being used to
  compile OpenSSL code
+ Also need to remove #pragma once for this approach to work
+ Define WINCRYPT_USE_SYMBOL_PREFIX to enable wincrypt
  symbol prefix at some point in future

Fixes #9981

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre at ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/18131)




More information about the openssl-commits mailing list