X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=providers%2Fdefltprov.c;h=253089a2d421d61c5c54fd7e7021b109b7be3631;hb=b425001010044adbdbcd98f8682694b30b73bbf4;hp=542e120c8fd84224745b8af92c3c9eef568cf30b;hpb=1be63951f87dfcbc98efe5d94a15298fea885890;p=thirdparty%2Fopenssl.git diff --git a/providers/defltprov.c b/providers/defltprov.c index 542e120c8f..253089a2d4 100644 --- a/providers/defltprov.c +++ b/providers/defltprov.c @@ -205,13 +205,13 @@ static const OSSL_ALGORITHM_CAPABLE deflt_ciphers[] = { ALG("AES-128-WRAP-PAD:id-aes128-wrap-pad:AES128-WRAP-PAD", ossl_aes128wrappad_functions), ALGC("AES-128-CBC-HMAC-SHA1", ossl_aes128cbc_hmac_sha1_functions, - cipher_capable_aes_cbc_hmac_sha1), + ossl_cipher_capable_aes_cbc_hmac_sha1), ALGC("AES-256-CBC-HMAC-SHA1", ossl_aes256cbc_hmac_sha1_functions, - cipher_capable_aes_cbc_hmac_sha1), + ossl_cipher_capable_aes_cbc_hmac_sha1), ALGC("AES-128-CBC-HMAC-SHA256", ossl_aes128cbc_hmac_sha256_functions, - cipher_capable_aes_cbc_hmac_sha256), + ossl_cipher_capable_aes_cbc_hmac_sha256), ALGC("AES-256-CBC-HMAC-SHA256", ossl_aes256cbc_hmac_sha256_functions, - cipher_capable_aes_cbc_hmac_sha256), + ossl_cipher_capable_aes_cbc_hmac_sha256), #ifndef OPENSSL_NO_ARIA ALG("ARIA-256-GCM", ossl_aria256gcm_functions), ALG("ARIA-192-GCM", ossl_aria192gcm_functions), @@ -502,8 +502,8 @@ static const OSSL_ALGORITHM *deflt_query(void *provctx, int operation_id, static void deflt_teardown(void *provctx) { - BIO_meth_free(PROV_CTX_get0_core_bio_method(provctx)); - PROV_CTX_free(provctx); + BIO_meth_free(ossl_prov_ctx_get0_core_bio_method(provctx)); + ossl_prov_ctx_free(provctx); } /* Functions we provide to the core */ @@ -556,15 +556,16 @@ int ossl_default_provider_init(const OSSL_CORE_HANDLE *handle, * This only works for built-in providers. Most providers should * create their own library context. */ - if ((*provctx = PROV_CTX_new()) == NULL + if ((*provctx = ossl_prov_ctx_new()) == NULL || (corebiometh = bio_prov_init_bio_method()) == NULL) { - PROV_CTX_free(*provctx); + ossl_prov_ctx_free(*provctx); *provctx = NULL; return 0; } - PROV_CTX_set0_library_context(*provctx, (OPENSSL_CTX *)c_get_libctx(handle)); - PROV_CTX_set0_handle(*provctx, handle); - PROV_CTX_set0_core_bio_method(*provctx, corebiometh); + ossl_prov_ctx_set0_library_context(*provctx, + (OSSL_LIB_CTX *)c_get_libctx(handle)); + ossl_prov_ctx_set0_handle(*provctx, handle); + ossl_prov_ctx_set0_core_bio_method(*provctx, corebiometh); *out = deflt_dispatch_table;