...

Source file src/github.com/google/certificate-transparency-go/x509/ptr_sysptr_windows.go

Documentation: github.com/google/certificate-transparency-go/x509

     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  
     5  //go:build go1.11
     6  // +build go1.11
     7  
     8  package x509
     9  
    10  import (
    11  	"syscall"
    12  	"unsafe"
    13  )
    14  
    15  // For Go versions >= 1.11, the ExtraPolicyPara field in
    16  // syscall.CertChainPolicyPara is of type syscall.Pointer.  See:
    17  //   https://github.com/golang/go/commit/4869ec00e87ef
    18  
    19  func convertToPolicyParaType(p unsafe.Pointer) syscall.Pointer {
    20  	return (syscall.Pointer)(p)
    21  }
    22  

View as plain text