Changeset View
Changeset View
Standalone View
Standalone View
crypto/property/property.c
/* | /* | ||||
* Copyright 2019-2022 The OpenSSL Project Authors. All Rights Reserved. | * Copyright 2019-2023 The OpenSSL Project Authors. All Rights Reserved. | ||||
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. | * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. | ||||
* | * | ||||
* Licensed under the Apache License 2.0 (the "License"). You may not use | * Licensed under the Apache License 2.0 (the "License"). You may not use | ||||
Context not available. | |||||
int ret = 0; | int ret = 0; | ||||
int j, best = -1, score, optional; | int j, best = -1, score, optional; | ||||
#ifndef FIPS_MODULE | if (nid <= 0 || method == NULL || store == NULL) | ||||
if (!OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL)) | |||||
return 0; | return 0; | ||||
#endif | |||||
if (nid <= 0 || method == NULL || store == NULL) | #ifndef FIPS_MODULE | ||||
if (ossl_lib_ctx_is_default(store->ctx) | |||||
&& !OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL)) | |||||
return 0; | return 0; | ||||
#endif | |||||
/* This only needs to be a read lock, because the query won't create anything */ | /* This only needs to be a read lock, because the query won't create anything */ | ||||
if (!ossl_property_read_lock(store)) | if (!ossl_property_read_lock(store)) | ||||
Context not available. |