aws-lc-sys 0.42.0

AWS-LC is a general-purpose cryptographic library maintained by the AWS Cryptography team for AWS and their customers. It іs based on code from the Google BoringSSL project and the OpenSSL project.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR ISC

// Build-time FIPS probe for the system-library path.
//
// The exit code below must stay in sync with FIPS_MODE_OFF_EXIT_CODE in
// builder/fips_probe.rs.

#include <openssl/crypto.h>

// Not declared in public headers; exported only by FIPS builds.
extern int BORINGSSL_integrity_test(void);

int main(void) {
    (void)BORINGSSL_integrity_test();
    return FIPS_mode() ? 0 : 42;
}