From d7329a2e93e1898c9da030bfb528035874ec1db6 Mon Sep 17 00:00:00 2001 From: Davis Goodin Date: Mon, 6 Nov 2023 16:18:01 -0600 Subject: [PATCH] Remove noescape, nocallback cgo directives: reverted from go1.22 --- cgo_go122.go | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 cgo_go122.go diff --git a/cgo_go122.go b/cgo_go122.go deleted file mode 100644 index ba6abde2..00000000 --- a/cgo_go122.go +++ /dev/null @@ -1,19 +0,0 @@ -//go:build go1.22 && !cmd_go_bootstrap - -package openssl - -/* -// The following noescape and nocallback directives are used to -// prevent the Go compiler from allocating function parameters on the -// heap. This is just a performance optimization. Only add those -// functions that are known to allocate. -#cgo noescape go_openssl_EVP_PKEY_derive -#cgo nocallback go_openssl_EVP_PKEY_derive -#cgo noescape go_openssl_EVP_PKEY_get_raw_public_key -#cgo nocallback go_openssl_EVP_PKEY_get_raw_public_key -#cgo noescape go_openssl_EVP_PKEY_get_raw_private_key -#cgo nocallback go_openssl_EVP_PKEY_get_raw_private_key -#cgo noescape go_openssl_EVP_DigestSign -#cgo nocallback go_openssl_EVP_DigestSign -*/ -import "C"