Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8303442

Clean up w2k_lsa_auth linker parameters

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • None
    • security-libs

      w2k_lsa_auth links to Winsock version 1 (wsock32.lib) to get htonl function. Winsock 1 is obsolete, and most functions (including htonl) are just proxied to v2 (ws2_32.lib). We should use the new lib to avoid loading WSOCK32.dll at runtime.

      Additionally, w2k_lsa_auth imports many more libs than necessary. I verified the list of imports using dumpbin /imports, and only advapi32, secur32, kernel32 and winsock are needed. The remaining libs can be dropped.

            djelinski Daniel Jelinski
            djelinski Daniel Jelinski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: