diff options
| author | Russ Cox <rsc@golang.org> | 2017-08-02 23:14:57 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2017-08-17 15:22:22 +0000 |
| commit | 6e70f88f845d19b5195bdfc1b7bb4da889e7ab5f (patch) | |
| tree | b86b0ee6ba96b9c91a5cbec5f359fe4750973f0b /src/runtime | |
| parent | dcdcc3844046af0182cd3a94c7bb78c99908020e (diff) | |
| download | go-6e70f88f845d19b5195bdfc1b7bb4da889e7ab5f.tar.xz | |
[dev.boringcrypto] crypto/internal/boring: add initial BoringCrypto access
Right now the package doesn't do anything useful, but it will.
This CL is about the machinery for building goboringcrypto_linux_amd64.syso
and then running the self-test and checking FIPS_mode from Go init.
Change-Id: I4ec0f5efaa88ccfb506b9818d24a7f1cbcc5a7d6
Reviewed-on: https://go-review.googlesource.com/55472
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Adam Langley <agl@golang.org>
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/runtime.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go index d8fe2f451f..5b5e7de840 100644 --- a/src/runtime/runtime.go +++ b/src/runtime/runtime.go @@ -57,3 +57,6 @@ func syscall_Getpagesize() int { return int(physPageSize) } //go:linkname os_runtime_args os.runtime_args func os_runtime_args() []string { return append([]string{}, argslice...) } + +//go:linkname boring_runtime_arg0 crypto/internal/boring.runtime_arg0 +func boring_runtime_arg0() string { return argslice[0] } |
