ptr_uint_windows.go 463 B

123456789101112131415161718
  1. // Copyright 2018 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // +build !go1.11
  5. package x509
  6. import "unsafe"
  7. // For Go versions before 1.11, the ExtraPolicyPara field in
  8. // syscall.CertChainPolicyPara was of type uintptr. See:
  9. // https://github.com/golang/go/commit/4869ec00e87ef
  10. func convertToPolicyParaType(p unsafe.Pointer) uintptr {
  11. return uintptr(p)
  12. }