}
}
-int EVP_CIPHER_upref(EVP_CIPHER *cipher)
+int EVP_CIPHER_up_ref(EVP_CIPHER *cipher)
{
int ref = 0;
out->provctx = NULL;
if (in->fetched_digest != NULL)
- EVP_MD_upref(in->fetched_digest);
+ EVP_MD_up_ref(in->fetched_digest);
out->provctx = in->digest->dupctx(in->provctx);
if (out->provctx == NULL) {
return md;
}
-static int evp_md_upref(void *md)
+static int evp_md_up_ref(void *md)
{
- return EVP_MD_upref(md);
+ return EVP_MD_up_ref(md);
}
static void evp_md_free(void *md)
{
EVP_MD *md =
evp_generic_fetch(ctx, OSSL_OP_DIGEST, algorithm, properties,
- evp_md_from_dispatch, evp_md_upref,
+ evp_md_from_dispatch, evp_md_up_ref,
evp_md_free);
#ifndef FIPS_MODE
*out = *in;
out->provctx = NULL;
- if (in->fetched_cipher != NULL && !EVP_CIPHER_upref(in->fetched_cipher)) {
+ if (in->fetched_cipher != NULL && !EVP_CIPHER_up_ref(in->fetched_cipher)) {
out->fetched_cipher = NULL;
return 0;
}
return cipher;
}
-static int evp_cipher_upref(void *cipher)
+static int evp_cipher_up_ref(void *cipher)
{
- return EVP_CIPHER_upref(cipher);
+ return EVP_CIPHER_up_ref(cipher);
}
static void evp_cipher_free(void *cipher)
{
EVP_CIPHER *cipher =
evp_generic_fetch(ctx, OSSL_OP_CIPHER, algorithm, properties,
- evp_cipher_from_dispatch, evp_cipher_upref,
+ evp_cipher_from_dispatch, evp_cipher_up_ref,
evp_cipher_free);
#ifndef FIPS_MODE
return to;
}
-int EVP_MD_upref(EVP_MD *md)
+int EVP_MD_up_ref(EVP_MD *md)
{
int ref = 0;
EVP_MD_meth_get_result_size, EVP_MD_meth_get_app_datasize,
EVP_MD_meth_get_flags, EVP_MD_meth_get_init, EVP_MD_meth_get_update,
EVP_MD_meth_get_final, EVP_MD_meth_get_copy, EVP_MD_meth_get_cleanup,
-EVP_MD_meth_get_ctrl, EVP_MD_upref
+EVP_MD_meth_get_ctrl, EVP_MD_up_ref
- Routines to build up EVP_MD methods
=head1 SYNOPSIS
int (*EVP_MD_meth_get_ctrl(const EVP_MD *md))(EVP_MD_CTX *ctx, int cmd,
int p1, void *p2);
- int EVP_MD_upref(EVP_MD *md);
+ int EVP_MD_up_ref(EVP_MD *md);
=head1 DESCRIPTION
to retrieve the method data given with the EVP_MD_meth_set_*()
functions above.
-EVP_MD_upref() increments the reference count for an EVP_MD structure.
+EVP_MD_up_ref() increments the reference count for an EVP_MD structure.
=head1 RETURN VALUES
All other EVP_CIPHER_meth_get_*() functions return pointers to their
respective B<md> function.
-EVP_MD_upref() returns 1 for success or 0 otherwise.
+EVP_MD_up_ref() returns 1 for success or 0 otherwise.
=head1 SEE ALSO
=head1 HISTORY
The B<EVP_MD> structure was openly available in OpenSSL before version
-1.1. EVP_MD_upref() was added in OpenSSL 3.0. All other functions described
+1.1. EVP_MD_up_ref() was added in OpenSSL 3.0. All other functions described
here were added in OpenSSL 1.1.
=head1 COPYRIGHT
# ifndef EVP_MD
EVP_MD *EVP_MD_meth_new(int md_type, int pkey_type);
EVP_MD *EVP_MD_meth_dup(const EVP_MD *md);
-int EVP_MD_upref(EVP_MD *md);
+int EVP_MD_up_ref(EVP_MD *md);
void EVP_MD_meth_free(EVP_MD *md);
int EVP_MD_meth_set_input_blocksize(EVP_MD *md, int blocksize);
EVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len);
EVP_CIPHER *EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher);
void EVP_CIPHER_meth_free(EVP_CIPHER *cipher);
-int EVP_CIPHER_upref(EVP_CIPHER *cipher);
+int EVP_CIPHER_up_ref(EVP_CIPHER *cipher);
int EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len);
int EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags);
|| !TEST_int_eq(EVP_MD_block_size(md), SHA256_CBLOCK))
goto err;
- /* Also test EVP_MD_upref() while we're doing this */
- if (!TEST_true(EVP_MD_upref(md)))
+ /* Also test EVP_MD_up_ref() while we're doing this */
+ if (!TEST_true(EVP_MD_up_ref(md)))
goto err;
/* Ref count should now be 2. Release both */
EVP_MD_meth_free(md);
X509_set0_sm2_id 4731 3_0_0 EXIST::FUNCTION:SM2
X509_get0_sm2_id 4732 3_0_0 EXIST::FUNCTION:SM2
EVP_PKEY_get0_engine 4733 3_0_0 EXIST::FUNCTION:ENGINE
-EVP_MD_upref 4734 3_0_0 EXIST::FUNCTION:
+EVP_MD_up_ref 4734 3_0_0 EXIST::FUNCTION:
EVP_MD_fetch 4735 3_0_0 EXIST::FUNCTION:
EVP_set_default_properties 4736 3_0_0 EXIST::FUNCTION:
OSSL_PARAM_construct_end 4737 3_0_0 EXIST::FUNCTION:
EC_GROUP_check_named_curve 4738 3_0_0 EXIST::FUNCTION:EC
-EVP_CIPHER_upref 4739 3_0_0 EXIST::FUNCTION:
+EVP_CIPHER_up_ref 4739 3_0_0 EXIST::FUNCTION:
EVP_CIPHER_fetch 4740 3_0_0 EXIST::FUNCTION:
EVP_CIPHER_mode 4741 3_0_0 EXIST::FUNCTION:
OPENSSL_info 4742 3_0_0 EXIST::FUNCTION:
EVP_CIPHER_get_asn1_iv
EVP_CIPHER_impl_ctx_size
EVP_CIPHER_set_asn1_iv
-EVP_CIPHER_upref
+EVP_CIPHER_up_ref
EVP_Cipher
EVP_MAC_do_all
EVP_MAC_do_all_sorted