aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/aws/s2n/utils
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-06-10 18:57:55 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-06-10 18:57:55 +0300
commit3f8e49145135cc23222b75eadc38c623ce5dc5e1 (patch)
tree09481ecba96c3df05cdb9e5643a6f5b496e67a38 /contrib/restricted/aws/s2n/utils
parentf8cb088ba5fa9e1b8cd67287ae6199c216abd5db (diff)
downloadydb-3f8e49145135cc23222b75eadc38c623ce5dc5e1.tar.gz
intermediate changes
ref:14a2cf24c19fbebb75eba6b80f945114f8aa1425
Diffstat (limited to 'contrib/restricted/aws/s2n/utils')
-rw-r--r--contrib/restricted/aws/s2n/utils/s2n_init.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/contrib/restricted/aws/s2n/utils/s2n_init.c b/contrib/restricted/aws/s2n/utils/s2n_init.c
index fb5b3ae928..48596ffab6 100644
--- a/contrib/restricted/aws/s2n/utils/s2n_init.c
+++ b/contrib/restricted/aws/s2n/utils/s2n_init.c
@@ -13,6 +13,7 @@
* permissions and limitations under the License.
*/
#include "crypto/s2n_fips.h"
+#include "crypto/s2n_libcrypto.h"
#include "error/s2n_errno.h"
@@ -35,11 +36,6 @@
static void s2n_cleanup_atexit(void);
-unsigned long s2n_get_openssl_version(void)
-{
- return OPENSSL_VERSION_NUMBER;
-}
-
static pthread_t main_thread = 0;
static bool initialized = false;
static bool atexit_cleanup = true;
@@ -52,6 +48,7 @@ int s2n_disable_atexit(void) {
int s2n_init(void)
{
main_thread = pthread_self();
+ POSIX_GUARD_RESULT(s2n_libcrypto_validate_runtime());
POSIX_GUARD(s2n_fips_init());
POSIX_GUARD(s2n_mem_init());
POSIX_GUARD_RESULT(s2n_rand_init());