You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
openssl: implement cgoless wrappers for C functions (#288)
* openssl: implement cgoless wrappers for C functions
* fix aes test
* remove darwin pins
* unskip md4 hash test
* enable more tests
* re enable symcrypt tests
* add boiletplate linux syscall file
* auto generate variadic functions
* add checkheader if statement back
* fix windows
* implement windows support
* fix iSAvailable functions
* fix renamed function in nocgo
* support dynload mode
* panic if non-optional functions can't be loaded
* deduplicate code
* fix unix
* fix windows
* fix windows
* fix windows
* deduplicate variadic handling
* simplify code a bit
* fix nocgo error handling
* fix typedefs
* fix dlsym
* fix pointer tests
* several improvements and fixes
* fix cTypeSize
* fix type map
* fix type map
* fix data types
* use dlclose on nocgo
* fix newMkcgoErr
* unhardcode dlopen and friends
* fix RTLD_LOCAL
* use keepalive
* support cgoless linux and darwin
* add cgoless test to CI
* gate syscallN assembly
* deduplicate some code
* revert msgo bump
* mkcgo cleanup
* fix static trmapolines
* fix static trmapolines
* remove point_conversion_form_t special case
* remove point_conversion_form_t special case
* remove stale comment
* don't hardcode zdl.go
* don't hardcode zdl.go
* fix needsAssembly
* cleanup
* deduplicate fakecgo
* support 32-bit arches
* fix fakecgo
* gate ocgo changes behind a build flag
* readd cgoless without build tag test
* add eof
* revert changes in the root package
* add missing build tags
* add cgo suffix to cgo files
* put common nocgo and cgo code in same file
* add missing build tags
* don't generate 1.24 file if not needed
* generalize checkheader
* add copyright flag to mkcgo
* Update internal/ossl/errors_nocgo.go
Co-authored-by: Copilot <[email protected]>
---------
Co-authored-by: qmuntal <[email protected]>
Co-authored-by: qmuntal <[email protected]>
Co-authored-by: Copilot <[email protected]>
// checkheader is a static analyzer that detects incompatibilities between wrapper definitions and OpenSSL headers.
15
-
// It generates a C source file where for each wrapper, the file declares a new symbol that's assigned to the symbol it represents in the actual OpenSSL headers.
14
+
// checkheader is a static analyzer that detects incompatibilities between wrapper definitions and system headers.
15
+
// It generates a C source file where for each wrapper, the file declares a new symbol that's assigned to the symbol it represents in the actual system headers.
16
16
// This C file is then compiled using GCC. The compilation will succeed if everything is compatible, else it will
17
17
// report a meaningful error.
18
18
//
@@ -21,20 +21,20 @@ import (
21
21
// - Blank lines are discarded.
22
22
// - Comments are discarded unless they contain a C directive, i.e #include, #if or #endif. The directive in the comment is included in the output.
23
23
// - Typedefs following the pattern "typedef void* _%name%_PTR" are translated into "#define %name% _%name%_PTR".
24
-
// - Go constants are validated against their definition in the OpenSSL headers. Example:
24
+
// - Go constants are validated against their definition in the system headers. Example:
0 commit comments