• Alex Brainman's avatar
    windows: replace uintptr in crypto structs · 6c888cc5
    Alex Brainman authored
    This CL is a copy of CL 106275 (see CL 106275 for details).
    
    It introduces CertInfo, CertTrustListInfo and CertRevocationCrlInfo
    types. It uses pointers to new types instead of uintptr in CertContext,
    CertSimpleChain and CertRevocationInfo.
    
    CertRevocationInfo, CertChainPolicyPara and CertChainPolicyStatus types
    have uintptr field that can be pointer to many different things
    (according to Windows API). So this CL introduces Pointer type to be
    used for those cases.
    
    Fixes golang/go#25797
    
    Change-Id: I7797ddc6daf3e67b7eab69ab9fbf4d51650f8b6a
    Reviewed-on: https://go-review.googlesource.com/118797Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    6c888cc5
types_windows.go 32.6 KB